Skip to content

Commit 8ef1e27

Browse files
committed
use withr
1 parent 1c0bdc6 commit 8ef1e27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Imports:
1717
glue,
1818
lubridate,
1919
readr,
20-
stringr
20+
stringr,
21+
withr
2122
Remotes:
2223
forecasttools=github::cdcgov/forecasttools,
2324
hubUtils=github::hubverse-org/hubUtils

tests/testthat/test_update_hub_target_data.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ update_hub_target_data_test <- function(
55
nhsn_target,
66
nssp_target
77
) {
8-
base_hub_path <- tempfile(paste0("base_hub_", disease, "_"))
9-
fs::dir_create(base_hub_path)
8+
base_hub_path <- withr::local_tempdir(paste0("base_hub_", disease, "_"))
109
output_file <- fs::path(base_hub_path, "target-data/time-series.parquet")
1110
fs::dir_create(fs::path(base_hub_path, "target-data"))
1211

0 commit comments

Comments
 (0)