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

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to