Skip to content

Self-hosted R package registry

Private R packages. Installed like CRAN.

Paquetier is a CRAN-compatible registry for private and public R packages. It serves source and binaries from an S3 bucket you control, with roles per repository.

R consolepublic repository
> options(repos = c(paquetier = "https://pkg.acme.dev/cran/stable",+                   CRAN = "https://cloud.r-project.org"))> install.packages("acmeutils")trying URL 'https://pkg.acme.dev/cran/stable/src/contrib/acmeutils_1.4.0.tar.gz'Content type 'application/octet-stream' length 412839 bytes (403 KB)downloaded 403 KB * installing *source* package 'acmeutils' ...* DONE (acmeutils)
Protocol
CRAN layout, Archive
Storage
S3 per repository
Database
Postgres
License
Fair Core License
BinariesLinux builds

Source and binaries. Per platform, side by side.

Paquetier builds Linux binaries from your git sources and serves uploaded macOS and Windows binaries next to the source. A gap shows where a platform has no build yet.

Example repository
  • acmeutils 1.4.0Source and all 4 binaries
  • arrow 19.0.1Source and all 4 binaries
  • backports 1.5.0No Linux arm64
  • bit64 4.6.0No Alpine x86_64No macOS
  • brms 2.22.0Source and all 4 binaries
InstallCRAN protocol

One URL. Every R client already speaks it.

Paquetier serves the CRAN layout: PACKAGES indexes, source tarballs, binaries and the Archive. install.packages, pak and renv work without a plugin. A private repository takes an API key from ~/.netrc, readable only by you. pak needs version 0.9 or later, and base R without the curl tool needs R 4.6. The app writes this setup for each repository, and the command for each binary platform.

~/.Rprofile
options(
  repos = c(
    paquetier = "https://token@pkg.acme.dev/cran/stable",
    CRAN = "https://cloud.r-project.org"
  ),
  netrc = path.expand("~/.netrc"),
  download.file.method = if (nzchar(Sys.which("curl"))) "curl" else "libcurl",
  download.file.extra = "--netrc --location --fail"
)
~/.netrc
machine pkg.acme.dev
  login token
  password paquetier_3f9c...
R session
install.packages("acmeutils")
# or
pak::pkg_install("acmeutils")
# or
renv::install("acmeutils")
FeaturesSelf-hosted

Storage, access, builds. Set per repository.

One server and a Postgres database. Every repository brings its own storage, and people get a role per repository.

01 Storage

Storage per repository

Any S3-compatible store, or local disk where an admin allows it. Credentials are encrypted at rest, and a scan imports a CRAN-layout bucket you already have, Archive included.

S3Local disk
02 Access

Public or private

Owner, editor and viewer roles per repository. API keys for CI, and sign-in with local accounts or OIDC.

OIDCAPI keys
03 Build

From git to binary

Paquetier polls a git source for new tags or branch commits, runs R CMD build and publishes the package, with Linux binaries on request.

GitR CMD build

From a bucket to install.packages() in one afternoon.

Install the Helm chart with a Postgres database, connect a bucket to a repository and add its URL to .Rprofile.