Error in R CMD Check: Packages required but not available
It's working now.
What I did was:
- add
~/R/x86_64-redhat-linux-gnu-library/2.15
to .libPaths (That's where my R library was) - Detach all libraries in R
- Restart the R session. (For multiple sessions, close all of them.)
- install the required packages.
- Check if the Imports & Exports are correct in the namespace file.
- Check if the required fields are available in the Description file. Make sure all dependencies are handled between 'Depends', 'Imports', 'Suggests' and 'Enhances'.
- Checked it.
R CMD check <pkg>
. Built it.R CMD build <pkg>
. Installed it.R CMD INSTALL <tarball>
. - Done.