Learn R Programming

containerit (version 0.6.0)

Label_SessionInfo: Creates a label holding R session information

Description

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

Usage

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

Run this code
# NOT RUN {
the_session <- clean_session()
the_dockerfile <- dockerfile(the_session)
addInstruction(the_dockerfile) <- Label_SessionInfo(the_session)
# }

Run the code above in your browser using DataLab