We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579cb41 commit 381d913Copy full SHA for 381d913
inst/unitTests/runit.InternalFunctionCPP11.R
@@ -18,11 +18,9 @@
18
# You should have received a copy of the GNU General Public License
19
# along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
20
21
-hasCXX11 <- grepl("-std=c\\+\\+1[1-9yz]", Sys.getenv("PKG_CXXFLAGS"))
+.runThisTest <- Sys.getenv("RunAllRcppTests") == "yes"
22
23
-.runThisTest <- Sys.getenv("RunAllRcppTests") == "yes" && hasCXX11
24
-
25
-if( .runThisTest ) {
+if( .runThisTest && Rcpp:::capabilities()[["Full C++11 support"]] ) {
26
27
.tearDown <- function(){
28
gc()
0 commit comments