Last updated on 2026-06-08 17:49:53 CEST.
| Package | ERROR | WARN | OK |
|---|---|---|---|
| cat2cat | 1 | 12 | |
| miceFast | 13 | ||
| pacs | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.6.1
Check: examples
Result: ERROR
Running examples in ‘cat2cat-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: summary_c2c
> ### Title: Adjusted summary for regressions on replicated datasets
> ### Aliases: summary_c2c
>
> ### ** Examples
>
> data("occup_small", package = "cat2cat")
> data("trans", package = "cat2cat")
>
> occup_old <- occup_small[occup_small$year == 2008, ]
> occup_new <- occup_small[occup_small$year == 2010, ]
>
> occup_2 <- cat2cat(
+ data = list(
+ old = occup_old,
+ new = occup_new,
+ cat_var = "code",
+ time_var = "year"
+ ),
+ mappings = list(trans = trans, direction = "backward"),
+ ml = list(
+ data = occup_new,
+ cat_var = "code",
+ method = "knn",
+ features = c("age", "sex", "edu", "exp", "parttime", "salary"),
+ args = list(k = 10)
+ )
+ )
Error in delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", :
Please install caret package to use the knn model in the cat2cat function.
Calls: cat2cat -> cat2cat_ml -> validate_ml -> delayed_package_load
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6.1
Check: tests
Result: ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [73s/92s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library("testthat")
> library("cat2cat")
>
> test_check("cat2cat")
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Saving _problems/test-cat2cat-65.R
Saving _problems/test-cat2cat-112.R
Saving _problems/test-cat2cat-136.R
Saving _problems/test-lms-42.R
Saving _problems/test-multi_cat2cat-25.R
Saving _problems/test-softwarex_paper-107.R
[ FAIL 7 | WARN 0 | SKIP 3 | PASS 174 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• {caret} is not installed (1): 'test-panel_idvar.R:390:3'
• {caret} is not installed. (2): 'test-cat2cat_ml.R:9:1',
'test-cat2cat_ml_run.R:9:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-cat2cat.R:61:3'): Simple backward cat2cat with 2 periods and ml ──
Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
Backtrace:
▆
1. └─cat2cat::cat2cat(...) at test-cat2cat.R:61:3
2. └─cat2cat:::cat2cat_ml(...)
3. └─cat2cat:::validate_ml(ml)
4. └─cat2cat:::delayed_package_load(...)
── Error ('test-cat2cat.R:105:5'): Simple backward cat2cat with 2 periods and ml, not all mappings ──
Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test-cat2cat.R:105:5
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─cat2cat::cat2cat(...)
8. └─cat2cat:::cat2cat_ml(...)
9. └─cat2cat:::validate_ml(ml)
10. └─cat2cat:::delayed_package_load(...)
── Error ('test-cat2cat.R:117:1'): (code run outside of `test_that()`) ─────────
Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
Backtrace:
▆
1. └─cat2cat::cat2cat(...) at test-cat2cat.R:117:1
2. └─cat2cat:::cat2cat_ml(...)
3. └─cat2cat:::validate_ml(ml)
4. └─cat2cat:::delayed_package_load(...)
── Error ('test-cat2cat_validate.R:67:3'): validate_ml correct ─────────────────
Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
Backtrace:
▆
1. ├─testthat::expect_silent(validate_ml(ml)) at test-cat2cat_validate.R:67:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .capture(...)
4. │ │ ├─withr::with_output_sink(...)
5. │ │ │ └─base::force(code)
6. │ │ ├─base::withCallingHandlers(...)
7. │ │ └─base::withVisible(code)
8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
9. └─cat2cat:::validate_ml(ml)
10. └─cat2cat:::delayed_package_load(...)
── Error ('test-lms.R:38:5'): summary_c2c is properly adjust the std error - cat2cat case ──
Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
Backtrace:
▆
1. └─cat2cat::cat2cat(...) at test-lms.R:38:5
2. └─cat2cat:::cat2cat_ml(...)
3. └─cat2cat:::validate_ml(ml)
4. └─cat2cat:::delayed_package_load(...)
── Error ('test-multi_cat2cat.R:19:1'): (code run outside of `test_that()`) ────
Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
Backtrace:
▆
1. └─cat2cat::cat2cat(...) at test-multi_cat2cat.R:19:1
2. └─cat2cat:::cat2cat_ml(...)
3. └─cat2cat:::validate_ml(ml)
4. └─cat2cat:::delayed_package_load(...)
── Error ('test-softwarex_paper.R:98:1'): (code run outside of `test_that()`) ──
Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
Backtrace:
▆
1. └─cat2cat::cat2cat(...) at test-softwarex_paper.R:98:1
2. └─cat2cat:::cat2cat_ml(...)
3. └─cat2cat:::validate_ml(ml)
4. └─cat2cat:::delayed_package_load(...)
[ FAIL 7 | WARN 0 | SKIP 3 | PASS 174 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6.1
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘cat2cat.Rmd’ using rmarkdown
--- finished re-building ‘cat2cat.Rmd’
--- re-building ‘cat2cat_advanced.Rmd’ using rmarkdown
--- finished re-building ‘cat2cat_advanced.Rmd’
--- re-building ‘cat2cat_validation.Rmd’ using rmarkdown
Quitting from cat2cat_validation.Rmd:82-98 [mixed-ml-weights]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `delayed_package_load()`:
! Please install caret package to use the knn model in the cat2cat function.
---
Backtrace:
▆
1. └─cat2cat::cat2cat(...)
2. └─cat2cat:::cat2cat_ml(...)
3. └─cat2cat:::validate_ml(ml)
4. └─cat2cat:::delayed_package_load(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'cat2cat_validation.Rmd' failed with diagnostics:
Please install caret package to use the knn model in the cat2cat function.
--- failed re-building ‘cat2cat_validation.Rmd’
SUMMARY: processing the following file failed:
‘cat2cat_validation.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: OK: 13
Current CRAN status: WARN: 1, OK: 12
Version: 0.6.0
Check: code files for non-ASCII characters
Result: WARN
Found the following file with non-ASCII characters:
Fatal error: cannot create 'R_TempDir'
Portable packages must use only ASCII characters in their R code and
NAMESPACE directives, except perhaps in comments.
Use \uxxxx escapes for other characters.
Function ‘tools::showNonASCIIfile’ can help in finding non-ASCII
characters in files.
Flavor: r-devel-linux-x86_64-debian-gcc