-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathR_version_in_a_folder.Rd
More file actions
28 lines (28 loc) · 947 Bytes
/
Copy pathR_version_in_a_folder.Rd
File metadata and controls
28 lines (28 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/updateR.R
\name{R_version_in_a_folder}
\alias{R_version_in_a_folder}
\title{Get the version of the R installed in a folder}
\usage{
R_version_in_a_folder(folder)
}
\arguments{
\item{folder}{The folder for which we wish to know the R version.}
}
\value{
Returns a character vector of the R version (or NA, if this is not an R installation folder)
}
\description{
Get the version of the R installed in a folder based on the structure of the filename README.R-... (where ... is a version number for R).
This function helps detect the version number of an R installation even if the name of the folder is not standard.
If multiple versions were installed, overwriting each other, the most recent is selected.
}
\examples{
\dontrun{
R_version_in_a_folder(folder = R.home())
# returns the version of the current R installation
}
}
\seealso{
\link{get.installed.R.folders}
}