diff --git a/.travis.yml b/.travis.yml index e9838164..7bb88152 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,4 +56,4 @@ r_github_packages: after_success: - Rscript -e 'covr::codecov()' - - Rscript -e 'lintr::lint_package()' +# - Rscript -e 'lintr::lint_package()' diff --git a/DESCRIPTION b/DESCRIPTION index 609f8e0d..963afd81 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -35,6 +35,8 @@ Imports: glue, checkmate, testthat +Suggests: + tidyr Remotes: rstudio/learnr URL: https://rstudio-education.github.io/gradethis/, diff --git a/tests/testthat/test_check_code.R b/tests/testthat/test_check_code.R index 2b47f94d..35fefdb7 100644 --- a/tests/testthat/test_check_code.R +++ b/tests/testthat/test_check_code.R @@ -209,6 +209,8 @@ test_that("Spot differences when pipes are involved", { test_that("Spots differences in long calls", { # original discussion here: # https://github.com/rstudio-education/grader/issues/28 + + testthat::skip_if_not_installed("tidyr") user <- quote(tidyr::gather(key = key, value = value, new_sp_m014:newrel_f65, na.rm = TRUE)) # nolint solution <- quote(tidyr::gather(key = key, value = value, new_sp_m014:newrel_f65, na.rm = FALSE)) # nolint