I've been searching around the web but couldn't find a quick answer. Where do I put the libraries that my package will need so they get loaded also upon loading my package?
As I understand it, the imports
parameter in the DESCRIPTION
file will only install those packages if they do not currently exist on the system. But what is the solution to writing library(ggplot2)
in a package, or am I supposed to write that for every script seperately?
When I in a new R session write devtools::load_all()
and it loads my package, none of the libraries my package in turn depend upon is loaded.