[R-pkg-devel] Mysterious "invalid z limit"

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Sun Jan 8 12:58:30 CET 2023


On Sat, 7 Jan 2023 20:43:10 -0500
"Kevin R. Coombes" <kevin.r.coombes using gmail.com> wrote:

> (1) How is it possible that the same code works error 
> free in the RStudio contexts, but fails in the attempt to build the
> package?

When knitting the vignette from RStudio, it uses the package you
already have installed. When knitting the vignette from R CMD build, it
uses the code it's about to package. Could it be that your source code
is different from the copy installed in your library?

> (2) Any suggestions on how to debug something that only
> throws an error from "R CMD build" would be most welcome.

R CMD build --no-build-vignettes should let you proceed and get a
tarball that could be installed. Hopefully you'll be able to reproduce
the error then.

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list