[R-pkg-devel] vignette issues
Bert Gunter
bgunter at comcast.net
Mon Sep 12 20:01:20 CEST 2016
Folks:
My stripless package passed all cran checks and built without issues.
But I received the following message from the Windows build:
---------
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘lme4'
Quitting from lines 108-111 (stripless_vignette.Rmd)
Error: processing vignette 'stripless_vignette.Rmd' failed with diagnostics:
object 'hsb' not found
Execution halted
-------------
I do not have any reference to lme4 in my package or vignette. So is this the dependency from the faraway package, which my vignette uses (a couple of its datasets) and which does depend on lme4? If so, do I have to move faraway from my “suggests” to “imports” or “depends, which I read as contrary to what the R extensions manual says. If so, this sounds like a bug to me — why should I be responsible for such dependencies, which could be endless?
2nd: “hsb” is in the faraway package. I state specifically in the vignette that the package needs to be installed, and I have the following code in the vignette (using rmarkdown and knitr):
```{r, echo = FALSE,message= FALSE }
if(!require(faraway, quietly = TRUE)){
cat("\n, The **faraway** package must be installed to run",
"subsequent examples in this vignette.\n",sep = "")
}
```
I don’t think I should install the package automatically, as this seems an inappropriate intrusion on the user. I do make the compiled pdf version available in /docs. What is “appropropriate behavior” for me to avoid these warnings?
Best,
Bert
Bert Gunter
More information about the R-package-devel
mailing list