berndbischl / BBmisc

Other
20 stars 7 forks source link

requirePackages gives potentially misleading error message #77

Open mb706 opened 7 years ago

mb706 commented 7 years ago

When requirePackages fails to load a package, it usually tells the user that the packages in question are not installed. This ignores the fact that packages may fail to load for other reasons (e.g. "too many DLLs loaded"). This is especially confusing when default.method = "load", since requireNamespace has quietly set to TRUE, which therefore suppresses all other info about why a package didn't load.

mb706 commented 7 years ago

Second time that I have problems because of this, this time because R CMD check --as-cran prevents packages from loading that are not specified in suggests or similar, and I'm loading a defective package that doesn't list its dependencies in suggests.