Repository navigation
rig 0.12.0 alpha
Pre-releaseNew features
-
New
rig auditcommand: it checks the packages of a project's lock file
and library, or of an R library, for known vulnerabilities and for
versions that the repository blocks.rig audit --fixupgrades them to
the nearest version without known problems. It exits with status 1 if it
finds problems, so it can be used in CI.rig pkg auditdoes the same
for a package library, inside or outside a project.--exclude-newer
limits the upgrades to versions published before a given date. -
rig now reads a package repository according to its type (CRAN mirror,
Posit Package Manager, Bioconductor, r-universe, etc.), detected from the
server or set withtypeinrproj.tomlorrig repos add --type. For
CRAN mirrors rig reads the full history of CRAN, so older versions are
available, too. -
rig proj lockandrig pkg installnow record the git commit of
packages from r-universe repositories. If r-universe later replaces the
package file,rig proj syncbuilds the package from git at the locked
commit. -
rig ppmhas new subcommands to query a Posit Package Manager instance:
repos,snapshots,sources,transactionsandwhoami. The new
rig ppm pkggroup has the commands about packages:list,info,
history,vulns,downloads, andpublish, which uploads
a package to a local source.rig ppm buildsandrig ppm build-logmoved
torig ppm pkg buildsandrig ppm pkg build-log; the old names still
work.rig ppm urlcan now print repository URLs, for a snapshot and for
Linux binaries, andrig ppm statusalso shows the statistics and feature
flags of the instance. -
rig now reads a Package Manager token from the
PACKAGEMANAGER_TOKEN
environment variable, for the instance inPACKAGEMANAGER_ADDRESS. It
sends Package Manager tokens to the Package Manager API as bearer tokens.
Projects
-
R sessions in synced rig projects now read
.Renviron.rigafter
~/.Renviron. Put secrets that must not be committed into this file
(#518). -
rig proj importimprovements. It now:- parses author names better, and
rig proj exportwrites them back
in the same form; - records the order of the
DESCRIPTIONfields in
description-field-orderin[tool.rig], andrig proj export
writes the fields in the same order; - rewrites
DESCRIPTIONfrom the newrproj.toml, like
rig proj export --force. Use--keep-descriptionto leave
DESCRIPTIONunchanged; - adds
rproj.toml,rproj.lock,.rvenv,.rvenvlib,.Renviron
and.Renviron.rigto.Rbuildignore; - adds
rproj.lockto.gitignore. A package is checked against many
versions of its dependencies, so it should not commit a lock file.
- parses author names better, and
-
rig proj renv importimprovements. It now:- creates both
rproj.tomlandrproj.lock, and the lock file has the
same package versions asrenv.lock. Use--no-lock-versionsto skip
creatingrproj.lock; - sets
r-versionsinrproj.tomlto the R version ofrenv.lock; - imports repositories and detects their type;
- warns about packages from unsupported sources;
- imports packages that renv installed from GitHub, GitLab, Bitbucket
or git asgitdependencies.
- creates both
-
rig proj exportnow writes exact version requirements as
pkg (== 1.0.0)inDESCRIPTION, because R does not support a single
=. It also writes strict bounds as>and<, not>>and<<. -
In admin mode, when
rig proj syncorrig runneed to install R, they
now runrig addin a separate process, and only that process runs with
sudo(or as administrator on Windows). Before, the whole command ran
again withsudoafter the R installation, so the project library and
the package cache were owned by root (#503). -
rig proj syncno longer fails to install the project's own package.
It copied the project's.rvenvdirectory too, while it was installing
the dependencies there, and this sometimes failed.
Package installation
-
rig now retries package downloads that fail with a transient error, a
broken connection, a timeout, or some 4xx and 5xx HTTP statuses.
It tries each URL up to three times. -
rig now respects servers that rate limit requests, e.g. the public Posit
Package Manager at p3m.dev. If a server answers with 429 Too Many
Requests, or with aRetry-Afterheader, rig pauses all downloads from
that server for the time inRetry-Afterand then tries again. -
rig pkg install --no-install-selfnow only skips the local packages
(paths) named on the command line. Before, it skipped every named
package. -
rig pkg installandrig proj syncnow show why a package failed to
install when the error happens outside ofR CMD INSTALL, e.g. when the
library is not writeable. Before, this error was only in the debug
output (#504). -
rig pkg installandrig proj locknow choose binary packages for
the architecture of the R version, not rig's own. Before, an x86_64
build of rig on aarch64 Windows installed x86_64 binaries into the
library of an aarch64 R.rig pkg installandrig proj syncnow also
reinstall packages that were built for another architecture. -
rig pkg doctornow reports packages built for another architecture
on Windows too, e.g. x86_64 packages in the library of an aarch64 R.
R installations
-
rig now supports manylinux_2_28 R builds, which only need glibc 2.28,
so rig now works on RHEL 8, Rocky Linux 8, Ubuntu 20.04, etc.
(#402, #517). -
In user mode on macOS,
rig addnow setsFONTCONFIG_FILEin R's
etc/Renviron, so cairo graphics devices, e.g.svg(), work correctly.
Reinstall R versions installed with an older rig to get the fix, e.g.
withrig add --reinstall(#439, #524). -
rig's code in the system
Rprofilenow only creates the user library
ifR_LIBS_USERis an absolute path. Before, it created a directory
called'NULL'on Windows duringR CMD check, which sets
R_LIBS_USERto'NULL', with the quotes. -
rig now creates
.exeshims differently, without modifying the signed
.exefiles, to avoid interference with security software. Run
rig system make-linksto update the existing quick links, including
the aliases and the default version, andrig proj syncin your
projects to update their shims.
Certificates
-
In user mode on Linux and for portable installations in admin mode,
SSL_CERT_FILEandCURL_CA_BUNDLEset in the shell now take precedence
over the rig CA bundle in R'sRenviron.site. Run
rig system update-certsto fix R versions that are already installed
(#501). -
On Linux, rig now points portable R installations at the system CA
bundle, e.g./etc/ssl/certs/ca-certificates.crt, so R trusts the same
certificates as the rest of the system. It only downloads the Mozilla
bundle from curl.se if it cannot find a system bundle. Bothrig add
andrig system update-certsdo this (#501). -
rig system update-certsnow also works in admin mode on Linux. It
updates the portable R installations, and runssudoif needed.
rig itself
-
rig now has nightly builds, published as the
nightlyGitHub release.
Install them withrig self update --nightly. -
rig self updatenow works on Windows on ARM.