<div>
Dear Steve,
</div><div><br></div><div>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):</div><div>That is, the function should be:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>for (i in which(novname)) {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> tmp <- deparse(tt[[i]])[1]</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> if (tmp == make.names(tmp))</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> vnames[i] <- tmp</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div></div><div><br></div>
<div><div>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:</div><div><br></div><div><div>* checking tests ...</div><div> Running ‘autoprint.R’</div><div> Comparing ‘autoprint.Rout’ to ‘autoprint.Rout.save’ ... OK</div><div> Running ‘test-all.R’</div><div> Running ‘tests.R’</div><div> OK</div><div>* checking for unstated dependencies in vignettes ... OK</div><div>* checking package vignettes in ‘inst/doc’ ... OK</div><div>* checking running R code from vignettes ...</div><div> ‘datatable-faq.Rnw’ ... OK</div><div> ‘datatable-intro.Rnw’ ... OK</div><div> ‘datatable-timings.Rnw’ ... OK</div><div> OK</div><div>* checking re-building of vignette PDFs ... OK</div><div>* checking PDF version of manual ... OK</div><div><br></div><div>WARNING: There was 1 warning.</div><div>NOTE: There was 1 note.</div></div><div><br></div><div><br></div><div>Arun</div><div><br></div></div>
<p style="color: #A0A0A8;"><br></p>