## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  eval = FALSE
)

## -----------------------------------------------------------------------------
# library(depguard)
# dep_env()

## -----------------------------------------------------------------------------
# snap <- dep_snapshot(path = "depguard_snapshot.rds")

## -----------------------------------------------------------------------------
# install.packages("someNewPackage")

## -----------------------------------------------------------------------------
# dep_diff(snap)

## -----------------------------------------------------------------------------
# dep_diff("depguard_snapshot.rds")

## -----------------------------------------------------------------------------
# dep_manifest(
#   dplyr = ">= 1.1.4",   # at least this version
#   ggplot2 = "3.5.0",    # a bare version also means "at least"
#   quantmod = "== 0.4.26" # exactly this version
# )

## -----------------------------------------------------------------------------
# library(dplyr)
# dep_manifest_freeze(path = "depguard.txt")

## -----------------------------------------------------------------------------
# dep_check(path = "depguard.txt")

## -----------------------------------------------------------------------------
# dep_healthcheck()

## -----------------------------------------------------------------------------
# dep_libraries()

## -----------------------------------------------------------------------------
# dep_fix("stringr", "1.5.0", dry_run = TRUE)
# dep_fix("stringr", "1.5.0")

