[datatable-help] data.table() function regarding

Arunkumar Srinivasan aragorn168b at gmail.com
Wed Aug 14 22:10:58 CEST 2013


Dear Steve,  

Yes, the issue is with `deparse`. By default, it'll split the converted character string at every 60 characters… An easy fix is to just take the first element of `deparse` result (just like how `data.frame` does it):
That is, the function should be:

for (i in which(novname)) {
   tmp <- deparse(tt[[i]])[1]
   if (tmp == make.names(tmp))
       vnames[i] <- tmp
}


If the `[1]` was not present then we are comparing a vector of > 1 elements to another… Hence the warning. With this change, I did a `R CMD CHECK <pkg>` and the test finished without errors. But it says at the end "there was 1 warning". Here's the last few lines from the check:

* checking tests ...
  Running ‘autoprint.R’
  Comparing ‘autoprint.Rout’ to ‘autoprint.Rout.save’ ... OK
  Running ‘test-all.R’
  Running ‘tests.R’
 OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in ‘inst/doc’ ... OK
* checking running R code from vignettes ...
   ‘datatable-faq.Rnw’ ... OK
   ‘datatable-intro.Rnw’ ... OK
   ‘datatable-timings.Rnw’ ... OK
 OK
* checking re-building of vignette PDFs ... OK
* checking PDF version of manual ... OK

WARNING: There was 1 warning.
NOTE: There was 1 note.



Arun





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20130814/c7b6349e/attachment.html>


More information about the datatable-help mailing list