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
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help