* using log directory ‘/srv/hornik/tmp/CRAN/TwoWayFEWeights.Rcheck’ * using R Under development (unstable) (2023-11-29 r85646) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 17.0.5 (1) Debian flang-new version 17.0.5 (1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘TwoWayFEWeights/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘TwoWayFEWeights’ version ‘2.0.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [2s/3s] NOTE Maintainer: ‘ERC REALLYCREDIBLE RA Team ’ New submission Package was archived on CRAN Possibly misspelled words in DESCRIPTION: Chaisemartin (16:16) Clément (16:5) D'Haultfœuille (16:37) de (16:13) CRAN repository db overrides: X-CRAN-Comment: Archived on 2023-05-17 as issues were not corrected in time. Does not use Suggested package 'wooldridge' conditionally. * 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 serialization versions ... OK * checking whether package ‘TwoWayFEWeights’ can be installed ... [345s/344s] WARNING Found the following significant warnings: parse.c:38:32: warning: format string is not a string literal (potentially insecure) [-Wformat-security] push_parser.c:71:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] handle.c:115:20: warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat] utils.c:42:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] utils.c:78:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] utils.c:87:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] r_emit.c:957:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] r_parse.c:1343:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] assign.c:470:83: warning: format specifies type 'int' but the argument has type 'R_xlen_t' (aka 'long') [-Wformat] assign.c:518:22: warning: format string is not a string literal (potentially insecure) [-Wformat-security] assign.c:650:35: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] assign.c:794:96: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] forder.c:107:30: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:121:19: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:255:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:270:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:272:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:283:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:284:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:304:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:322:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:340:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:404:3: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:426:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:428:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:430:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:443:5: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:445:5: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:447:5: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:453:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:455:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:459:5: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:462:5: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:465:5: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:467:5: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:495:5: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:511:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:553:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:599:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:706:8: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:720:47: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:725:57: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:1045:36: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:1154:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:1261:38: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:1265:57: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:1270:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:1302:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:1315:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:1332:7: warning: format string is not a string literal (potentially insecure) [-Wformat-security] forder.c:1366:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fread.c:1888:54: warning: format specifies type 'int' but the argument has type 'int64_t' (aka 'long') [-Wformat] fsort.c:168:102: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fsort.c:245:49: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fsort.c:249:54: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fwrite.c:626:28: warning: format specifies type 'int' but the argument has type 'const void *' [-Wformat] fwrite.c:711:68: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fwrite.c:731:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] fwrite.c:746:64: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fwrite.c:814:10: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fwrite.c:825:10: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] fwrite.c:915:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] gsumm.c:90:38: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] gsumm.c:90:48: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] gsumm.c:90:56: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] gsumm.c:90:67: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] gsumm.c:609:90: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] gsumm.c:612:93: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] gsumm.c:638:92: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] gsumm.c:1411:72: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ijoin.c:323:89: warning: data argument not used by format string [-Wformat-extra-args] init.c:153:139: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:168:71: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:169:77: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:171:83: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:172:106: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:173:105: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:173:119: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:174:81: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:175:79: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:176:87: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:177:77: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:178:79: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:179:79: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:180:81: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] init.c:184:95: warning: format specifies type 'int' but the argument has type 'R_xlen_t' (aka 'long') [-Wformat] rbindlist.c:212:37: warning: format string is not a string literal (potentially insecure) [-Wformat-security] rbindlist.c:233:50: warning: format string is not a string literal (potentially insecure) [-Wformat-security] rbindlist.c:234:48: warning: format string is not a string literal (potentially insecure) [-Wformat-security] rbindlist.c:494:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] reorder.c:17:115: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] reorder.c:27:136: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] snprintf.c:217:136: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] subset.c:270:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] compile.c:103:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] compile.c:132:11: warning: format string is not a string literal (potentially insecure) [-Wformat-security] read_file.c:29:43: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] read_file_raw.c:29:43: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] read_lines.c:67:43: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] create-time.c:147:61: warning: data argument not used by format string [-Wformat-extra-args] Warning: replacing previous import ‘dplyr::lag’ by ‘stats::lag’ when loading ‘TwoWayFEWeights’ Warning: replacing previous import ‘dplyr::filter’ by ‘stats::filter’ when loading ‘TwoWayFEWeights’ Warning: replacing previous import ‘dplyr::add_rownames’ by ‘huxtable::add_rownames’ when loading ‘TwoWayFEWeights’ See ‘/srv/hornik/tmp/CRAN/TwoWayFEWeights.Rcheck/00install.out’ for details. * used C++ compiler: ‘Debian clang version 17.0.5 (1)’ * used C compiler: ‘Debian clang version 17.0.5 (1)’ * checking C++ specification ... NOTE Specified C++11: please drop specification unless essential * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... NOTE Authors@R field gives more than one person with maintainer role: Diego Ciccia [aut, cre] Mélitine Malezieux [aut, cre] Felix Knau [aut, cre] Doulo Sow [aut, cre] Shuo Zhang [aut, cre] Author field differs from that derived from Authors@R Author: ‘Diego Ciccia [aut, cre], Felix Knau [aut, cre], Mélitine Malezieux [aut, cre], Doulo Sow [aut, cre], Shuo Zhang [aut, cre], Clément de Chaisemartin [aut]’ Authors@R: ‘Diego Ciccia [aut, cre], Mélitine Malezieux [aut, cre], Felix Knau [aut, cre], Doulo Sow [aut, cre], Shuo Zhang [aut, cre], Clément de Chaisemartin [aut]’ Maintainer field differs from that derived from Authors@R Maintainer: ‘ERC REALLYCREDIBLE RA Team ’ Authors@R: ‘’ * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/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 ... [8s/8s] NOTE ds_libraries: no visible global function definition for ‘install.packages’ twowayfeweights: no visible global function definition for ‘write.csv’ twowayfeweights_calculate_fetr: no visible binding for global variable ‘G’ twowayfeweights_result: no visible binding for global variable ‘indicator’ twowayfeweights_result: no visible binding for global variable ‘indicator_l’ twowayfeweights_test_random_weights: no visible binding for global variable ‘nat_weight’ twowayfeweights_test_random_weights: no visible binding for global variable ‘G’ Undefined global functions or variables: G indicator indicator_l install.packages nat_weight write.csv Consider adding importFrom("utils", "install.packages", "write.csv") to your NAMESPACE file. * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... WARNING Undocumented code objects: ‘ds_libraries’ ‘fn_ctrl_rename’ ‘fn_random_weight_rename’ ‘fn_treatment_rename’ ‘fn_treatment_weight_rename’ ‘get_controls_rename’ ‘get_random_weight_rename’ ‘get_treatments_rename’ ‘packages’ ‘printf’ ‘twowayfeweights_calculate_fds’ ‘twowayfeweights_calculate_fdtr’ ‘twowayfeweights_calculate_fes’ ‘twowayfeweights_calculate_fetr’ ‘twowayfeweights_calculate_fetr_other_treatment’ ‘twowayfeweights_filter’ ‘twowayfeweights_normalize_var’ ‘twowayfeweights_print_result_other_treatment’ ‘twowayfeweights_print_results’ ‘twowayfeweights_rename_var’ ‘twowayfeweights_result’ ‘twowayfeweights_result_other_treatment’ ‘twowayfeweights_summarize_weights’ ‘twowayfeweights_test_random_weights’ ‘twowayfeweights_transform’ All user-level objects in a package should have documentation entries. See chapter ‘Writing R documentation files’ in the ‘Writing R Extensions’ manual. * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... WARNING 'library' or 'require' call not declared from: ‘haven’ * checking examples ... [1s/1s] ERROR Running examples in ‘TwoWayFEWeights-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: twowayfeweights > ### Title: Estimation of the weights attached to the two-way fixed effects > ### regressions. > ### Aliases: twowayfeweights > > ### ** Examples > > # The following example is based on data from F. Vella and M. Verbeek (1998), > # "Whose Wages Do Unions Raise? A Dynamic Model of Unionism and Wage Rate > # Determination for Young Men". > # Results and further details about the estimation below can be found in > # Section V.C of de Chaisemartin & D'Haultfoeuille (2020a). > # Run the following line to download the dataset in your local working > # directory and load it to your R environment: > > #install.packages("haven") > library(haven) Error in library(haven) : there is no package called ‘haven’ Execution halted * checking PDF version of manual ... [2s/2s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 3 WARNINGs, 4 NOTEs