env_doc | R Documentation |
env_doc
prints or returns a data frame with the following information:
- System version (OS, version, user, working directory)
env_doc(
output = c("return", "print", "table"),
system = TRUE,
version = TRUE,
packages = TRUE,
script = TRUE,
git = TRUE,
renv = TRUE,
domino = c("auto", "on", "off")
)
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 |
renv |
Include |
domino |
Include Domino Datalab run information from
|
- R version
- Package names and versions
- Top-level script name and modification time
- Git hash, status and tag (if any; requires package git2r)
If output = return (default): A data frame with columns for information type, variable name and value. NULL for output = print or output = table
## Not run:
# Note that these only work when called in a script or markdown document
env_doc("print") # print information to stdout
info <- env_doc() # return information as a consolidated data frame
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.