* using log directory ‘/srv/hornik/tmp/CRAN_pretest/FLEXOR.Rcheck’ * using R Under development (unstable) (2024-10-31 r87278) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.1 (1) Debian flang-new version 19.1.1 (1) * running under: Debian GNU/Linux trixie/sid * 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 ... [3s/3s] ERROR Maintainer: ‘Subharup Guha ’ New submission Conflicting package names (submitted: FLEXOR, existing: flexOR [file:///data/Repositories/CRAN]) 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 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 ‘FLEXOR’ can be installed ... [1s/1s] 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 ... [0s/0s] OK * checking whether the package can be loaded with stated dependencies ... [0s/0s] OK * checking whether the package can be unloaded cleanly ... [0s/0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK * checking whether the namespace can be unloaded cleanly ... [0s/0s] OK * checking loading without being on the library search path ... [0s/0s] 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 ... [3s/3s] 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 ... [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: ‘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 ... [0s/0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [0s/0s] 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 ... [3s/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: 2 ERRORs, 3 WARNINGs, 2 NOTEs