Learn R Programming

RSuite (version 0.37-253)

sysreqs_install: Updates system to satisfy detected requirements.

Description

Collects system requirements with sysreqs_collect and builds/installs them.

Usage

sysreqs_install(prj = NULL)

Arguments

prj

project object to handle sys requirements for. If not passed the loaded project will be used or the default whichever exists. Will init default project from the working directory if no default project exists. (type: rsuite_project, default: NULL)

See Also

Other in SYSREQS: sysreqs_check, sysreqs_collect

Examples

Run this code
# NOT RUN {
# create exemplary project base folder
prj_base <- tempfile("example_")
dir.create(prj_base, recursive = TRUE, showWarnings = FALSE)

# start project
prj <- prj_start("my_project", skip_rc = TRUE, path = prj_base)

# add dependency to XML
write("library(XML)",
      file = file.path(prj$path, "R", "master.R"),
      append = TRUE)

# }
# NOT RUN {
  # check if requirements of XML are satisfied
  sysreqs_install(prj)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab