findRscript: Returns list of R installation paths.

Description Usage Arguments Details

Description

Given a vector of search paths, returns all instances of R installations.

Usage

1
findRscript(path, executable = "(Rscript$|Rscript.exe)", pattern, version)

Arguments

path

Character vector of search paths. Passed to list.files. If not specified (the default) then the search path contains typical installation paths for different operating systems.

executable

Regular expression that defines the name of the Rscript executable. Defaults to a regular expression that finds Rscript on linux machines and Rscript.exe on Windows

pattern

regular expression. Passed to list.files

version

Additional regular expression, e.g. "3.2.1" to limit the results list to a specific version of R

Details

This function is a wrapper around list.files setting the search pattern to Rscript.exe.


andrie/version.compare documentation built on May 10, 2019, 11:42 a.m.