sysreqs_check: Checks for system requirements availability.

Description Usage Arguments See Also Examples

Description

Collects system requirements with sysreqs_collect and performs checks for their existence. Will fail if some system requirements are not satisfied.

Usage

1

Arguments

prj

project object to check 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_collect, sysreqs_install

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# 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)


  # check if requirements or XML are satisfied
  sysreqs_check(prj)

RSuite documentation built on June 10, 2019, 5:03 p.m.