- using R version 4.4.2 (2024-10-31 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 'summclust/DESCRIPTION' ... OK
- this is package 'summclust' version '0.7.2'
- 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'summclust' 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 ... [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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [7s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [56s] ERROR
Running 'testthat.R' [56s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(summclust)
>
> test_check("summclust")
Loading required namespace: fabricatr
summclust.fixest(obj = feols_fit, cluster = ~group_id1, params = c("treatment",
"log_income"))
Number of observations: 95 97 99 104 98 93 116 102 100 96
Number of clusters: 7
coef tstat se p_val conf_int_l
treatment 0.014634446 1.5882634 0.009214118 0.1466894 -0.006209337
log_income -0.001417457 -0.4237128 0.003345325 0.6817219 -0.008985108
conf_int_u
treatment 0.035478230
log_income 0.006150194
N_G leverage partial-leverage-treatment
Min. 93.00000000 0.1414602 0.09313171
1st Qu. 96.25000000 0.1655626 0.09505736
Median 98.50000000 0.1969216 0.09877701
Mean 100.00000000 0.2000000 0.10000000
3rd Qu. 101.50000000 0.2151630 0.10266611
Max. 116.00000000 0.3296761 0.11516014
coefvar 0.06497863 0.2705771 0.06531733
partial-leverage-log_income beta-treatment beta-log_income
Min. 0.04745902 0.009432553 -4.418022e-03
1st Qu. 0.06474135 0.012721659 -1.545444e-03
Median 0.08748224 0.014827927 -1.478700e-03
Mean 0.10000000 0.014603939 -1.467387e-03
3rd Qu. 0.11591556 0.016141665 -9.697266e-04
Max. 0.22874955 0.020724656 4.721959e-05
coefvar 0.52899992 0.221676594 8.002307e-01
summclust.fixest(obj = feols_fit, cluster = ~group_id1, params = c("treatment",
"log_income"))
Number of observations: 95 97 99 104 98 93 116 102 100 96
Number of clusters: 7
coef tstat se p_val conf_int_l
treatment 0.014634446 1.5882634 0.009214118 0.1466894 -0.006209337
log_income -0.001417457 -0.4237128 0.003345325 0.6817219 -0.008985108
conf_int_u
treatment 0.035478230
log_income 0.006150194
N_G leverage partial-leverage-treatment
Min. 93.00000000 0.1414602 0.09313171
1st Qu. 96.25000000 0.1655626 0.09505736
Median 98.50000000 0.1969216 0.09877701
Mean 100.00000000 0.2000000 0.10000000
3rd Qu. 101.50000000 0.2151630 0.10266611
Max. 116.00000000 0.3296761 0.11516014
coefvar 0.06497863 0.2705771 0.06531733
partial-leverage-log_income beta-treatment beta-log_income
Min. 0.04745902 0.009432553 -4.418022e-03
1st Qu. 0.06474135 0.012721659 -1.545444e-03
Median 0.08748224 0.014827927 -1.478700e-03
Mean 0.10000000 0.014603939 -1.467387e-03
3rd Qu. 0.11591556 0.016141665 -9.697266e-04
Max. 0.22874955 0.020724656 4.721959e-05
coefvar 0.52899992 0.221676594 8.002307e-01
Loading required namespace: ggplot2
Loading required namespace: latex2exp
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
downloading the 'nlswork' dataset.
downloading the 'nlswork' dataset.
NOTE: 1 observation removed because of NA values (vcov: 1).
NOTE: 1 observation removed because of NA values (vcov: 1).
NOTE: 1 observation removed because of NA values (RHS: 1).
[ FAIL 1 | WARN 1 | SKIP 6 | PASS 86 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• On CRAN (2): 'test-r-vs-stata-2.R:11:3', 'test-r-vs-stata.R:11:3'
• packageVersion("sandwich") != "3.1.0" is TRUE (4):
'test-sandwich-vcovJK.R:7:3', 'test-sandwich-vcovJK.R:188:3',
'test-sandwich-vcovJK.R:368:3', 'test-sandwich-vcovJK.R:561:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-r-vs-stata.R:173:5'): test against stata - leverage, fixef absorb ──
Error in `open.connection(con, "rb")`: cannot open the connection
Backtrace:
▆
1. └─haven::read_dta(url) at test-r-vs-stata.R:173:5
2. └─readr::datasource(file)
3. └─readr:::datasource_connection(...)
4. └─readr:::read_connection(path)
5. ├─base::open(con, "rb")
6. └─base::open.connection(con, "rb")
[ FAIL 1 | WARN 1 | SKIP 6 | PASS 86 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [62s] ERROR
Error(s) in re-building vignettes:
--- re-building 'summclust.Rmd' using rmarkdown
Quitting from lines 30-63 [example] (summclust.Rmd)
Error: processing vignette 'summclust.Rmd' failed with diagnostics:
cannot open the connection
--- failed re-building 'summclust.Rmd'
SUMMARY: processing the following file failed:
'summclust.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 2 ERRORs