Use an existing project
Create a lockfile and sync dependencies for an R package project.
Run rpx lock in a project that already has a DESCRIPTION file.
rpx lock
This resolves the dependencies declared by the project and writes rpx.lock.
Install the locked package set with rpx sync.
rpx sync
Check project state
Use rpx status before committing or in CI.
rpx status
If anything is out of sync, rpx prints the command to run next.
What to commit
Commit DESCRIPTION and rpx.lock.
Do not commit the project library or local cache. rpx recreates local state from the committed files.
Run R
Use rpx run after syncing so R sees the project library.
rpx run R