clean_session: Obtains a 'sessionInfo' from a local R session

Description Usage Arguments Examples

View source: R/utility-functions.R

Description

The function may also execute provided expressions or files. The implementation is based on r_vanilla.

Usage

1
2
3
4
5
6
7
8
clean_session(
  expr = c(),
  script_file = NULL,
  rmd_file = NULL,
  echo = FALSE,
  predetect = TRUE,
  repos = "https://cloud.r-project.org"
)

Arguments

expr

vector of expressions to be executed in the session (see quote)

script_file

R script to be executed in the session, uses source

rmd_file

R Markdown file to rendered in the session, uses render

echo

print out detailed information from R

predetect

whether to use automagic to install missing packaging before executing the R script or R Markdown file

repos

Repository to use, required if expr includes install statements

Examples

1
clean_session(c(quote(library('lattice'))))

o2r-project/containerit documentation built on June 28, 2021, 2:46 p.m.