From 6babb972a0744d8a60342f8ba94952025a4870ce Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 19 Nov 2023 20:46:36 +0100 Subject: [PATCH] fix --- tests/testthat/test-data_to_factor.R | 1 + tests/testthat/test-data_to_numeric.R | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-data_to_factor.R b/tests/testthat/test-data_to_factor.R index 289dccf0c..e45423bd5 100644 --- a/tests/testthat/test-data_to_factor.R +++ b/tests/testthat/test-data_to_factor.R @@ -144,6 +144,7 @@ test_that("data_read, convert many labels correctly", { test_that("to_factor works with haven_labelled, convert many labels correctly", { + skip_if_not_installed("withr") withr::with_tempfile("temp_file", fileext = ".sav", code = { request <- httr::GET("https://raw.github.com/easystats/circus/main/data/EFC.sav") httr::stop_for_status(request) diff --git a/tests/testthat/test-data_to_numeric.R b/tests/testthat/test-data_to_numeric.R index 4bfd969bf..df43f401f 100644 --- a/tests/testthat/test-data_to_numeric.R +++ b/tests/testthat/test-data_to_numeric.R @@ -163,9 +163,12 @@ test_that("to_numeric regex", { test_that("to_numeric works with haven_labelled, convert many labels correctly", { + skip_on_cran() skip_if_not_installed("httr") skip_if_not_installed("haven") - skip_on_cran() + skip_if_not_installed("withr") + skip_if_not_installed("curl") + skip_if_offline() withr::with_tempfile("temp_file", fileext = ".sav", code = { request <- httr::GET("https://raw.github.com/easystats/circus/main/data/EFC.sav")