CRAN Package Check Results for Package contdid

Last updated on 2026-11-27 03:00:05 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.2 8.47 114.21 122.68 OK
r-devel-linux-x86_64-debian-gcc 0.1.3 6.33 68.86 75.19 OK
r-devel-linux-x86_64-fedora-clang 0.1.3 69.22 OK
r-devel-linux-x86_64-fedora-gcc 0.1.3 68.37 OK
r-devel-windows-x86_64 0.1.3 12.00 106.00 118.00 OK
r-patched-linux-x86_64 0.1.2 8.43 73.01 81.44 ERROR
r-release-linux-x86_64 0.1.2 9.03 106.78 115.81 OK
r-release-macos-arm64 0.1.3 3.00 27.00 30.00 OK
r-release-macos-x86_64 0.1.3 7.00 162.00 169.00 OK
r-release-windows-x86_64 0.1.2 12.00 127.00 139.00 OK
r-oldrel-macos-arm64 0.1.3 3.00 36.00 39.00 OK
r-oldrel-macos-x86_64 0.1.3 7.00 89.00 96.00 OK
r-oldrel-windows-x86_64 0.1.2 15.00 173.00 188.00 ERROR

Check Details

Version: 0.1.2
Check: examples
Result: ERROR Running examples in ‘contdid-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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-patched-linux-x86_64

Version: 0.1.2
Check: tests
Result: ERROR Running ‘testthat.R’ [3s/5s] 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 ──────────────────── 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 ────────────── 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 ─── 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-patched-linux-x86_64

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-oldrel-windows-x86_64

Version: 0.1.2
Check: tests
Result: ERROR Running 'testthat.R' [4s] 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 ──────────────────── 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 ────────────── 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 ─── 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-oldrel-windows-x86_64