* using log directory ‘/srv/hornik/tmp/CRAN_pretest/SurveyStat.Rcheck’ * using R Under development (unstable) (2026-01-10 r89298) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 21.1.8 (1) Debian flang version 21.1.8 (1) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘SurveyStat/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘SurveyStat’ version ‘1.0.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [2s/2s] NOTE Maintainer: ‘Muhammad Ali ’ New submission Found the following (possibly) invalid file URI: URI: LICENSE From: README.md * 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 ‘SurveyStat’ can be installed ... [1s/1s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... NOTE Non-standard files/directories found at top level: ‘VALIDATION_REPORT.md’ ‘build_package.R’ ‘cran_check.R’ ‘simple_validation.ps1’ ‘test_package.R’ ‘validate_cran.R’ ‘validate_package.ps1’ * 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 clean_missing: no visible global function definition for ‘median’ cross_tabulation: no visible global function definition for ‘complete.cases’ cross_tabulation: no visible global function definition for ‘chisq.test’ describe_survey : : no visible global function definition for ‘sd’ describe_survey : : no visible global function definition for ‘median’ plot_boxplot: no visible global function definition for ‘complete.cases’ plot_boxplot: no visible global function definition for ‘ggplot’ plot_boxplot: no visible global function definition for ‘aes_string’ plot_boxplot: no visible global function definition for ‘geom_boxplot’ plot_boxplot: no visible global function definition for ‘labs’ plot_boxplot: no visible global function definition for ‘theme_minimal’ plot_boxplot: no visible global function definition for ‘theme’ plot_boxplot: no visible global function definition for ‘element_text’ plot_boxplot: no visible global function definition for ‘element_line’ plot_boxplot: no visible global function definition for ‘element_blank’ plot_boxplot: no visible global function definition for ‘geom_jitter’ plot_boxplot: no visible global function definition for ‘scale_x_discrete’ plot_histogram: no visible global function definition for ‘ggplot’ plot_histogram: no visible global function definition for ‘aes_string’ plot_histogram: no visible global function definition for ‘geom_histogram’ plot_histogram: no visible global function definition for ‘aes’ plot_histogram: no visible global function definition for ‘after_stat’ plot_histogram: no visible binding for global variable ‘density’ plot_histogram: no visible global function definition for ‘labs’ plot_histogram: no visible global function definition for ‘theme_minimal’ plot_histogram: no visible global function definition for ‘theme’ plot_histogram: no visible global function definition for ‘element_text’ plot_histogram: no visible global function definition for ‘element_line’ plot_histogram: no visible global function definition for ‘element_blank’ plot_histogram: no visible global function definition for ‘geom_density’ plot_weighted_bar: no visible global function definition for ‘%>%’ plot_weighted_bar: no visible global function definition for ‘group_by’ plot_weighted_bar: no visible binding for global variable ‘.data’ plot_weighted_bar: no visible global function definition for ‘summarise’ plot_weighted_bar: no visible global function definition for ‘mutate’ plot_weighted_bar: no visible binding for global variable ‘Frequency’ plot_weighted_bar: no visible global function definition for ‘n’ plot_weighted_bar: no visible global function definition for ‘ggplot’ plot_weighted_bar: no visible global function definition for ‘aes_string’ plot_weighted_bar: no visible global function definition for ‘geom_bar’ plot_weighted_bar: no visible global function definition for ‘labs’ plot_weighted_bar: no visible global function definition for ‘theme_minimal’ plot_weighted_bar: no visible global function definition for ‘theme’ plot_weighted_bar: no visible global function definition for ‘element_text’ plot_weighted_bar: no visible global function definition for ‘element_blank’ plot_weighted_bar: no visible global function definition for ‘element_line’ plot_weighted_bar: no visible global function definition for ‘geom_text’ plot_weighted_bar: no visible global function definition for ‘aes’ plot_weighted_bar: no visible binding for global variable ‘Percentage’ plot_weighted_bar: no visible global function definition for ‘ylim’ weighted_mean: no visible global function definition for ‘complete.cases’ weighted_total: no visible global function definition for ‘complete.cases’ Undefined global functions or variables: %>% .data Frequency Percentage aes aes_string after_stat chisq.test complete.cases density element_blank element_line element_text geom_bar geom_boxplot geom_density geom_histogram geom_jitter geom_text ggplot group_by labs median mutate n scale_x_discrete sd summarise theme theme_minimal ylim Consider adding importFrom("stats", "chisq.test", "complete.cases", "density", "median", "sd") to your NAMESPACE file. * checking Rd files ... [0s/0s] OK * checking Rd metadata ... OK * checking Rd line widths ... NOTE Rd file 'rake_weights.Rd': \examples lines wider than 100 characters: data <- data.frame(gender = c("Male", "Female"), education = c("HighSchool", "Bachelor"), weight = c(1, 1)) These lines will be truncated in the PDF manual. * checking Rd cross-references ... OK * checking for missing documentation entries ... WARNING Undocumented code objects: ‘example_survey’ Undocumented data sets: ‘example_survey’ 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [0s/0s] ERROR Running examples in ‘SurveyStat-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: describe_survey > ### Title: Generate comprehensive survey description > ### Aliases: describe_survey > > ### ** Examples > > data <- data.frame(age = c(25, 30, 35), gender = c("M", "F", "M")) > desc <- describe_survey(data) > desc_weighted <- describe_survey(data, "weight") Error in describe_survey(data, "weight") : Weight column 'weight' not found in data Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [1s/1s] OK * 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, 1 WARNING, 4 NOTEs