Skip to content

Commit 6babb97

Browse files
committed
fix
1 parent df7b172 commit 6babb97

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/testthat/test-data_to_factor.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ test_that("data_read, convert many labels correctly", {
144144

145145

146146
test_that("to_factor works with haven_labelled, convert many labels correctly", {
147+
skip_if_not_installed("withr")
147148
withr::with_tempfile("temp_file", fileext = ".sav", code = {
148149
request <- httr::GET("https://raw.github.com/easystats/circus/main/data/EFC.sav")
149150
httr::stop_for_status(request)

tests/testthat/test-data_to_numeric.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,12 @@ test_that("to_numeric regex", {
163163

164164

165165
test_that("to_numeric works with haven_labelled, convert many labels correctly", {
166+
skip_on_cran()
166167
skip_if_not_installed("httr")
167168
skip_if_not_installed("haven")
168-
skip_on_cran()
169+
skip_if_not_installed("withr")
170+
skip_if_not_installed("curl")
171+
skip_if_offline()
169172

170173
withr::with_tempfile("temp_file", fileext = ".sav", code = {
171174
request <- httr::GET("https://raw.github.com/easystats/circus/main/data/EFC.sav")

0 commit comments

Comments
 (0)