In addition to providing standard mirrors of CRAN, Bioconductor, and PyPI, you can track changes over time or freeze packages to specific versions, to help ensure reproducibility and ease collaboration.
Posit does not provide professional support for Posit Public Package Manager. If you need help, the best place to ask questions is Posit Community. If you're reporting a problem, please create a topic using this template and provide as much information as you can.
How do I install R or Python packages from Posit Public Package Manager?
Navigate to the Setup page for the CRAN repo, Bioconductor repo, or PyPI repo, and follow the instructions to configure your R or Python environment to install packages from Posit Public Package Manager.
See the User Guide to learn more about using Package Manager, including how to install binary packages for R, how to install R or Python packages from a historical snapshot, and how to navigate the web interface.
How do I install binary packages for R?
Posit Public Package Manager provides precompiled binaries for CRAN packages on Linux and Windows for the five most recent versions of R.
To install binary packages, click the Distribution button in the top right corner and select your distribution to get the binary repository URL for your installation environment.
Note that your R environment may require additional configuration steps to use binary packages from Package Manager, particularly on Linux. Consult the documentation for Configuring R on Linux or Configuring R on Windows to learn more.
When installing binary packages on Linux, you should see a message like this in your R console:
* installing *binary* package ‘ggplot2’ ...
On Windows, you should instead see a message like:
package ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
How do I troubleshoot R package installation issues?
Received source package from a binary repository URL
When installing packages from a binary repository URL, you may receive a source package instead of a binary package. When this happens, a message like this will appear in your R console:
* installing *source* package ‘RPostgreSQL’ ...
In interactive R sessions on Windows, you may also see the following prompt:
Package which is only available in source form, and may need
compilation of C/C++/Fortran: 'dplyr'
Do you want to attempt to install these from sources? (Yes/no/cancel)
Check that you have the correct binary repository URL for your operating system, and that you have met the prerequisites for using binary packages (see How do I install binary packages for R? above).
Otherwise, binaries may be unavailable for that package. Package Manager does not provide binaries for all CRAN packages. Notable exclusions include any CRAN packages with Bioconductor dependencies, such as Seurat or WGCNA.
Error loading binary package in R
You may see one of the following errors when loading binary packages in R:
Error: package or namespace load failed for 'rJava':
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/opt/R/3.6.3/lib/R/library/rJava/libs/rJava.so':
libjvm.so: cannot open shared object file: No such file or directory
Error: package or namespace load failed for 'sf' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/opt/R/3.6.3/lib/R/library/units/libs/units.so':
libudunits2.so.0: cannot open shared object file: No such file or directory
Error: package or namespace load failed for ‘Rcpp’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/opt/R/3.6.3/lib/R/library/Rcpp/libs/Rcpp.so':
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/R/3.6.3/lib/R/library/Rcpp/libs/Rcpp.so)
Check that you have the correct binary repository URL for your operating system, and that you have met the prerequisites for using binary packages (see How do I install packages for R? above).
The most common issue is that your system is missing additional system prerequisites for the package. If a package has additional system prerequisites, you can find instructions to install those by navigating to the package page in the web interface and looking under Install System Prerequisites:
If you still see an error after installing the system prerequisites, please report the issue at Posit Community and provide as much information as you can, including your R version and operating system.
Why are the latest packages not available yet?
The Package Manager team evaluates CRAN, Bioconductor, and PyPI each business day (Monday through Friday) and publishes new snapshots when updates are available. Then, Posit Public Package Manager syncs these snapshots daily.
For example, suppose a CRAN package gets updated on Saturday. A new snapshot will be published and made available some time on Monday. However, this schedule is subject to change without notice. Large updates, external repository errors or inconsistencies, and other unanticipated situations may occasionally delay these updates.