The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

depguard

R-CMD-check

Manifest-based, transitive-aware dependency conflict detection for R, built for sandboxed and ephemeral notebook environments (Kaggle, Colab, Binder) where a full renv lockfile workflow doesn’t fit.

Why

Hosted notebooks ship a pre-installed package set at fixed versions. Installing a new package can silently upgrade a dependency that’s already loaded elsewhere in your session, breaking code downstream with no install-time error. renv and pak are great but assume you own and can persist the environment. depguard fills the narrower gap: lightweight, local-first checks that work without lockfile ownership.

Install

# install.packages("remotes")
remotes::install_github("sunraycodes/depguard")

Usage

Snapshot / diff, around an install:

library(depguard)

snap <- dep_snapshot()
install.packages("someNewPackage")
dep_diff(snap)

Manifest, declared once per project:

dep_manifest(dplyr = "1.1.4", ggplot2 = "3.5.0")
dep_check()

One-shot health check, at the top of a notebook:

dep_healthcheck()

Single-package rollback:

dep_fix("stringr", "1.5.0")

See vignette("kaggle-colab-workflow") for the full walkthrough.

Scope

dep_check() is local-only by default (no network calls) and covers transitive dependencies. Pass check_cran = TRUE to additionally query CRAN’s live metadata. dep_fix() performs a single-package rollback only; it does not resolve cascading conflicts – use renv::restore() or pak’s solver for that.

License

MIT

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.