Base and recommended packages are omitted. Packages that were installed from non-CRAN sources are also included, but you won't be able to restore them with restore.
restore
snap(to = "packages.csv", lib.loc = NULL, recommended = FALSE)
File to write the package versions to, defaults to packages.csv. If it is NULL, to output file is created and the result is returned as a data frame.
packages.csv
character vector describing the location of R library trees to search through, or NULL for all known trees (see .libPaths).
NULL
.libPaths
if TRUE then recommended packages will be included in the snapshot.
A two columns data frame, invisibly if it was written to a file.
The output file will have two columns, package name and package version.
# NOT RUN { snap(to = tmp <- tempfile()) head(read.csv(tmp)) # }
Run the code above in your browser using DataLab