Document the R Working Environment

Prints out information about the R working environment (system, R version,loaded and attached packages and versions) from a single function "env_doc()". Optionally adds information on git repository, tags, commits and remotes (if available).

A R package to report various aspects of the environment in which an analysis was run. This includes system information, packages used, working directory, script path and git repository (if any; uses git2r).

Output can be returned as a data table, printed, or formatted using knitr::kable.


info <- env_doc()
# format environment information as a table
# print environment information



envDocument 2.4.0

  • Identify runs in Domino Datalab environments and report additional information
  • Added unit tests with testthat
  • Finalized Domino environment report.
  • Include git branch name in git values.
  • Modified Author section in DESCRIPTION file in an effort to get better formatting.
  • Implemented try() calls to handle missing file/package errors more gracefully and consistently.

envDocument 2.3.0

This is the first CRAN submission for package envDocument. The version number for this first submission is 2.3.0 for consistency with previous internal versions of this package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


2.4.1 by Donald Jackson, 2 years ago

Browse source code at

Authors: Donald Jackson [aut, cre]

Documentation:   PDF Manual  

GPL (>= 3.0) license

Imports utils, methods

Suggests git2r, knitr, stringr, testthat

See at CRAN