Downloads Rtools in app_dir. If it has already been downloaded, get_Rtools will use that file. If the download fails it will stop.

get_Rtools(app_dir, Rtools_version, R_version)

Arguments

app_dir

Development app's directory, defaults to getwd().

Rtools_version

Rtools version to include. For more information, see Building R for Windows.

R_version

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

Value

sprintf('Rtools%s.exe', gsub("\.", "", Rtools_version)) in app_dir.

Details

If create_app(include_Rtools = TRUE), then get_Rtools.

See also