Skip to content

Commit

Permalink
Skip matrix tests on r-devel for now
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigOlsen committed Jan 29, 2020
1 parent bdf0eeb commit a1edda1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.Rmd
Expand Up @@ -32,7 +32,7 @@ rvers <- substring(dep, 7, nchar(dep)-1)
<!-- badges: start -->
[![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)
<!-- [![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)
Expand Down
6 changes: 6 additions & 0 deletions tests/testthat/test_gxs_selection.R
Expand Up @@ -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)
Expand Down

0 comments on commit a1edda1

Please sign in to comment.