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

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).

Value

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

Details

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

See also

Examples

# NOT RUN {
readLines(system.file('installation/code.iss', package = 'RInno'))
# }