Uploading Packages
Packages can be uploaded to Paquetier via the CLI or the REST API. You need write access to a repository (either as a collaborator or admin) to upload packages.
What You Can Upload
Section titled “What You Can Upload”- Source packages —
.tar.gzfiles built withR CMD build. - Binary packages — Platform-specific
.zip(Windows) or.tgz(macOS) files.
Uploading via CLI
Section titled “Uploading via CLI”The simplest way to upload is with the paquetier CLI:
See the CLI upload reference for all options.
Uploading via API
Section titled “Uploading via API”You can also upload directly via the REST API:
For binary uploads, include the platform metadata as query parameters or form fields.
What Happens on Upload
Section titled “What Happens on Upload”When you upload a package, Paquetier:
- Extracts the
DESCRIPTIONfile from the tarball. - Parses package metadata (name, version, dependencies, license, etc.).
- Uploads the artifact to the repository’s S3 storage backend.
- Rebuilds the CRAN
PACKAGESindex so R clients can discover the new package immediately.
Package Versions
Section titled “Package Versions”- Each upload creates or updates a version for the package.
- Uploading the same version again replaces the existing artifact.
- Versions can be yanked through the web UI to soft-deprecate them without deletion.
Automated Uploads
Section titled “Automated Uploads”For CI/CD pipelines, create a scoped API key with write access to the target repository and use it in your pipeline scripts.