code_section: Pascal script to check registry for R

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Modern Delphi-like Pascal adds a lot of customization possibilities to the installer. For examples, please visit Pascal Scripting Introduction.

Usage

1
2
code_section(iss, R_version = paste0(">=", R.version$major, ".",
  R.version$minor))

Arguments

iss

Character vector which cumulatively becomes an Inno Setup Script (ISS).

R_version

R version to use. Supports inequalities. Defaults to: paste0(">=", R.version$major, '.', R.version$minor).

Details

This script checks the registry for R, so that R will only be installed if necessary.

Value

Chainable character vector, which can be used as the text argument of writeLines to generate an ISS.

Author(s)

Jonathan M. Hill

See Also

get_R, copy_installation, create_config, create_bat, directives_section, setup_section, languages_section, tasks_section, files_section, icons_section, run_section, and code_section.

Examples

1
2
3
4
## Not run: 
readLines(system.file('installation/code.iss', package = 'RInno'))

## End(Not run)

RInno documentation built on May 1, 2019, 10:52 p.m.