The solution to installing a package that's been unzipped into a folder is as follows:

install.packages("C:/path to folder with the package", 
repos = NULL, 
type = "source")
Answer from Logit on Stack Overflow
🌐
Rip Tutorial
https://riptutorial.com › install package from local source
R Language Tutorial => Install package from local source
Another command that opens a window to choose downloaded zip or tar.gz source files is: ... Step 1: Go to Tools. Step 2: Go to Install Packages. Step 3: In the Install From set it as Package Archive File (.zip; .tar.gz)
Discussions

install.packages - How do I install an R package from source? - Stack Overflow
Personally I prefer remotes::i... path_to_the_local_package is the location of the package. The reason I like it is because it also automatically installs all dependencies listed in the DESCRIPTION in that package, which is very convenient for internal packages. ... Protected question. To answer this question, you need to have at least 10 reputation on this site (not counting the association bonus). The reputation requirement helps protect this question from spam and ... More on stackoverflow.com
🌐 stackoverflow.com
How can I change the default package installation folder for multiple versions of R?

Although this does not specifically answer your question, you could try using the renv package. It sets up a virutal environment, like how you would in Python. Then, within a virtual environment, any packages that you install are local to that virtual environment.

Using a virtual environment is usually good design practice, since it localises and stores the dependencies that you need for each project.

More on reddit.com
🌐 r/rstats
6
12
March 12, 2021
Can I install (and use) dependencies on a local directory?

Short answer: Yes

Actual answer: https://docs.python.org/3/tutorial/modules.html

More on reddit.com
🌐 r/Python
8
9
February 16, 2015
Issues with installing packages on work computer (non-admin, OneDrive issues)
Pretty sure you can install R locally in a personal folder without admin rights so that you can read and write More on reddit.com
🌐 r/Rlanguage
10
3
December 24, 2021
🌐
ProjectPro
https://projectpro.io › recipes › install-packages-through-local-machine-r
How to install a local package in R - Projectpro
January 5, 2024 - You can find these .zip files from various sources. For this guide, we'll use the "MASS" package as an example. Here is the code to install the R "MASS" package from a .zip file on your local machine: install.packages("MASS_7.3-53.zip", repos = NULL, type = 'source')
🌐
Dataquest
https://dataquest.io › home › blog › the easy way to install a package in r (with 8 code examples)
How to Install a Package in R (with 8 Code Examples) – Dataquest
March 31, 2025 - Most R packages are stored on the Comprehensive R Archive Network (CRAN), the official R package repository. To install a package from CRAN, use the install.packages() function:
🌐
R-lib
https://remotes.r-lib.org › reference › install_local.html
Install a package from a local file — install_local • remotes
This function is vectorised so you can install multiple packages in a single command. install_local( path = ".", subdir = NULL, dependencies = NA, upgrade = c("default", "ask", "always", "never"), force = FALSE, quiet = FALSE, build = !is_binary_pkg(path), build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), build_manual = FALSE, build_vignettes = FALSE, repos = getOption("repos"), type = getOption("pkgType"), ...
🌐
Duke
https://tools.econ.duke.edu › staging_tools › node › 9 › printable › print
Running R Packages Locally
To install an R package locally, specify the local directory where you want to install by using the “-l” option in the “R CMD INSTALL” command.
🌐
R Package
https://rdrr.io › r › utils › install.packages.html
install.packages: Install Packages from Repositories or Local Files
R packages are primarily distributed as source packages, but binary packages (a packaging up of the installed package) are also supported, and the type most commonly used on Windows and by the CRAN builds for macOS. This function can install either type, either by downloading a file from a repository or from a local file.
Find elsewhere
🌐
ETH Zurich
https://stat.ethz.ch › R-manual › R-devel › library › utils › html › install.packages.html
R: Install Packages from Repositories or Local Files
R packages are primarily distributed as source packages, but binary packages (a packaging up of the installed package) are also supported, and the type most commonly used on Windows and by the CRAN builds for macOS. This function can install either type, either by downloading a file from a repository or from a local file.
🌐
ASC-Client Portal
https://osu.teamdynamix.com › TDClient › KB › ArticleDet
Installing R Packages Locally in Your Home Directory
First, we'll need to create a directory in the home directory, then set a variable to point R at that directory, and then install the package.
🌐
Rdrr.io
https://rdrr.io › cran › remotes › man › install_local.html
install_local: Install a package from a local file in remotes: R Package Installation from Remote Repositories, Including 'GitHub'
May 29, 2024 - ## Not run: dir <- tempfile() dir.create(dir) pkg <- download.packages("testthat", dir, type = "source") install_local(pkg[, 2]) ## End(Not run)
🌐
UC Berkeley Statistics
https://stat.berkeley.edu › ~paciorek › computingTips › Installing_R_libraries_loca.html
Installing R libraries locally on your system
February 6, 2006 - On the HSPH Linux cluster, you ... hpcc.sph.harvard.edu), run (making sure to include the quotations and syntax as indicated): bsub R CMD INSTALL -l /R/library packageName.tar.gz >& logfile.txt (you probably want to use the short queue for this)...
🌐
sqlpey
https://sqlpey.com › r › effective-r-package-installation-techniques
Effective R Package Installation from Local Source or GitHub Repositories
October 29, 2025 - # Clone the repository first git clone https://github.com/user/repo.git /tmp/source_code # Execute installation via R's command line interface R -e "install.packages('devtools'); devtools::install('/tmp/source_code/repo')" For Ubuntu environments preparing for package builds, ensure system dependencies are present: apt-get update apt-get install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev -y · If dependency tracking during local installation is crucial, the remotes package provides a superior function over the basic local install.packages call.
🌐
sqlpey
https://sqlpey.com › r › r-package-installation-methods
R Package Installation: Local Source & Remote Repository Methods
November 4, 2025 - System Dependencies: Some R packages, especially those involving graphical interfaces or complex computations, rely on system-level libraries. Before installing devtools or certain packages, you might need to install these via your operating system’s package manager. For example, on Ubuntu: sudo apt-get update sudo apt-get install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev -y ... # Install from a local path, ensuring dependencies are pulled install.packages("path/to/package", repos = NULL, dependencies = TRUE, type = "source")
🌐
R Project
https://cran.r-project.org › doc › manuals › r-patched › R-admin.html
R Installation and Administration - CRAN - R Project
The typical installation will install the GUI into the /Applications/R.app folder and the R framework into the /Library/Frameworks/R.framework folder. The links to R and Rscript in /usr/local/bin should also be removed. If you want to get rid of R more completely using a Terminal, simply run: sudo rm -Rf /Library/Frameworks/R.framework /Applications/R.app \ /usr/local/bin/R /usr/local/bin/Rscript · The installation consists of up to four Apple packages:26 for the ‘Apple Silicon’ build, org.R-project.arm64.R.fw.pkg, org.R-project.arm64.R.GUI.pkg, org.r-project.arm64.tcltk and org.r-project.arm64.texinfo.
🌐
R Project
https://search.r-project.org › CRAN › refmans › remotes › html › install_local.html
R: Install a package from a local file
## Not run: dir <- tempfile() dir.create(dir) pkg <- download.packages("testthat", dir, type = "source") install_local(pkg[, 2]) ## End(Not run)
🌐
R-lib
https://devtools.r-lib.org › reference › install.html
Install a local development package — install • devtools
Uses R CMD INSTALL to install the package, after installing needed dependencies with pak::local_install_deps(). To install to a non-default library, use withr::with_libpaths().
🌐
Kbroman
https://kbroman.org › pkg_primer › pages › build.html
Building and installing an R package
R CMD INSTALL --library=/path/to/Rlibs brocolors_0.1.tar.gz · If you install the package using devtools::install(), you just need the ~/.Renviron file; you don’t need to do anything different with the install() command.
🌐
R-lib
https://remotes.r-lib.org
R Package Installation from Remote Repositories, Including GitHub • remotes
Bioconductor packages are automatically detected and their dependencies are installed from Bioconductor. GitHub repositories via install_github. Bitbucket repositories via install_bitbucket. Generic git repositories via install_git. They need either a system git installation, or the git2r R package. Local directories or package archive files via install_local.
🌐
RCODER
https://r-coder.com › home › r introduction › how to install packages in r?
How to Install R Packages: CRAN, GitHub and Bioconductor
March 15, 2020 - [1] "C:/Users/Usuario/AppData/... in the first path. If you want to install a package in a different folder, use the lib argument of install.packages and load it with the lib.loc argument of library....