- using R version 4.4.3 (2025-02-28 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.3.0
GNU Fortran (GCC) 13.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'rollmatch/DESCRIPTION' ... OK
- this is package 'rollmatch' version '2.0.4'
- 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'rollmatch' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package 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 ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] 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 ... [4s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... 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 ... [1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [3s] ERROR
Running examples in 'rollmatch-Ex.R' failed
The error most likely occurred in:
> ### Name: rollmatch
> ### Title: Rolling entry matching
> ### Aliases: rollmatch
>
> ### ** Examples
>
> data(package="rollmatch", "rem_synthdata_small")
> reduced_data <- reduce_data(data = rem_synthdata_small, treat = "treat",
+ tm = "quarter", entry = "entry_q",
+ id = "indiv_id", lookback = 1)
> fm <- as.formula(treat ~ qtr_pmt + yr_pmt + age)
> vars <- all.vars(fm)
> scored_data <- score_data(reduced_data = reduced_data,
+ model_type = "logistic", match_on = "logit",
+ fm = fm, treat = "treat",
+ tm = "quarter", entry = "entry_q", id = "indiv_id")
> output <- rollmatch(scored_data, data=rem_synthdata_small, treat = "treat",
+ tm = "quarter", entry = "entry_q", id = "indiv_id",
+ vars = vars, lookback = 1, alpha = .2,
+ standard_deviation = "average", num_matches = 3,
+ replacement = TRUE)
Error:
! `group_by_()` was deprecated in dplyr 0.7.0 and is now defunct.
ℹ Please use `group_by()` instead.
ℹ See vignette('programming') for more help
Backtrace:
▆
1. ├─rollmatch::rollmatch(...)
2. │ └─rollmatch:::add_balance_table(...)
3. │ └─scored_data[, vars] %>% dplyr::group_by_(treat)
4. └─dplyr::group_by_(., treat)
5. └─dplyr:::lazy_defunct("group_by")
6. └─lifecycle::deprecate_stop(...)
7. └─lifecycle:::deprecate_stop0(msg)
8. └─rlang::cnd_signal(...)
Execution halted
- checking PDF version of manual ... [17s] OK
- checking HTML version of manual ... [3s] OK
- DONE
Status: 1 ERROR