Offline installation of packages

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?

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

3 Likes

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

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.