Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 19, 2023
1 parent df7b172 commit 6babb97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/testthat/test-data_to_factor.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion tests/testthat/test-data_to_numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6babb97

Please sign in to comment.