Skip to content

Commit 5d413e1

Browse files
AROMA test update
1 parent 523d852 commit 5d413e1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/testthat/test-apply_aroma.R‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ build_mixing_matrix <- function(n_time = 80L) {
2222
test_that("apply_aroma differentiates aggressive and non-aggressive denoising for NIfTI input", {
2323
skip_if_not_installed("RNifti")
2424

25-
withr::local_seed(42)
26-
tmpdir <- withr::local_tempdir()
25+
set.seed(42)
26+
tmpdir <- tempdir()
2727

2828
mixing <- build_mixing_matrix(100L)
2929
noise_ics <- c(2L, 4L) # regress only a subset of the available components
@@ -81,8 +81,8 @@ test_that("apply_aroma differentiates aggressive and non-aggressive denoising fo
8181
test_that("apply_aroma removes AROMA components from confounds using lmfit_residuals_mat", {
8282
skip_if_not_installed("RNifti")
8383

84-
withr::local_seed(101)
85-
tmpdir <- withr::local_tempdir()
84+
set.seed(101)
85+
tmpdir <- tempdir()
8686

8787
mixing <- build_mixing_matrix(90L)
8888
noise_ics <- c(2L, 4L)

0 commit comments

Comments
 (0)