Pin the R version uvr must target to the R running the build
write_r_version_pin.Rduvr resolves the R it targets on its own: .r-version first, then the
uvr.toml r_version constraint, then the newest R it can find (managed
installs before system R). In an image carrying more than one R – for
example a /opt/R/current symlink already moved to a newer release than the
R that started the build – "newest wins" selects an R other than the
session's. uvr lock then resolves per-R-minor binary URLs for the wrong
minor and uvr sync refuses to install anything at all: "Refusing to
install: uvr is running inside R 4.5 but the project pin/lockfile resolves to
R 4.6". Writing an exact pin binds uvr to the session driving the build.