-
-
Notifications
You must be signed in to change notification settings - Fork 218
/
Copy pathcompilerCheck.Rd
31 lines (30 loc) · 996 Bytes
/
compilerCheck.Rd
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
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compilerCheck.R
\name{compilerCheck}
\alias{compilerCheck}
\title{Check for Minimal (g++) Compiler Version}
\usage{
compilerCheck(minVersion = package_version("4.6.0"))
}
\arguments{
\item{minVersion}{An object of type \code{package_version}, with a default
of version 4.6.0}
}
\value{
A boolean value is returned, indicating if the minimal version is
being met
}
\description{
Helper function to establish minimal compiler versions, currently limited
only to \code{g++} which (particularly for older RHEL/CentOS releases) is
too far behind current C++11 standards required for some packages.
}
\details{
This function looks up \code{g++} (as well as optional values in the
\code{CXX} and \code{CXX1X} environment variables) in the \code{PATH}. For
all values found, the output of \code{g++ -v} is analyzed for the version
string, which is then compared to the given minimal version.
}
\author{
Dirk Eddelbuettel
}