Last updated on 2025-11-19 11:53:24 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.1.1 | 2.21 | 42.02 | 44.23 | ERROR | |
| r-devel-linux-x86_64-debian-gcc | 0.1.1 | 1.94 | 29.85 | 31.79 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.1.1 | 67.16 | ERROR | |||
| r-devel-linux-x86_64-fedora-gcc | 0.1.1 | 14.00 | 51.42 | 65.42 | ERROR | |
| r-devel-windows-x86_64 | 0.1.1 | 5.00 | 55.00 | 60.00 | ERROR | |
| r-patched-linux-x86_64 | 0.1.1 | 2.52 | 37.96 | 40.48 | ERROR | |
| r-release-linux-x86_64 | 0.1.1 | 2.10 | 38.13 | 40.23 | ERROR | |
| r-release-macos-arm64 | 0.1.1 | 1.00 | 24.00 | 25.00 | OK | |
| r-release-macos-x86_64 | 0.1.1 | 2.00 | 41.00 | 43.00 | OK | |
| r-release-windows-x86_64 | 0.1.1 | 4.00 | 54.00 | 58.00 | ERROR | |
| r-oldrel-macos-arm64 | 0.1.1 | 1.00 | 21.00 | 22.00 | OK | |
| r-oldrel-macos-x86_64 | 0.1.1 | 3.00 | 53.00 | 56.00 | OK | |
| r-oldrel-windows-x86_64 | 0.1.1 | 5.00 | 65.00 | 70.00 | ERROR |
Version: 0.1.1
Check: examples
Result: ERROR
Running examples in ‘salty-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: salt_replace
> ### Title: Replace certain patterns into some values in a vector
> ### Aliases: salt_replace
>
> ### ** Examples
>
>
> x <- c("Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
+ "Nunc finibus tortor a elit eleifend interdum.",
+ "Maecenas aliquam augue sit amet ultricies placerat.")
>
> salt_replace(x, replacement_shaker$capitalization, p = 0.5, rep_p = 0.2)
Error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (47), not length 1.
Backtrace:
▆
1. └─salty::salt_replace(...)
2. └─purrr::map2_chr(...)
3. └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
4. ├─purrr:::with_indexed_errors(...)
5. │ └─base::withCallingHandlers(...)
6. ├─purrr:::call_with_cleanup(...)
7. └─salty (local) .f(.x[[i]], .y[[i]], ...)
8. └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
9. └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
10. └─stringr:::str_transform_all(string, pattern, replacement)
11. └─cli::cli_abort(...)
12. └─rlang::abort(...)
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [18s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(salty)
>
> test_check("salty")
Saving _problems/test-replace-6.R
Saving _problems/test-replace-6.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-replace.R:6:7'): replace ocr_errors ────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 2.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-replace.R:6:7'): replace capitalization ────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (14), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace capitalization ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (13), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace decimal_commas ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 2.
ℹ With name: null_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 12.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace ocr ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 9.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(x, replacement_shaker$ocr_errors, p, rep_p)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [11s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(salty)
>
> test_check("salty")
Saving _problems/test-replace-6.R
Saving _problems/test-replace-6.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-replace.R:6:7'): replace ocr_errors ────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 2.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-replace.R:6:7'): replace capitalization ────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (14), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace capitalization ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (13), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace decimal_commas ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 2.
ℹ With name: null_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 12.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace ocr ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 9.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(x, replacement_shaker$ocr_errors, p, rep_p)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.1
Check: examples
Result: ERROR
Running examples in ‘salty-Ex.R’ failed
The error most likely occurred in:
> ### Name: salt_replace
> ### Title: Replace certain patterns into some values in a vector
> ### Aliases: salt_replace
>
> ### ** Examples
>
>
> x <- c("Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
+ "Nunc finibus tortor a elit eleifend interdum.",
+ "Maecenas aliquam augue sit amet ultricies placerat.")
>
> salt_replace(x, replacement_shaker$capitalization, p = 0.5, rep_p = 0.2)
Error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (47), not length 1.
Backtrace:
▆
1. └─salty::salt_replace(...)
2. └─purrr::map2_chr(...)
3. └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
4. ├─purrr:::with_indexed_errors(...)
5. │ └─base::withCallingHandlers(...)
6. ├─purrr:::call_with_cleanup(...)
7. └─salty (local) .f(.x[[i]], .y[[i]], ...)
8. └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
9. └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
10. └─stringr:::str_transform_all(string, pattern, replacement)
11. └─cli::cli_abort(...)
12. └─rlang::abort(...)
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [29s/38s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(salty)
>
> test_check("salty")
Saving _problems/test-replace-6.R
Saving _problems/test-replace-6.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-replace.R:6:7'): replace ocr_errors ────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 2.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-replace.R:6:7'): replace capitalization ────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (14), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace capitalization ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (13), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace decimal_commas ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 2.
ℹ With name: null_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 12.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace ocr ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 9.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(x, replacement_shaker$ocr_errors, p, rep_p)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [29s/42s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(salty)
>
> test_check("salty")
Saving _problems/test-replace-6.R
Saving _problems/test-replace-6.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-replace.R:6:7'): replace ocr_errors ────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 2.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-replace.R:6:7'): replace capitalization ────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (14), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace capitalization ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (13), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace decimal_commas ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 2.
ℹ With name: null_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 12.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace ocr ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 9.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(x, replacement_shaker$ocr_errors, p, rep_p)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.1
Check: tests
Result: ERROR
Running 'testthat.R' [14s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(salty)
>
> test_check("salty")
Attaching package: 'purrr'
The following object is masked from 'package:testthat':
is_null
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-replace.R:6:7'): replace ocr_errors ────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
salt_replace(x, replacements = selected_shaker, p = 0.5,
rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 2.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-replace.R:6:7'): replace capitalization ────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
salt_replace(x, replacements = selected_shaker, p = 0.5,
rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (14), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace capitalization ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
wrapper(x, p = 0.5, rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (13), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace decimal_commas ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
wrapper(x, p = 0.5, rep_p = 1)
})`: ℹ In index: 2.
ℹ With name: null_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 12.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace ocr ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
wrapper(x, p = 0.5, rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 9.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(x, replacement_shaker$ocr_errors, p, rep_p)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
Error: Test failures
Execution halted
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [17s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(salty)
>
> test_check("salty")
Attaching package: 'purrr'
The following object is masked from 'package:testthat':
is_null
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-replace.R:6:7'): replace ocr_errors ────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
salt_replace(x, replacements = selected_shaker, p = 0.5,
rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 2.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-replace.R:6:7'): replace capitalization ────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
salt_replace(x, replacements = selected_shaker, p = 0.5,
rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (14), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace capitalization ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
wrapper(x, p = 0.5, rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (13), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace decimal_commas ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
wrapper(x, p = 0.5, rep_p = 1)
})`: ℹ In index: 2.
ℹ With name: null_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 12.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace ocr ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
wrapper(x, p = 0.5, rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 9.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(x, replacement_shaker$ocr_errors, p, rep_p)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
Error: Test failures
Execution halted
Flavor: r-patched-linux-x86_64
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [17s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(salty)
>
> test_check("salty")
Saving _problems/test-replace-6.R
Saving _problems/test-replace-6.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
Saving _problems/test-wrappers-38.R
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-replace.R:6:7'): replace ocr_errors ────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 2.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-replace.R:6:7'): replace capitalization ────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { salt_replace(x, replacements = selected_shaker, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (14), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace capitalization ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (13), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace decimal_commas ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 2.
ℹ With name: null_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 12.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace ocr ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) { wrapper(x, p = 0.5, rep_p = 1) })`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 9.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(x, replacement_shaker$ocr_errors, p, rep_p)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.1.1
Check: tests
Result: ERROR
Running 'testthat.R' [20s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(salty)
>
> test_check("salty")
Attaching package: 'purrr'
The following object is masked from 'package:testthat':
is_null
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-replace.R:6:7'): replace ocr_errors ────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
salt_replace(x, replacements = selected_shaker, p = 0.5,
rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 2.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-replace.R:6:7'): replace capitalization ────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
salt_replace(x, replacements = selected_shaker, p = 0.5,
rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (14), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-replace.R:5:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty::salt_replace(...) at test-replace.R:6:7
8. │ └─purrr::map2_chr(...)
9. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
10. │ ├─purrr:::with_indexed_errors(...)
11. │ │ └─base::withCallingHandlers(...)
12. │ ├─purrr:::call_with_cleanup(...)
13. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
14. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
15. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
16. │ └─stringr:::str_transform_all(string, pattern, replacement)
17. │ └─cli::cli_abort(...)
18. │ └─rlang::abort(...)
19. │ └─rlang:::signal_abort(cnd, .file)
20. │ └─base::signalCondition(cnd)
21. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
22. │ └─cli::cli_abort(...)
23. │ └─rlang::abort(...)
24. │ └─rlang:::signal_abort(cnd, .file)
25. │ └─base::signalCondition(cnd)
26. └─purrr (local) `<fn>`(`<prrr_rr_>`)
27. └─cli::cli_abort(...)
28. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace capitalization ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
wrapper(x, p = 0.5, rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 1.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (13), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace decimal_commas ──────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
wrapper(x, p = 0.5, rep_p = 1)
})`: ℹ In index: 2.
ℹ With name: null_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 12.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(...)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
── Error ('test-wrappers.R:38:7'): replace ocr ─────────────────────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(battery, function(x) {
wrapper(x, p = 0.5, rep_p = 1)
})`: ℹ In index: 1.
ℹ With name: fake_names.
Caused by error in `purrr::map2_chr()`:
ℹ In index: 9.
Caused by error in `stringr::str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (2), not length 1.
Backtrace:
▆
1. ├─purrr::map(...) at test-wrappers.R:37:5
2. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
3. │ ├─purrr:::with_indexed_errors(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ ├─purrr:::call_with_cleanup(...)
6. │ └─salty (local) .f(.x[[i]], ...)
7. │ └─salty (local) wrapper(x, p = 0.5, rep_p = 1) at test-wrappers.R:38:7
8. │ └─salty::salt_replace(x, replacement_shaker$ocr_errors, p, rep_p)
9. │ └─purrr::map2_chr(...)
10. │ └─purrr:::map2_("character", .x, .y, .f, ..., .progress = .progress)
11. │ ├─purrr:::with_indexed_errors(...)
12. │ │ └─base::withCallingHandlers(...)
13. │ ├─purrr:::call_with_cleanup(...)
14. │ └─salty (local) .f(.x[[i]], .y[[i]], ...)
15. │ └─salty:::selective_replacement(xc, replacements(i = si), rep_p)
16. │ └─stringr::str_replace_all(x, pattern = patterns, replacement = repfun)
17. │ └─stringr:::str_transform_all(string, pattern, replacement)
18. │ └─cli::cli_abort(...)
19. │ └─rlang::abort(...)
20. │ └─rlang:::signal_abort(cnd, .file)
21. │ └─base::signalCondition(cnd)
22. ├─purrr (local) `<fn>`(`<rlng_rrr>`)
23. │ └─cli::cli_abort(...)
24. │ └─rlang::abort(...)
25. │ └─rlang:::signal_abort(cnd, .file)
26. │ └─base::signalCondition(cnd)
27. └─purrr (local) `<fn>`(`<prrr_rr_>`)
28. └─cli::cli_abort(...)
29. └─rlang::abort(...)
[ FAIL 5 | WARN 0 | SKIP 0 | PASS 755 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.