Skip to content
Paquetier

Installing Packages

Paquetier repositories are fully CRAN-compatible. You can install packages using standard R tooling without any additional plugins.

Install a package from a specific repository:

install.packages("mypackage", repos = "https://paquetier.example.com/cran/my-repo")

You can combine Paquetier repos with CRAN or other repositories:

install.packages("mypackage", repos = c(
  "https://paquetier.example.com/cran/my-repo",
  "https://cloud.r-project.org"
))

Add your Paquetier repo to your .Rprofile so it’s always available:

options(repos = c(
  paquetier = "https://paquetier.example.com/cran/my-repo",
  CRAN = "https://cloud.r-project.org"
))

Private repositories require authentication. Pass credentials via HTTP headers using the download.file.extra option:

options(download.file.extra = paste0(
  '--header="Authorization: Bearer ', Sys.getenv("PAQUETIER_TOKEN"), '"'
))

install.packages("mypackage", repos = "https://paquetier.example.com/cran/private-repo")

Set the PAQUETIER_TOKEN environment variable to your API key (prefixed with paquetier_) or a JWT token.

If binary packages are available for your platform, R will automatically prefer them over source packages. Paquetier serves binaries at the standard CRAN binary paths, so no special configuration is needed.

By default, R installs the latest version of a package. To install a specific version, use the remotes package:

remotes::install_version("mypackage", version = "1.2.0",
  repos = "https://paquetier.example.com/cran/my-repo")

Yanked versions are still available for installation but are hidden from the default package listing.