Start a project

Create a DESCRIPTION file and add your first dependency with rpx.

Use rpx init in a new project directory to create a DESCRIPTION file.

rpx init

Add a package with rpx add.

rpx add digest

rpx add updates DESCRIPTION, resolves a compatible package set, writes rpx.lock, and syncs the project library.

Version bounds

When you add a package, rpx chooses the latest version compatible with your other dependencies. It records that version as the lower bound and the next major version as the upper bound.

This avoids two common surprises: downgrading below the version you just selected and upgrading across a major version boundary later.

Add and remove packages

Use rpx commands when dependencies change so the manifest, lockfile, and project library stay together.

rpx add jsonlite
rpx remove digest

Both commands update DESCRIPTION, rewrite rpx.lock, and sync the project library.

Run R

Start R through rpx after adding packages.

rpx run R

If you start R directly, it will not use the rpx project library.