Running examples in ‘roistats-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: t_test_two_sample
> ### Title: Generate two-sample t-test results for multiple sub-groups
> ### Aliases: t_test_two_sample
> 
> ### ** Examples
> 
> t_test_two_sample(color_index_two_sample, x = "color_effect", y = "group", paired = TRUE)
Warning: The `t_test_two_sample()` function expects a grouped data frame (i.e., from `dplyr::group_by()`). Returning statistics for the overall comparison
Error in `mutate()`:
ℹ In argument: `ttest = map(...)`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
Backtrace:
     ▆
  1. ├─roistats::t_test_two_sample(...)
  2. │ └─... %>% select(-.data$ttest, -data)
  3. ├─dplyr::select(., -.data$ttest, -data)
  4. ├─dplyr::mutate(...)
  5. ├─dplyr:::mutate.data.frame(...)
  6. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  7. │   ├─base::withCallingHandlers(...)
  8. │   └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  9. │     └─mask$eval_all_mutate(quo)
 10. │       └─dplyr (local) eval()
 11. ├─purrr::map(...)
 12. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
 13. │   ├─purrr:::with_indexed_errors(...)
 14. │   │ └─base::withCallingHandlers(...)
 15. │   ├─purrr:::call_with_cleanup(...)
 16. │   └─roistats (local) .f(.x[[i]], ...)
 17. │     ├─stats::t.test(...)
 18. │     └─stats:::t.test.formula(...)
 19. │       └─base::stop("cannot use 'paired' in formula method")
 20. └─base::.handleSimpleError(...)
 21.   └─purrr (local) h(simpleError(msg, call))
 22.     └─cli::cli_abort(...)
 23.       └─rlang::abort(...)
Execution halted
Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(roistats)
  > 
  > test_check("roistats")
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-t_test.R:21:3'): t-test-two-sample output ──────────────────────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(., ttest = map(.data$data, ~t.test(.x[[as_name(enquo(x))]] ~ 
      .x[[as_name(enquo(y))]], paired = paired)), tvalue = map_dbl(.data$ttest, 
      ~extract2(.x, 1)), df = map_dbl(.data$ttest, ~extract2(.x, 
      2)), p = map_dbl(.data$ttest, ~extract2(.x, 3)))`: i In argument: `ttest = map(...)`.
  i In group 1: `roi_id = "AnG"`.
  Caused by error in `map()`:
  i In index: 1.
  Caused by error in `t.test.formula()`:
  ! cannot use 'paired' in formula method
  
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘get_started.Rmd’ using rmarkdown

Quitting from lines 114-117 [unnamed-chunk-10] (get_started.Rmd)
Error: processing vignette 'get_started.Rmd' failed with diagnostics:
ℹ In argument: `ttest = map(...)`.
ℹ In group 1: `roi_id = "AnG"`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
--- failed re-building ‘get_started.Rmd’

SUMMARY: processing the following file failed:
  ‘get_started.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘roistats-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: t_test_two_sample
> ### Title: Generate two-sample t-test results for multiple sub-groups
> ### Aliases: t_test_two_sample
> 
> ### ** Examples
> 
> t_test_two_sample(color_index_two_sample, x = "color_effect", y = "group", paired = TRUE)
Warning: The `t_test_two_sample()` function expects a grouped data frame (i.e., from `dplyr::group_by()`). Returning statistics for the overall comparison
Error in `mutate()`:
ℹ In argument: `ttest = map(...)`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
Backtrace:
     ▆
  1. ├─roistats::t_test_two_sample(...)
  2. │ └─... %>% select(-.data$ttest, -data)
  3. ├─dplyr::select(., -.data$ttest, -data)
  4. ├─dplyr::mutate(...)
  5. ├─dplyr:::mutate.data.frame(...)
  6. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  7. │   ├─base::withCallingHandlers(...)
  8. │   └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  9. │     └─mask$eval_all_mutate(quo)
 10. │       └─dplyr (local) eval()
 11. ├─purrr::map(...)
 12. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
 13. │   ├─purrr:::with_indexed_errors(...)
 14. │   │ └─base::withCallingHandlers(...)
 15. │   ├─purrr:::call_with_cleanup(...)
 16. │   └─roistats (local) .f(.x[[i]], ...)
 17. │     ├─stats::t.test(...)
 18. │     └─stats:::t.test.formula(...)
 19. │       └─base::stop("cannot use 'paired' in formula method")
 20. └─base::.handleSimpleError(...)
 21.   └─purrr (local) h(simpleError(msg, call))
 22.     └─cli::cli_abort(...)
 23.       └─rlang::abort(...)
Execution halted
Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(roistats)
  > 
  > test_check("roistats")
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-t_test.R:21:3'): t-test-two-sample output ──────────────────────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(., ttest = map(.data$data, ~t.test(.x[[as_name(enquo(x))]] ~ 
      .x[[as_name(enquo(y))]], paired = paired)), tvalue = map_dbl(.data$ttest, 
      ~extract2(.x, 1)), df = map_dbl(.data$ttest, ~extract2(.x, 
      2)), p = map_dbl(.data$ttest, ~extract2(.x, 3)))`: i In argument: `ttest = map(...)`.
  i In group 1: `roi_id = "AnG"`.
  Caused by error in `map()`:
  i In index: 1.
  Caused by error in `t.test.formula()`:
  ! cannot use 'paired' in formula method
  
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘get_started.Rmd’ using rmarkdown

Quitting from lines 114-117 [unnamed-chunk-10] (get_started.Rmd)
Error: processing vignette 'get_started.Rmd' failed with diagnostics:
ℹ In argument: `ttest = map(...)`.
ℹ In group 1: `roi_id = "AnG"`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
--- failed re-building ‘get_started.Rmd’

SUMMARY: processing the following file failed:
  ‘get_started.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘roistats-Ex.R’ failed
The error most likely occurred in:

> ### Name: t_test_two_sample
> ### Title: Generate two-sample t-test results for multiple sub-groups
> ### Aliases: t_test_two_sample
> 
> ### ** Examples
> 
> t_test_two_sample(color_index_two_sample, x = "color_effect", y = "group", paired = TRUE)
Warning: The `t_test_two_sample()` function expects a grouped data frame (i.e., from `dplyr::group_by()`). Returning statistics for the overall comparison
Error in `mutate()`:
ℹ In argument: `ttest = map(...)`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
Backtrace:
     ▆
  1. ├─roistats::t_test_two_sample(...)
  2. │ └─... %>% select(-.data$ttest, -data)
  3. ├─dplyr::select(., -.data$ttest, -data)
  4. ├─dplyr::mutate(...)
  5. ├─dplyr:::mutate.data.frame(...)
  6. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  7. │   ├─base::withCallingHandlers(...)
  8. │   └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  9. │     └─mask$eval_all_mutate(quo)
 10. │       └─dplyr (local) eval()
 11. ├─purrr::map(...)
 12. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
 13. │   ├─purrr:::with_indexed_errors(...)
 14. │   │ └─base::withCallingHandlers(...)
 15. │   ├─purrr:::call_with_cleanup(...)
 16. │   └─roistats (local) .f(.x[[i]], ...)
 17. │     ├─stats::t.test(...)
 18. │     └─stats:::t.test.formula(...)
 19. │       └─base::stop("cannot use 'paired' in formula method")
 20. └─base::.handleSimpleError(...)
 21.   └─purrr (local) h(simpleError(msg, call))
 22.     └─cli::cli_abort(...)
 23.       └─rlang::abort(...)
Execution halted
Running ‘testthat.R’ [4s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(roistats)
  > 
  > test_check("roistats")
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-t_test.R:21:3'): t-test-two-sample output ──────────────────────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(., ttest = map(.data$data, ~t.test(.x[[as_name(enquo(x))]] ~ 
      .x[[as_name(enquo(y))]], paired = paired)), tvalue = map_dbl(.data$ttest, 
      ~extract2(.x, 1)), df = map_dbl(.data$ttest, ~extract2(.x, 
      2)), p = map_dbl(.data$ttest, ~extract2(.x, 3)))`: i In argument: `ttest = map(...)`.
  i In group 1: `roi_id = "AnG"`.
  Caused by error in `map()`:
  i In index: 1.
  Caused by error in `t.test.formula()`:
  ! cannot use 'paired' in formula method
  
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building ‘get_started.Rmd’ using rmarkdown

Quitting from lines 114-117 [unnamed-chunk-10] (get_started.Rmd)
Error: processing vignette 'get_started.Rmd' failed with diagnostics:
ℹ In argument: `ttest = map(...)`.
ℹ In group 1: `roi_id = "AnG"`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
--- failed re-building ‘get_started.Rmd’

SUMMARY: processing the following file failed:
  ‘get_started.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘roistats-Ex.R’ failed
The error most likely occurred in:

> ### Name: t_test_two_sample
> ### Title: Generate two-sample t-test results for multiple sub-groups
> ### Aliases: t_test_two_sample
> 
> ### ** Examples
> 
> t_test_two_sample(color_index_two_sample, x = "color_effect", y = "group", paired = TRUE)
Warning: The `t_test_two_sample()` function expects a grouped data frame (i.e., from `dplyr::group_by()`). Returning statistics for the overall comparison
Error in `mutate()`:
ℹ In argument: `ttest = map(...)`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
Backtrace:
     ▆
  1. ├─roistats::t_test_two_sample(...)
  2. │ └─... %>% select(-.data$ttest, -data)
  3. ├─dplyr::select(., -.data$ttest, -data)
  4. ├─dplyr::mutate(...)
  5. ├─dplyr:::mutate.data.frame(...)
  6. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  7. │   ├─base::withCallingHandlers(...)
  8. │   └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  9. │     └─mask$eval_all_mutate(quo)
 10. │       └─dplyr (local) eval()
 11. ├─purrr::map(...)
 12. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
 13. │   ├─purrr:::with_indexed_errors(...)
 14. │   │ └─base::withCallingHandlers(...)
 15. │   ├─purrr:::call_with_cleanup(...)
 16. │   └─roistats (local) .f(.x[[i]], ...)
 17. │     ├─stats::t.test(...)
 18. │     └─stats:::t.test.formula(...)
 19. │       └─base::stop("cannot use 'paired' in formula method")
 20. └─base::.handleSimpleError(...)
 21.   └─purrr (local) h(simpleError(msg, call))
 22.     └─cli::cli_abort(...)
 23.       └─rlang::abort(...)
Execution halted
Running ‘testthat.R’ [4s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(roistats)
  > 
  > test_check("roistats")
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-t_test.R:21:3'): t-test-two-sample output ──────────────────────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(., ttest = map(.data$data, ~t.test(.x[[as_name(enquo(x))]] ~ 
      .x[[as_name(enquo(y))]], paired = paired)), tvalue = map_dbl(.data$ttest, 
      ~extract2(.x, 1)), df = map_dbl(.data$ttest, ~extract2(.x, 
      2)), p = map_dbl(.data$ttest, ~extract2(.x, 3)))`: i In argument: `ttest = map(...)`.
  i In group 1: `roi_id = "AnG"`.
  Caused by error in `map()`:
  i In index: 1.
  Caused by error in `t.test.formula()`:
  ! cannot use 'paired' in formula method
  
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building ‘get_started.Rmd’ using rmarkdown

Quitting from lines 114-117 [unnamed-chunk-10] (get_started.Rmd)
Error: processing vignette 'get_started.Rmd' failed with diagnostics:
ℹ In argument: `ttest = map(...)`.
ℹ In group 1: `roi_id = "AnG"`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
--- failed re-building ‘get_started.Rmd’

SUMMARY: processing the following file failed:
  ‘get_started.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in 'roistats-Ex.R' failed
The error most likely occurred in:

> ### Name: t_test_two_sample
> ### Title: Generate two-sample t-test results for multiple sub-groups
> ### Aliases: t_test_two_sample
> 
> ### ** Examples
> 
> t_test_two_sample(color_index_two_sample, x = "color_effect", y = "group", paired = TRUE)
Warning: The `t_test_two_sample()` function expects a grouped data frame (i.e., from `dplyr::group_by()`). Returning statistics for the overall comparison
Error in `mutate()`:
ℹ In argument: `ttest = map(...)`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
Backtrace:
     ▆
  1. ├─roistats::t_test_two_sample(...)
  2. │ └─... %>% select(-.data$ttest, -data)
  3. ├─dplyr::select(., -.data$ttest, -data)
  4. ├─dplyr::mutate(...)
  5. ├─dplyr:::mutate.data.frame(...)
  6. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  7. │   ├─base::withCallingHandlers(...)
  8. │   └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  9. │     └─mask$eval_all_mutate(quo)
 10. │       └─dplyr (local) eval()
 11. ├─purrr::map(...)
 12. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
 13. │   ├─purrr:::with_indexed_errors(...)
 14. │   │ └─base::withCallingHandlers(...)
 15. │   ├─purrr:::call_with_cleanup(...)
 16. │   └─roistats (local) .f(.x[[i]], ...)
 17. │     ├─stats::t.test(...)
 18. │     └─stats:::t.test.formula(...)
 19. │       └─base::stop("cannot use 'paired' in formula method")
 20. └─base::.handleSimpleError(...)
 21.   └─purrr (local) h(simpleError(msg, call))
 22.     └─cli::cli_abort(...)
 23.       └─rlang::abort(...)
Execution halted
Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(roistats)
  > 
  > test_check("roistats")
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-t_test.R:21:3'): t-test-two-sample output ──────────────────────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(., ttest = map(.data$data, ~t.test(.x[[as_name(enquo(x))]] ~ 
      .x[[as_name(enquo(y))]], paired = paired)), tvalue = map_dbl(.data$ttest, 
      ~extract2(.x, 1)), df = map_dbl(.data$ttest, ~extract2(.x, 
      2)), p = map_dbl(.data$ttest, ~extract2(.x, 3)))`: i In argument: `ttest = map(...)`.
  i In group 1: `roi_id = "AnG"`.
  Caused by error in `map()`:
  i In index: 1.
  Caused by error in `t.test.formula()`:
  ! cannot use 'paired' in formula method
  
  [ FAIL 1 | WARN 7 | SKIP 0 | PASS 11 ]
  Error: Test failures
  Execution halted
Error(s) in re-building vignettes:
--- re-building 'get_started.Rmd' using rmarkdown

Quitting from lines 114-117 [unnamed-chunk-10] (get_started.Rmd)
Error: processing vignette 'get_started.Rmd' failed with diagnostics:
ℹ In argument: `ttest = map(...)`.
ℹ In group 1: `roi_id = "AnG"`.
Caused by error in `map()`:
ℹ In index: 1.
Caused by error in `t.test.formula()`:
! cannot use 'paired' in formula method
--- failed re-building 'get_started.Rmd'

SUMMARY: processing the following file failed:
  'get_started.Rmd'

Error: Vignette re-building failed.
Execution halted