From a1edda15d0328154b727cfe6b4f3844ada0eeafa Mon Sep 17 00:00:00 2001 From: Ludvig Renbo Olsen Date: Wed, 29 Jan 2020 02:29:58 +0100 Subject: [PATCH] Skip matrix tests on r-devel for now --- README.Rmd | 2 +- tests/testthat/test_gxs_selection.R | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.Rmd b/README.Rmd index ae8f56a..a15d485 100644 --- a/README.Rmd +++ b/README.Rmd @@ -32,7 +32,7 @@ rvers <- substring(dep, 7, nchar(dep)-1) [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental) [![CRAN status](https://www.r-pkg.org/badges/version/xpectr)](https://CRAN.R-project.org/package=xpectr) -[![metacran downloads](https://cranlogs.r-pkg.org/badges/xpectr)](https://cran.r-project.org/package=xpectr) + [![minimal R version](https://img.shields.io/badge/R%3E%3D-`r rvers`-6666ff.svg)](https://cran.r-project.org/) [![Codecov test coverage](https://codecov.io/gh/ludvigolsen/xpectr/branch/master/graph/badge.svg)](https://codecov.io/gh/ludvigolsen/xpectr?branch=master) [![Travis build status](https://travis-ci.org/LudvigOlsen/xpectr.svg?branch=master)](https://travis-ci.org/LudvigOlsen/xpectr) diff --git a/tests/testthat/test_gxs_selection.R b/tests/testthat/test_gxs_selection.R index 4299216..db09def 100644 --- a/tests/testthat/test_gxs_selection.R +++ b/tests/testthat/test_gxs_selection.R @@ -1067,6 +1067,12 @@ test_that("formula expectations are created properly with gxs_selection()", { test_that("matrix expectations are created properly with gxs_selection()", { + # TODO Once you can get access to R 4.0.0 (or devel from after 01-28-2020) + # Make sure this works on that version of R as well! + if (getRversion()$major > 3 || getRversion()$minor > 6){ + testthat::skip("skipping due to breaking changes in R 4.0.0") + } + set_test_seed(1) m_num <- matrix(runif(12), 4, 3) m_char <- matrix(as.character(runif(12)), 3, 4)