Learn R Programming

RSuite (version 0.37-253)

sysreqs_collect: Prints out all system requirements from dependencies and project packages.

Description

Prints out all system requirements from dependencies and project packages.

Usage

sysreqs_collect(prj = NULL)

Arguments

prj

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

Value

named list with package names and containing system requirements as value.

See Also

Other in SYSREQS: sysreqs_check, sysreqs_install

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 package to the project
  prj_start_package("mypackage", prj = prj)

  # add system requirements specification
  write("SystemRequirements: some requirement",
      file = file.path(prj$path, "packages", "mypackage", "DESCRIPTION"),
      append = TRUE)

  # list content of pkgzip created
  sysreqs_collect(prj)
# }

Run the code above in your browser using DataLab