* using log directory 'd:/RCompile/CRANincoming/R-devel/FLEXOR.Rcheck' * using R Under development (unstable) (2024-10-30 r87277 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'FLEXOR/DESCRIPTION' ... OK * this is package 'FLEXOR' version '1.0.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... ERROR Maintainer: 'Subharup Guha ' New submission Conflicting package names (submitted: FLEXOR, existing: flexOR [https://CRAN.R-project.org]) Conflicting package names (submitted: FLEXOR, existing: flexOR [CRAN archive]) License components with restrictions and base license permitting such: MIT + file LICENSE Possibly misspelled words in DESCRIPTION: FLEXOR (10:28) Guha (12:86) * 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 'FLEXOR' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... WARNING Invalid license file pointers: LICENSE * checking top-level files ... NOTE Non-standard file/directory found at top level: 'building_installing_packages.R' * 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 ... WARNING summary: function(object, ...) summary.balancing_weights: function(object) summary: function(object, ...) summary.causal_estimates: function(object) plot: function(x, ...) plot.causal_estimates: function(object, y_limit, color) See section 'Generic functions and methods' in the 'Writing R Extensions' manual. * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE Stage1: warning in fn.FLEXOR(start_theta = naturalGroupProp, start_gamma_s = gammaStart.mt[cc, ], data, parm): partial argument match of 'start_theta' to 'start_theta_z' balancing.weights: no visible global function definition for '%<-%' balancing.weights: no visible binding for global variable 'return.parm' balancing.weights: no visible binding for global variable 'percentESS' balancing.weights: no visible global function definition for 'suppress_conditions' bootStrap: no visible global function definition for '%<-%' bootStrap: no visible binding for global variable 'moments_b.ar' bootStrap: no visible binding for global variable 'moreFeatures_b.v' causal.estimate: no visible global function definition for '%<-%' causal.estimate: no visible binding for global variable 'moments.ar' causal.estimate: no visible binding for global variable 'otherFeatures.v' causal.estimate: no visible binding for global variable 'collatedMoments.ar' causal.estimate: no visible binding for global variable 'collatedOtherFeatures.mt' causal.estimate: no visible binding for global variable 'collatedESS' fn.RF_ZFirst: no visible global function definition for 'randomForest' fn.RF_ZFirst: no visible global function definition for 'confusionMatrix' fn.SVD: no visible global function definition for 'cor' fn.Weights: no visible global function definition for '%<-%' fn.Weights: no visible binding for global variable 'return.parm' fn.Weights: no visible binding for global variable 'percentESS' fn.loop: no visible global function definition for 'head' fn.loop: no visible global function definition for 'optim' fn.rdirichlet: no visible global function definition for 'rgamma' plot.causal_estimates: no visible binding for global variable 'B' plot.causal_estimates: no visible global function definition for 'ggplot' plot.causal_estimates: no visible global function definition for 'aes' plot.causal_estimates: no visible binding for global variable 'method' plot.causal_estimates: no visible binding for global variable 'ESS' plot.causal_estimates: no visible global function definition for 'geom_boxplot' plot.causal_estimates: no visible global function definition for 'ylab' plot.causal_estimates: no visible global function definition for 'theme' plot.causal_estimates: no visible global function definition for 'element_text' plot.causal_estimates: no visible global function definition for 'fct_inorder' plot.causal_estimates: no visible global function definition for 'xlab' plot.causal_estimates: no visible global function definition for 'ggtitle' plot.causal_estimates: no visible global function definition for 'ylim' plot.causal_estimates: no visible global function definition for 'graphics.off' summary.balancing_weights: no visible binding for global variable 'output1' summary.causal_estimates : : no visible global function definition for 'quantile' write_sigma_ratio: no visible binding for global variable 'B' write_sigma_ratio: no visible global function definition for 'quantile' Undefined global functions or variables: %<-% B ESS aes collatedESS collatedMoments.ar collatedOtherFeatures.mt confusionMatrix cor element_text fct_inorder geom_boxplot ggplot ggtitle graphics.off head method moments.ar moments_b.ar moreFeatures_b.v optim otherFeatures.v output1 percentESS quantile randomForest return.parm rgamma suppress_conditions theme xlab ylab ylim Consider adding importFrom("grDevices", "graphics.off") importFrom("stats", "cor", "optim", "quantile", "rgamma") importFrom("utils", "head") to your NAMESPACE file. * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... WARNING Undocumented code objects: 'S' 'X' 'Y' 'Z' 'groupNames' 'naturalGroupProp' Undocumented data sets: 'S' 'X' 'Y' 'Z' 'groupNames' 'naturalGroupProp' 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 ... 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 examples ... ERROR Running examples in 'FLEXOR-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: balancing.weights > ### Title: Compute balancing weights using FLEXOR or other methods > ### Aliases: balancing.weights > > ### ** Examples > > data(demo) > balancing.weights(S, Z, X, method = "FLEXOR", naturalGroupProp, seed = NULL) Warning in file(filename, "r", encoding = encoding) : cannot open file 'R/preamble.R': No such file or directory Error in file(filename, "r", encoding = encoding) : cannot open the connection Calls: balancing.weights -> source -> file Execution halted * checking PDF version of manual ... [24s] OK * checking HTML version of manual ... OK * DONE Status: 2 ERRORs, 3 WARNINGs, 2 NOTEs