Offline installation of packages

package-installation

#1

Hi,

I'm using RStudio within the isolated environment with no Internet access. I install packages from local repository (zip files) using install.packages("package_name", contriburl="file:path_to_the_repository") command.
Unfortunately, RStudio still tries to connect to CRAN which makes the installation process extremely time consuming. It takes about 10 minutes to install package with its dependencies.
Is there any solution to workaround this issue and prevent RStudio from trying to establish connection with CRAN repo?


#2

Have you tried this?
install.packages("package_name", repos = NULL, contriburl="file:path_to_the_repository")


#3

Thank you for your prompt response. It works like a dream :slight_smile: