parsePkgVersions: Parse R and R package versions from session informations

View source: R/parsePkgVersions.R

parsePkgVersionsR Documentation

Parse R and R package versions from session informations

Description

The function parses the R version and R package versions from session information (created by sessionInfo(), tested with R 3.6) in files provided in infiles. Two types of files are currently supported:

Rout:

Files containing R console output (created by R CMD BATCH script.R output.Rout

md:

Files containing markdown output created by rmarkdown::render('input.Rmd', clean = FALSE), which will keep the intermediate .md file.

Usage

parsePkgVersions(infiles)

Arguments

infiles

Character vector with text files (extension must be either .Rout or .md), containing session information to parse out.

Value

A list of lists with one element in the outer list for each R version, contianing an innter list with elements files and packages.

Author(s)

Michael Stadler

Examples

f <- list.files(system.file("extdata", "parsePkgVersions",
                            package = "swissknife"),
                full.names = TRUE)
parsePkgVersions(f)


fmicompbio/swissknife documentation built on June 11, 2025, 4:17 p.m.