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

Arunkumar Srinivasan aragorn168b at gmail.com
Thu Aug 15 22:57:44 CEST 2013


Steve,  
Did you have sometime to look into the edited loop (also at the test results)?

Arun


On Wednesday, August 14, 2013 at 10:10 PM, Arunkumar Srinivasan wrote:

> 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/20130815/1e24e111/attachment.html>


More information about the datatable-help mailing list