env_doc {envDocument} | R Documentation |
Report the working environment in which an analysis was performed.
Description
env_doc
prints or returns a data frame with the following information:
- System version (OS, version, user, working directory)
Usage
env_doc(output = c("return", "print", "table"), system = TRUE,
version = TRUE, packages = TRUE, script = TRUE, git = TRUE,
domino = c("auto", "on", "off"))
Arguments
output |
How should output be handled? Character, values: return - return as a data frame (default); print - print to stdout; table - pretty-print using knitr::kable (requires package knitr) |
system |
Include OS info from |
version |
Include R version from |
packages |
Include attached packages with repository and version from
|
script |
Include script path and modification time from
|
git |
Include git repository information from |
domino |
Include Domino Datalab run information from
|
Details
- R version
- Package names and versions
- Top-level script name and modification time
- Git hash, status and tag (if any; requires package git2r)
Value
If output = return (default): A data frame with columns for information type, variable name and value. NULL for output = print or output = table
Examples
env_doc("print") # print information to stdout
info <- env_doc() # return information as a consolidated data frame