Skip to content

Commit 1f183f5

Browse files
skip tests on R < 3.2
because git2r::discover_repository() not working on R 3.1.
1 parent b3ff15b commit 1f183f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-use-tidy-style.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
context("use_tidy_style")
22

33
test_that("styling the package works", {
4+
skip_if(getRversion() < 3.2)
5+
skip_if_no_git_config()
46
pkg <- scoped_temporary_package()
57
use_r("bad_style")
68
path_to_bad_style <- proj_path("R/bad_style.R")

0 commit comments

Comments
 (0)