Label_SessionInfo: Creates a label holding R session information

Description Usage Arguments Value See Also Examples

View source: R/Class-Label.R

Description

See https://docs.docker.com/engine/reference/builder/#label

Usage

1
Label_SessionInfo(session = sessionInfo(), as_json = FALSE)

Arguments

session

An object of class 'sessionInfo' as returned by utils::sessionInfo(), or alternatively a class 'session_info' as returned by devtools::session_info()

as_json

Determines whether to parse the session information to a json-string instead of a plain string

Value

A label with key 'R.session-info' and the deparsed session information in one line

See Also

Other label: Label-class, LabelSchemaFactory(), Label_Maintainer(), Label

Examples

1
2
3
the_session <- clean_session()
the_dockerfile <- dockerfile(the_session)
addInstruction(the_dockerfile) <- Label_SessionInfo(the_session)

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