<div dir="ltr">Mel,<div>I'm not able to reproduce this on 1.8.11. Which version are you using?</div><div>I'm not aware of this package, and what 'otable' is supposed to do. But I get no output while running your script, and not the error message as well.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 17, 2014 at 11:14 AM, Bacou, Melanie <span dir="ltr"><<a href="mailto:mel@mbacou.com" target="_blank">mel@mbacou.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    I am testing an R script using FastRWeb (through Rserve). FastRWeb
    works as expected and I can successfully runs Simon Urbanek's
    examples. Problems arise when I try to merge datatables. It seems
    FastRWeb cannot find <tt>merge.data.table()</tt>.<br>
    <br>
    I'm using plenty of other libraries (ggplot, raster, RJDBC, etc.)
    that execute successfully through FastRWeb scripts, so I'm guessing
    it's something peculiar to data.table.<br>
    <br>
    Thanks for any help! --Mel.<br>
    <br>
    <br>
    Here are reproducible examples.<br>
    <br>
    Test #1: the code below (the entire content of my R script)
    SUCCEEDS:<br>
    <br>
    <tt># test1.R</tt><tt><br>
    </tt><tt>library(data.table)</tt><tt><br>
    </tt><tt><br>
    </tt><tt>run <- function(...) {</tt><tt><br>
        oclear()<br>
    </tt><tt>  d1 <- data.table(a=c(1,2,3), b=c("a","b","c"))</tt><tt><br>
    </tt><tt>  d2 <- data.table(e=c("v","a","b"), f=c(4,6,7))</tt><tt><br>
    </tt><tt>  otable(d1)</tt><tt><br>
    </tt><tt>  otable(d2)</tt><tt><br>
    </tt><tt>}</tt><br>
    <br>
    This returns a simple web page showing 2 tables:<br>
    <table style="font-family:'Times New Roman';letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px">
      <tbody>
        <tr>
          <td>1</td>
          <td>a</td>
        </tr>
        <tr>
          <td>2</td>
          <td>b</td>
        </tr>
        <tr>
          <td>3</td>
          <td>c</td>
        </tr>
      </tbody>
    </table>
    <table style="font-family:'Times New Roman';letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px">
      <tbody>
        <tr>
          <td>v</td>
          <td>4</td>
        </tr>
        <tr>
          <td>a</td>
          <td>6</td>
        </tr>
        <tr>
          <td>b</td>
          <td>7</td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    Test #2: the code below (the entire content of my R script) FAILS
    with:<tt><span><br>
        <tt>Error in `[.default`(x, i) : invalid subscript type 'list'</tt></span></tt><br>
    <br>
    <tt># test2.R<br>
    </tt><tt>
      library(data.table)</tt><tt><br>
    </tt><tt>
    </tt><tt><br>
    </tt><tt>
      run <- function(...) {</tt><tt><br>
        oclear()<br>
    </tt><tt>
        d1 <- data.table(a=c(1,2,3), b=c("a","b","c"))</tt><tt><br>
    </tt><tt>
        d2 <- data.table(e=c("v","a","b"), f=c(4,6,7))</tt><tt><br>
    </tt><tt>
        otable(d1)</tt><tt><br>
    </tt><tt>
        otable(d2)</tt><tt><br>
    </tt><tt>
        setkey(d1, b)</tt><tt><br>
    </tt><tt>
        setkey(d2, e)</tt><tt><br>
    </tt><tt>
        otable(d1[d2])</tt><tt><br>
    </tt><tt>
      }</tt><span class="HOEnZb"><font color="#888888"><br>
    <br>
    <br>
    <br>
    <br>
    <pre cols="72">-- 
Melanie BACOU
International Food Policy Research Institute
Agricultural Economist, HarvestChoice
Work <a href="tel:%2B1%28202%29862-5699" value="+12028625699" target="_blank">+1(202)862-5699</a>
E-mail <a href="mailto:mel@mbacou.com" target="_blank">mel@mbacou.com</a>
Visit <a href="http://harvestchoice.org" target="_blank">harvestchoice.org</a> </pre>
  </font></span></div>

<br>_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br></blockquote></div><br></div>