[R] R CMD build: "Error in if (any(update))"

Rob Foxall r|ox@||27 @end|ng |rom gm@||@com
Mon Jun 10 05:39:55 CEST 2019


Hi,

I've got an R package that I periodically create in what I assume is an
old-fashioned way:

Within R: use "package.skeleton"
Outside of R: update e.g. .rd files as appropriate
Command window: run the following commands
R CMD build packageName
R CMD check packageName
R CMD INSTALL --build packageName

I am now getting an error on the R CMD build stage. Initially I had wanted
to remove a package dependency (by not passing some functions to
package.skeleton and editing my NAMESPACE and DESCRIPTION file
appropriately), but on getting the error I tried to revert everything back
to my last successful build (Feb 2019), however, the error persisted:
R CMD build packageName
* checking for file 'packageName/DESCRIPTION' ... OK
* preparing 'packageName' :
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a 'data/datalist' file should be added
Error in if (any(update)) { : missing value where TRUE/FALSE needed
Execution halted

I am guessing that the error could be due to any of the last three lines
that don't have an "OK", but I am completely stuck as to how to narrow it
down further, and Dr. Google has already failed me.

Using R version 3.6.0, R tools version 3.5.0.4 (I don't recall if had
different versions previous time I built this package in Feb 2019).

Cheers,
Rob.

	[[alternative HTML version deleted]]



More information about the R-help mailing list