You can resolve CRAN packages from Local, Remote, and Virtual CRAN Repositories specified as supporting CRAN packages.
Note
Applicable for Local, Remote, and Virtual repositories.
To install a CRAN package from this repository, use the R command line and run the following command:
install.packages("<PACKAGE_NAME>",
repo="https://company.jfrog.io/artifactory/<REPOSITORY>",
headers=c(Authorization="Bearer <TOKEN>"))
Where:
<PACKAGE_NAME>: Name of the CRAN package to install
<COMPANY>: Your organization or domain (e.g., productdemo)
<REPOSITORY>: Target CRAN repository name (e.g., john-cran-local)
<TOKEN>: Bearer token for authentication
Example:
install.packages("ggplot2",
repo="https://company.jfrog.io/artifactory/john-cran-local",
headers=c(Authorization="Bearer myAccessToken123"))