* using log directory ‘/srv/hornik/tmp/CRAN_pretest/causalreg.Rcheck’ * using R Under development (unstable) (2025-03-10 r87916) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (1+b1) Debian flang-new version 19.1.7 (1+b1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘causalreg/DESCRIPTION’ ... OK * this is package ‘causalreg’ version ‘0.1.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [2s/2s] NOTE Maintainer: ‘Veronica Vinciotti’ New submission Non-FOSS package license (GPL3) No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: c(person(given = "Veronica", family = "Vinciotti", role = c("aut", "cre"), email = "veronica.vinciotti@unitn.it"), person(given = c("Ernst", "C."), family = "Wit", role = "aut", email = "ernst.jan.camiel.wit@usi.ch")) as necessary. The Title field should be in title case. Current version is: ‘Causal generalized linear models’ In title case that is: ‘Causal Generalized Linear Models’ The Description field should not start with the package name, 'This package' or similar. * 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 ‘causalreg’ can be installed ... [1s/1s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... WARNING Non-standard license specification: GPL3 Standardizable: FALSE * 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 ... [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 ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [2s/2s] NOTE boot_pval: no visible global function definition for ‘glm’ boot_pval: no visible global function definition for ‘gam’ boot_pval: no visible global function definition for ‘residuals’ cgam_all: no visible global function definition for ‘terms.formula’ cgam_all: no visible global function definition for ‘glm’ cgam_all: no visible global function definition for ‘gam’ cgam_all: no visible global function definition for ‘combn’ cgam_all: no visible global function definition for ‘as.formula’ cgam_all: no visible global function definition for ‘residuals’ cgam_all: no visible global function definition for ‘pchisq’ cgam_all: no visible global function definition for ‘BIC’ cgam_step: no visible global function definition for ‘terms.formula’ cgam_step: no visible global function definition for ‘glm’ cgam_step: no visible global function definition for ‘gam’ cgam_step: no visible global function definition for ‘as.formula’ cgam_step: no visible global function definition for ‘update.formula’ cgam_step: no visible global function definition for ‘residuals’ cgam_step: no visible global function definition for ‘pchisq’ cgam_step: no visible global function definition for ‘reformulate’ cgam_step: no visible global function definition for ‘BIC’ cglm_all: no visible global function definition for ‘glm’ cglm_all: no visible global function definition for ‘terms.formula’ cglm_all: no visible global function definition for ‘combn’ cglm_all: no visible global function definition for ‘as.formula’ cglm_all: no visible global function definition for ‘BIC’ cglm_all: no visible global function definition for ‘residuals’ cglm_all: no visible global function definition for ‘coef’ cglm_all: no visible global function definition for ‘pchisq’ cglm_step: no visible global function definition for ‘glm’ cglm_step: no visible global function definition for ‘terms.formula’ cglm_step: no visible global function definition for ‘as.formula’ cglm_step: no visible global function definition for ‘update.formula’ cglm_step: no visible global function definition for ‘coef’ cglm_step: no visible global function definition for ‘residuals’ cglm_step: no visible global function definition for ‘pchisq’ cglm_step: no visible global function definition for ‘reformulate’ cglm_step: no visible global function definition for ‘BIC’ Undefined global functions or variables: BIC as.formula coef combn gam glm pchisq reformulate residuals terms.formula update.formula Consider adding importFrom("stats", "BIC", "as.formula", "coef", "glm", "pchisq", "reformulate", "residuals", "terms.formula", "update.formula") importFrom("utils", "combn") 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 ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... WARNING Undocumented arguments in Rd file 'cgam.Rd' ‘alpha’ ‘seed’ ‘...’ Undocumented arguments in Rd file 'cglm.Rd' ‘alpha’ ‘B’ ‘seed’ ‘...’ Functions with \usage entries need to have the appropriate \alias entries, and all their arguments documented. The \usage entries must correspond to syntactically valid R code. See chapter ‘Writing R documentation files’ in the ‘Writing R Extensions’ manual. * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [0s/0s] ERROR Running examples in ‘causalreg-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: cgam > ### Title: Causal generalized additive model > ### Aliases: cgam > > ### ** Examples > > ############################## > #causal Poisson gam########## > n<-1000 > set.seed(123) > X1<-rnorm(n,0,1) > Y<-rpois(n,exp(sin(X1))) > X2<-log(Y+1)+rnorm(n,0,0.5) > data<-data.frame(cbind(X1, X2, Y)) > cm_all<-cgam(Y ~ s(X1)+s(X2),"poisson",data,pval.approx=TRUE,search="all") Error in gam(formula = formula, family = family, data = data, ...) : could not find function "gam" Calls: cgam -> cgam_all 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, 2 WARNINGs, 2 NOTEs