- using R Under development (unstable) (2026-09-21 r90578)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 23.1.1
flang version 23.1.1
- running under: Fedora Linux 44 (Server Edition)
- using session charset: UTF-8
* current time: 2026-09-21 15:22:40 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘eventstudyr/DESCRIPTION’ ... OK
- this is package ‘eventstudyr’ version ‘1.2.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘eventstudyr’ can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [16s/19s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [14s/15s] ERROR
Running ‘testthat.R’ [14s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(eventstudyr)
>
> test_check("eventstudyr")
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead3. To specify a different proxyIV use the proxyIV argument.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead3. To specify a different proxyIV use the proxyIV argument.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead3. To specify a different proxyIV use the proxyIV argument.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead3. To specify a different proxyIV use the proxyIV argument.
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
post, overidpost, pre, and overidpre are set to 0. A static model will be estimated.
post, overidpost, pre, and overidpre are set to 0. A static model will be estimated.
post, overidpost, pre, and overidpre are set to 0. A static model will be estimated.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead5. To specify a different proxyIV use the proxyIV argument.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead5. To specify a different proxyIV use the proxyIV argument.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead5. To specify a different proxyIV use the proxyIV argument.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead5. To specify a different proxyIV use the proxyIV argument.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead3. To specify a different proxyIV use the proxyIV argument.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead3. To specify a different proxyIV use the proxyIV argument.
Saving _problems/test-EventStudyFHS-113.R
NOTE: 300 observations removed because of NA values (RHS: 300, IV: 0/300).
The instruments 'z_lead3', 'z_fd_lead2', 'z_fd', 'z_fd_lag1', 'z_fd_lag2',
'z_lag3' and 'x_r' have been removed because of collinearity (see $collin.var).
NOTE: 300 observations removed because of NA values (RHS: 300, IV: 0/300).
The instruments 'z_lead3', 'z_fd_lead2', 'z_fd', 'z_fd_lag1', 'z_fd_lag2',
'z_lag3' and 'x_r' have been removed because of collinearity (see $collin.var).
NOTE: 300 observations removed because of NA values (RHS: 300, IV: 0/300).
The instruments 'z_lead3', 'z_fd_lead2', 'z_fd', 'z_fd_lag1', 'z_fd_lag2',
'z_lag3' and 'x_r' have been removed because of collinearity (see $collin.var).
NOTE: 300 observations removed because of NA values (RHS: 300, IV: 0/300).
The instruments 'z_lead3', 'z_fd_lead2', 'z_fd', 'z_fd_lag1', 'z_fd_lag2',
'z_lag3' and 'x_r' have been removed because of collinearity (see $collin.var).
NOTE: 300 observations removed because of NA values (RHS: 300, IV: 0/300).
The instruments 'z_lead3', 'z_fd_lead2', 'z_fd', 'z_fd_lag1', 'z_fd_lag2',
'z_lag3' and 'x_r' have been removed because of collinearity (see $collin.var).
NOTE: 300 observations removed because of NA values (RHS: 300, IV: 0/300).
The instruments 'z_lead3', 'z_fd_lead2', 'z_fd', 'z_fd_lag1', 'z_fd_lag2',
'z_lag3' and 'x_r' have been removed because of collinearity (see $collin.var).
Saving _problems/test-EventStudyOLS-116.R
Saving _problems/test-EventStudyOLS-278.R
NOTE: 300 observations removed because of NA values (RHS: 300).
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead1. To specify a different proxyIV use the proxyIV argument.
Smoothest path note: The lowest order such that a polynomial is in confidence region is 1.
Saving _problems/test-EventStudyPlot-230.R
Smoothest path note: The lowest order such that a polynomial is in confidence region is 4.
Smoothest path note: The lowest order such that a polynomial is in confidence region is 6.
Defaulting to strongest lead of differenced policy variable: proxyIV = z_fd_lead5. To specify a different proxyIV use the proxyIV argument.
[ FAIL 4 | WARN 111 | SKIP 0 | PASS 455 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-EventStudyFHS.R:113:5'): FE = TRUE,
TFE = FALSE,
cluster = TRUE works ──
Expected `all.equal(reg$felevels$V1, as.character(unique(df_EventStudyFHS_example$id)))` to be TRUE.
Differences:
`actual` is a character vector ('target is NULL, current is character')
`expected` is a logical vector (TRUE)
── Failure ('test-EventStudyOLS.R:116:5'): FE = TRUE,
TFE = FALSE,
cluster = TRUE works ──
Expected `all.equal(reg$felevels$V1, as.character(unique(df_test_EventStudyOLS$id)))` to be TRUE.
Differences:
`actual` is a character vector ('target is NULL, current is character')
`expected` is a logical vector (TRUE)
── Failure ('test-EventStudyOLS.R:278:5'): FE = TRUE,
TFE = FALSE,
cluster = FALSE works ──
Expected `all.equal(reg$felevels$V1, as.character(unique(df_test_EventStudyOLS$id)))` to be TRUE.
Differences:
`actual` is a character vector ('target is NULL, current is character')
`expected` is a logical vector (TRUE)
── Failure ('test-EventStudyPlot.R:230:5'): computed smoothest path for examples is within expectations ──
Expected `p$data$smoothest_path` to equal `matrix(rep(0, nrow(p$data)))`.
Differences:
`dim(actual)` is absent
`dim(expected)` is an integer vector (16, 1)
[ FAIL 4 | WARN 111 | SKIP 0 | PASS 455 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... OK
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR