Repository navigation
hvtiR 1.3.1
-
Catalog versions refreshed from CRAN and
main:hvtiRutilitiesdev
1.5.7 to 1.5.8. The catalog ships in the package and is published as
members.json, so its recorded versions are content rather than
bookkeeping. -
Family floors refreshed from
main:hvtiRtemplatesSuggests
hvtiRtables(>= 1.0.7) to (>= 1.0.8).family-floors.csvships in the
package and records the version floors members declare on one another. -
setup()now checks that it is not running inside the study before it does anything that can install. With a renv project active, or the session library under the study root, it stops and names the command to run from a session started outside the project,hvtiR::setup(root = "<study>", ...). Before, resolving the root could installhvtiRutilitiesinto the study's own library first. -
setup()finds the study root without installing anything: it usesRENV_PROJECTwhen set, and askshvtiRutilitiesonly when it is already installed. -
setup()stops the study using renv's per-user cache (renv::settings$use.cache(FALSE), stored inrenv/settings.jsonso it applies to the whole team) and runsrenv::isolate()before restoring. It removes, and so reinstalls, any library link whose target the user cannot read, and pak's leftover_cachestaging directory, and reports what it removed. This fixes "Unable to move package" failures in a library shared by several users. -
install()andupdate()warn, with the fix, when run from an active study project whose library holds links the user cannot read or a leftover_cachedirectory. -
setup()reports a failed install without crashing. The child's output is cleaned (carriage returns, colour codes, invalid bytes, braces) before it reaches the message, and the full raw output is saved tohvtiR-setup-<time>.login the session's temporary directory, which the message names. -
setup()no longer needs a personal GitHub token. It installs the family with pak into the study's library (pak carries a shared token, so a server's shared IP does not exhaust GitHub's anonymous API limit) and keeps renv for the environment: restore, then the pak install, then the lockfile snapshot, in explicit mode. TheLinkingTopackages pak skips are installed from the configured repositories, which the snapshot's validation needs. With no token it now warns instead of stopping, since only restoring a package the lockfile pins on GitHub can need one. A token held only in the git credential store is still passed on asGITHUB_PATfor the run. -
setup()no longer installs subdirectory remotes ahead of the rest to work around a renv 1.2.4 unpack bug: pak handles them, so the workaround and itsRemotesparsing are removed. -
setup()finds the study root without loadinghvtiRutilities: loading it left its namespace in use and blocked the upgrade that follows. It usesRENV_PROJECT, else the nearest_study.ymlat or above the working directory, else the working directory. -
A link in the study's library whose target is readable but whose
DESCRIPTIONis not is now treated as unreadable and removed (the link only). A real package directory whoseDESCRIPTIONthe user cannot read is never deleted:setup()stops before changing anything, names the packages, and says their owner or an administrator must fix the permissions (chmod -R g+rX <library>/<pkg>) or remove them. -
The
install()andupdate()warning now gives the manual repair in the order that works: remove_cache, remove each broken link, thenrenv::settings$use.cache(FALSE),renv::isolate()andrenv::restore(). -
The check that no locked package moved now runs after the
LinkingTofill, immediately before the snapshot, because the fill installs through renv and can move a locked package. -
That check now compares
RemoteShaas well asVersion, so a GitHub package locked at one commit and rebuilt from another is caught even when its version is unchanged. -
When the check trips,
setup()first removes the packages this run added to the study's library, then restores the moved locked packages, so the library matches the lockfile again. If that restore fails (restoring a GitHub-locked package needs a personal token), the message names the packages that could not be restored and the token steps. The lockfile is unchanged either way. -
The pak install now uses the repositories the study's
renv.lockrecords, falling back to the session's, instead of the session's alone. -
setup()runs its child R processes from a script file instead of an-eargument. R truncated a long-eargument, so a study with about 155 locked packages ran half a script and stopped with "The install did not report the study's library path". -
setup()installs from the binary form of a Posit Package Manager source URL. When the study'srenv.lockrecords.../cran/latestand the session has.../cran/__linux__/<distro>/latest(same host, path and snapshot), pak, the restore and theLinkingTofill use the binary URL andrenv.lockis rewritten to record it, so installs no longer compile from source (arrow failed on RHEL 8's default compiler). No other repository is changed. -
setup()no longer reports false moves from its lock guard. It compares versions as versions (1.2-5is1.2.5) and looks packages up across every library on the path, so recommended packages in R's system library (mgcv,nlme,survival, ...) are found. -
New
upgradeargument tosetup(). The default,TRUE, lets the install move locked versions the declared family needs, lists each move and records it inrenv.lock.upgrade = FALSEkeeps a study in revision on its locked versions: the guard rolls back as before, and its message now says how to move them. -
setup()now resolves unmet version requirements before it snapshots. It readsDepends,ImportsandLinkingToof every package in the study library and finds packages that are absent or below a floor (>=,>,==), as renv's snapshot validation would. Withupgrade = TRUE(the default) it installs them through renv from the binary repositories and checks again; the lock guard then reports any locked package those installs moved, and a moved package it raised is listed under "Other unmet requirements resolved". What stays unmet, or anything at all withupgrade = FALSE, stopssetup()before the snapshot with each requirement listed andrenv.lockunchanged.