Last updated on 2025-12-28 01:48:55 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.0.0 | 3.06 | 152.46 | 155.52 | OK | |
| r-devel-linux-x86_64-debian-gcc | 1.0.0 | 1.89 | 143.82 | 145.71 | OK | |
| r-devel-linux-x86_64-fedora-clang | 1.0.0 | 5.00 | 191.83 | 196.83 | NOTE | |
| r-devel-linux-x86_64-fedora-gcc | 1.0.0 | 5.00 | 214.88 | 219.88 | NOTE | |
| r-devel-windows-x86_64 | 1.0.0 | 4.00 | 48.00 | 52.00 | ERROR | |
| r-patched-linux-x86_64 | 1.0.0 | 2.97 | 148.37 | 151.34 | OK | |
| r-release-linux-x86_64 | 1.0.0 | 2.75 | 168.65 | 171.40 | OK | |
| r-release-macos-arm64 | 1.0.0 | OK | ||||
| r-release-macos-x86_64 | 1.0.0 | 2.00 | 55.00 | 57.00 | OK | |
| r-release-windows-x86_64 | 1.0.0 | 4.00 | 77.00 | 81.00 | OK | |
| r-oldrel-macos-arm64 | 1.0.0 | OK | ||||
| r-oldrel-macos-x86_64 | 1.0.0 | 2.00 | 71.00 | 73.00 | OK | |
| r-oldrel-windows-x86_64 | 1.0.0 | 5.00 | 90.00 | 95.00 | OK |
Version: 1.0.0
Check: dependencies in R code
Result: NOTE
Namespaces in Imports field not imported from:
‘base’ ‘utils’
All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 1.0.0
Check: examples
Result: ERROR
Running examples in 'synthReturn-Ex.R' failed
The error most likely occurred in:
> ### Name: synthReturn
> ### Title: Compute synthetic returns
> ### Aliases: synthReturn
>
> ### ** Examples
>
>
> # Load data in that comes in the synthReturn package
> data(ret_two_evdates)
>
> # -----------------------------------------------
> # Example with Permutation Inference
> # -----------------------------------------------
>
> set.seed(123) # set random seed
>
> # Run synthReturn
> res.placebo <- synthReturn(
+ data = ret_two_evdates,
+ unitname = "unit",
+ treatname = "treat",
+ dname = "date",
+ rname = "ret",
+ edname = "eventdate",
+ estwind = c(-100,-1),
+ eventwind = c(0,5),
+ estobs_min = 1,
+ eventobs_min = 1,
+ inference = "permutation",
+ correction = FALSE,
+ ncontrol_min = 10,
+ ndraws = 10,
+ ncores = 1
+ )
Error in `[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), :
attempt access index 3/3 in VECTOR_ELT
Calls: synthReturn ... pre_process_synthReturn -> lapply -> FUN -> [ -> [.data.table
Execution halted
Flavor: r-devel-windows-x86_64
Version: 1.0.0
Check: tests
Result: ERROR
Running 'testthat.R' [3s]
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(synthReturn)
>
> test_check("synthReturn")
Saving _problems/test-ar_comp-18.R
Saving _problems/test-data-81.R
Saving _problems/test-event_panel-17.R
Saving _problems/test-event_panel-44.R
Saving _problems/test-get_sets-16.R
Saving _problems/test-get_sets-41.R
Saving _problems/test-phi_comp-19.R
Saving _problems/test-phi_comp-45.R
Saving _problems/test-pre_process_synthReturn-extended-35.R
Saving _problems/test-pre_process_synthReturn-extended-55.R
Saving _problems/test-print-16.R
Saving _problems/test-print-42.R
Saving _problems/test-synthReturn-comprehensive-20.R
Saving _problems/test-synthReturn-comprehensive-60.R
Saving _problems/test-synthReturn-comprehensive-92.R
Saving _problems/test-synthReturn-comprehensive-118.R
Saving _problems/test-synthReturn-comprehensive-192.R
Saving _problems/test-synthReturn-16.R
[ FAIL 18 | WARN 0 | SKIP 0 | PASS 38 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ar_comp.R:7:3'): ar_comp exists as internal function ───────────
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-ar_comp.R:7:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Failure ('test-data.R:65:3'): datasets work with synthReturn function ───────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
attempt access index 3/3 in VECTOR_ELT
── Error ('test-event_panel.R:6:3'): event_panel functionality tested through synthReturn ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-event_panel.R:6:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-event_panel.R:31:3'): event_panel handles different data scenarios ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-event_panel.R:31:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-get_sets.R:5:3'): get_treat_set and get_control_set work through synthReturn ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-get_sets.R:5:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-get_sets.R:28:3'): data processing handles missing observations ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-get_sets.R:28:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-phi_comp.R:8:3'): phi_comp functionality tested through synthReturn ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-phi_comp.R:8:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-phi_comp.R:33:3'): phi_comp works with permutation inference ───
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-phi_comp.R:33:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Failure ('test-pre_process_synthReturn-extended.R:22:3'): pre_process_synthReturn functionality tested through synthReturn ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
attempt access index 3/3 in VECTOR_ELT
── Error ('test-pre_process_synthReturn-extended.R:42:3'): synthReturn handles different missing data requirements ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-pre_process_synthReturn-extended.R:42:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-print.R:5:3'): print.synthReturn displays output correctly ─────
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-print.R:5:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-print.R:30:3'): print.synthReturn handles inference results ────
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-print.R:30:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-synthReturn-comprehensive.R:6:3'): synthReturn works with basic input parameters ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-synthReturn-comprehensive.R:6:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-synthReturn-comprehensive.R:46:3'): synthReturn works with placebo inference ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-synthReturn-comprehensive.R:46:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-synthReturn-comprehensive.R:78:3'): synthReturn works with numeric dates ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-synthReturn-comprehensive.R:78:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-synthReturn-comprehensive.R:104:3'): synthReturn handles missing observations correctly ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-synthReturn-comprehensive.R:104:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-synthReturn-comprehensive.R:178:3'): synthReturn argument preservation works ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-synthReturn-comprehensive.R:178:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
── Error ('test-synthReturn.R:5:3'): synthReturn works for 2 event dates, no missing values ──
Error in ``[.data.table`(out, , `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id")`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─synthReturn::synthReturn(...) at test-synthReturn.R:5:3
2. └─synthReturn:::pre_process_synthReturn(...)
3. └─base::lapply(...)
4. └─synthReturn (local) FUN(X[[i]], ...)
5. ├─out[, `:=`(tau, (1:.N) - which(d == eventdate)), by = "unit_id"]
6. └─data.table:::`[.data.table`(...)
[ FAIL 18 | WARN 0 | SKIP 0 | PASS 38 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-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.