<div dir="ltr">Please ignore this. I've accidentally replaced NAMESPACE by running document(). Everything builds fine from fresh source. I should really go home now...<br><div><div class="gmail_extra"><br clear="all"><div>

Yours Sincerely,<br>Victor Kryukov<br></div><br><div class="gmail_quote">On Wed, Mar 6, 2013 at 9:49 PM, Victor Kryukov <span dir="ltr"><<a href="mailto:victor.kryukov@gmail.com" target="_blank">victor.kryukov@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello,<br><br></div>when I'm trying to build freshly cloned data.table 1.8.9 from source via either 'R CMD build .' in pkg/ directory or calling devtools build(), it fails with the following error. I don't really understand what's going on, as in lines 16-17 in datatable-faq.Rnw we have<br>


<br>if (!exists("data.table",.GlobalEnv)) library(data.table)  # see Intro.Rnw for comments on these two lines<br>rm(list=as.character(tables()$NAME),envir=.GlobalEnv)<br><br></div>and first line should load data.table if not loaded. Even when I load it explicitly in line 16 via library(data.table), i.e. removing if(), it fails with the same error.<br>


<br></div><div>Any ideas why?<br><br>'R CMD check .' finishes without any problems. My systemInfo() is below just in case.<br></div><div><br></div>Regards,<br></div>Victor<br><div><div><br><div><div><div>====<br>

<br>
> build()<br>'/usr/local/Cellar/r/2.15.3/R.framework/Resources/bin/R' --vanilla CMD build '/Users/victor/Documents/R/datatable/pkg' --no-manual --no-resave-data <br><br>* checking for file '/Users/victor/Documents/R/datatable/pkg/DESCRIPTION' ... OK<br>


* preparing 'data.table':<br>* checking DESCRIPTION meta-information ... OK<br>* cleaning src<br>* installing the package to re-build vignettes<br>* creating vignettes ... ERROR<br><br>Error: processing vignette 'datatable-faq.Rnw' failed with diagnostics:<br>


 chunk 1 <br>Error in rm(list = as.character(tables()$NAME), envir = .GlobalEnv) : <br>  could not find function "tables"<br>Execution halted<br>Error: Command failed (1)<br><br>====<br><br>> sessionInfo()<br>


R version 2.15.3 (2013-03-01)<br>Platform: x86_64-apple-darwin12.2.1 (64-bit)<br><br>locale:<br>[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8<br><br>attached base packages:<br>[1] stats     graphics  grDevices utils     datasets  methods   base   <br>



</div></div></div></div></div></div>
</blockquote></div><br></div></div></div>