Last updated on 2026-11-24 03:53:12 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.1.2 | 8.01 | 130.29 | 138.30 | OK | |
| r-devel-linux-x86_64-debian-gcc | 0.1.2 | 6.74 | 80.47 | 87.21 | OK | |
| r-devel-linux-x86_64-fedora-clang | 0.1.2 | 8.00 | 79.01 | 87.01 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 0.1.2 | 54.40 | ERROR | |||
| r-devel-windows-x86_64 | 0.1.2 | 11.00 | 125.00 | 136.00 | OK | |
| r-patched-linux-x86_64 | 0.1.2 | 7.68 | 114.06 | 121.74 | OK | |
| r-release-linux-x86_64 | 0.1.2 | 9.03 | 106.78 | 115.81 | OK | |
| r-release-macos-arm64 | 0.1.2 | 2.00 | 33.00 | 35.00 | OK | |
| r-release-macos-x86_64 | 0.1.2 | 5.00 | 158.00 | 163.00 | OK | |
| r-release-windows-x86_64 | 0.1.2 | 12.00 | 122.00 | 134.00 | OK | |
| r-oldrel-macos-arm64 | 0.1.2 | 3.00 | 42.00 | 45.00 | OK | |
| r-oldrel-macos-x86_64 | 0.1.2 | 5.00 | 154.00 | 159.00 | OK | |
| r-oldrel-windows-x86_64 | 0.1.2 | 15.00 | 173.00 | 188.00 | OK |
Version: 0.1.2
Check: examples
Result: ERROR
Running examples in ‘contdid-Ex.R’ failed
The error most likely occurred in:
> ### Name: cont_did
> ### Title: Difference-in-differences with a Continuous Treatment
> ### Aliases: cont_did
>
> ### ** Examples
>
> # build small simulated data
> set.seed(1234)
> df <- simulate_contdid_data(
+ n = 1000,
+ num_time_periods = 4,
+ num_groups = 4,
+ dose_linear_effect = 0,
+ dose_quadratic_effect = 0
+ )
>
> # estimate effects of continuous treatment
> cd_res <- cont_did(
+ yname = "Y",
+ tname = "time_period",
+ idname = "id",
+ dname = "D",
+ data = df,
+ gname = "G",
+ target_parameter = "slope",
+ aggregation = "dose",
+ treatment_type = "continuous",
+ control_group = "notyettreated",
+ biters = 50,
+ cband = TRUE,
+ num_knots = 1,
+ degree = 3,
+ )
Error in eval(e, x, parent.frame()) : object 'period' not found
Calls: cont_did ... eval -> subset -> subset.data.frame -> eval -> eval
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.2
Check: tests
Result: ERROR
Running ‘testthat.R’
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/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(contdid)
>
> test_check("contdid")
Saving _problems/test-cont_did-37.R
Saving _problems/test-cont_did-162.R
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-cont_did.R:20:3'): test basic functionality ────────────────────
<objectNotFoundError/error/condition>
Error in `eval(e, x, parent.frame())`: object 'period' not found
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-cont_did.R:20:3
2. │ └─base::withCallingHandlers(...)
3. └─contdid::cont_did(...)
4. └─ptetools::pte(...)
5. └─ptetools::compute.pte(...)
6. └─contdid (local) subset_fun(data, g, tp, ...)
7. ├─base::with(...)
8. └─base::with.default(...)
9. └─base::eval(substitute(expr), data, enclos = parent.frame())
10. └─base::eval(substitute(expr), data, enclos = parent.frame())
11. ├─base::subset(this.data, period == tp | period == base.period)
12. └─base::subset.data.frame(this.data, period == tp | period == base.period)
13. └─base::eval(e, x, parent.frame())
14. └─base::eval(e, x, parent.frame())
── Error ('test-cont_did.R:112:5'): changing variable names is ok ──────────────
<objectNotFoundError/error/condition>
Error in `eval(e, x, parent.frame())`: object 'G' not found
Backtrace:
▆
1. ├─testthat::expect_silent(...) at test-cont_did.R:111: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. ├─base::suppressWarnings(...) at test-cont_did.R:112:5
10. │ └─base::withCallingHandlers(...)
11. └─contdid::cont_did(...)
12. └─ptetools::pte(...)
13. └─ptetools::compute.pte(...)
14. └─contdid (local) subset_fun(data, g, tp, ...)
15. ├─base::with(data, subset(data, G == g | G > tp | G == 0))
16. └─base::with.default(...)
17. └─base::eval(substitute(expr), data, enclos = parent.frame())
18. └─base::eval(substitute(expr), data, enclos = parent.frame())
19. ├─base::subset(data, G == g | G > tp | G == 0)
20. └─base::subset.data.frame(data, G == g | G > tp | G == 0)
21. └─base::eval(e, x, parent.frame())
22. └─base::eval(e, x, parent.frame())
── Error ('test-cont_did.R:145:3'): level event study recovers a nonzero ATT ───
<objectNotFoundError/error/condition>
Error in `eval(e, x, parent.frame())`: object 'period' not found
Backtrace:
▆
1. ├─base::suppressWarnings(...) at test-cont_did.R:145:3
2. │ └─base::withCallingHandlers(...)
3. └─contdid::cont_did(...)
4. └─ptetools::pte(...)
5. └─ptetools::compute.pte(...)
6. └─contdid (local) subset_fun(data, g, tp, ...)
7. ├─base::with(...)
8. └─base::with.default(...)
9. └─base::eval(substitute(expr), data, enclos = parent.frame())
10. └─base::eval(substitute(expr), data, enclos = parent.frame())
11. ├─base::subset(this.data, period == tp | period == base.period)
12. └─base::subset.data.frame(this.data, period == tp | period == base.period)
13. └─base::eval(e, x, parent.frame())
14. └─base::eval(e, x, parent.frame())
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc