View source: R/package_tracking.R
| snapshot_packages | R Documentation |
Creates a comprehensive snapshot of all installed packages, their versions, dependencies, and sources for reproducibility.
snapshot_packages(
output_file = NULL,
include_dependencies = TRUE,
only_attached = FALSE
)
output_file |
Character. Path to save package info. If NULL, returns as list. |
include_dependencies |
Logical. Include dependency tree. Default TRUE. |
only_attached |
Logical. Only track attached packages. Default FALSE. |
A list containing package information
## Not run:
# Track all installed packages
snapshot_packages("package_manifest.json")
# Track only attached packages
snapshot_packages("packages.json", only_attached = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.