[R-pkg-devel] R CMD build: "Error in if (any(update))"
Dirk Eddelbuettel
edd @end|ng |rom deb|@n@org
Mon Jun 10 15:58:31 CEST 2019
On 10 June 2019 at 13:21, Rob Foxall wrote:
| 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
Close. This should check the .tar.gz produced by the preceding command:
R CMD check packageName_a.b.c.tar.gz # where a.b.c is current version
| R CMD INSTALL --build packageName
Not sure you need --build; it creates a binary for redistribution but only
for system that match your system closely. I would recommend
R CMD INSTALL packageName_a.b.c.tar.gz
instead.
| 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.
I would think it has to do with your package sources, and a possible change
in R 3.6.0. Checks get better over time so it may set off a flag for
something that passed before.
But we can't really tell without access to your code.
Hth, Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
More information about the R-package-devel
mailing list