create_shellscript: Create Shell Script with Installation Instructions

View source: R/create.R

create_shellscriptR Documentation

Create Shell Script with Installation Instructions

Description

Different shell scripts with installation instructions are required for the various docker images.

Usage

create_shellscript(
  type,
  rpkgs,
  syslibs = NULL,
  pypkgs = NULL,
  extra = NULL,
  os = tolower(system("lsb_release -si", intern = TRUE)),
  os_release = system("lsb_release -sr", intern = TRUE),
  save_as = fs::path("scripts", glue::glue("install_{type}.sh"))
)

Arguments

type

type of software bundle to install, one of c("aws", "spatial", "cicd")

rpkgs

character vector of R packages to install

syslibs

character vector of system libraries to install (which are not found as dependency of the rpkgs).

pypkgs

character vector of Python packages to install

extra

character vector of additional software packages to install

os

definition of operating system; default to tolower(system("lsb_release -si", intern = TRUE)).

os_release

definition of operating system release version; default to system("lsb_release -sr", intern = TRUE).

save_as

path for storing the installation instruction file; default to fs::path("scripts", glue::glue("install-{type}.sh")).

Value

Logical indicating whether a write occurred, invisibly.


meterds/mdsrocker documentation built on Dec. 2, 2023, 11:56 p.m.