Skip to content

Auditing

Ben Tupper edited this page Feb 2, 2021 · 1 revision

In addition to using repositories, containers, modules and the like to manage software versions, sometimes it is nice to simply dump a snapshot of current R software to a text file. It is not a bad idea to do so for every workflow version you run - much as you might establish logging.

Keep in mind this is not version control - it's just a simple record of packages installed and a few other bits of information.

charlier::audit(filename = "~/my_audit.txt")

Here's an snippet of the first dozen lines...

Audit date: 2020-12-14 08:04:49 EST 
System PID: 14355 
PBS_JOBID:  
Cores: 4 
R version: R version 4.0.3 (2020-10-10) 
libPaths():
     /home/btupper/R/x86_64-conda-linux-gnu-library/4.0 
     /mnt/modules/bin/dada2/1.18/lib/R/library 
installed.packages():
"Package","Version","LibPath"
"charlier","0.1","/home/btupper/R/x86_64-conda-linux-gnu-library/4.0"
"dplyr","1.0.2","/home/btupper/R/x86_64-conda-linux-gnu-library/4.0"
"generics","0.1.0","/home/btupper/R/x86_64-conda-linux-gnu-library/4.0"
  .
  .
  .

Clone this wiki locally