Offline installation of a list of packages: getting dependencies in order
The package miniCRAN
can help with this. You tell miniCRAN
the list of packages you would ever want to install, it then figures out the dependencies, downloads those packages and creates a repository on your local machine that behaves like CRAN, i.e. it respects install.packages()
etc.
More information:
Read the vignette
We are actively developing
miniCRAN
. Track progress and find the latest development version at github miniCRAN repositorySee the project wiki for links to presentations, blog posts and more
To install from the local miniCRAN
repository, you have two options.
Firstly, you can use the URI convention
file:///
. e.g.install.packages("ggplot2", repos="file:///path/to/file/")
Alternatively, you can configure the destination as an HTTP server and make your repository available via a URL. In this case, your local repository will look and feel exactly like a CRAN mirror, other than it only contains your desired packages.