* using log directory ‘/srv/hornik/tmp/CRAN/pcutils.Rcheck’ * using R Under development (unstable) (2024-01-07 r85787) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 17.0.6 (3) Debian flang-new version 17.0.6 (3) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘pcutils/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘pcutils’ version ‘0.2.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/4s] NOTE Maintainer: ‘Peng Chen ’ Uses the superseded packages: ‘doSNOW’, ‘snow’ * 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 ‘pcutils’ can be installed ... [4s/4s] OK * checking package directory ... OK * checking for future file timestamps ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * 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 ... [0s/0s] 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 whether startup messages can be suppressed ... [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 ... [7s/7s] NOTE Olympic_rings: no visible binding for global variable ‘radius’ Olympic_rings: no visible binding for global variable ‘x’ Olympic_rings: no visible binding for global variable ‘y’ Olympic_rings: no visible binding for global variable ‘color’ Olympic_rings: no visible binding for global variable ‘start’ Olympic_rings: no visible binding for global variable ‘end’ areaplot: no visible binding for global variable ‘variable2’ chunlian: no visible binding for global variable ‘x’ chunlian: no visible binding for global variable ‘y’ chunlian: no visible binding for global variable ‘label’ df2link: no visible global function definition for ‘na.omit’ download2: no visible global function definition for ‘download.file’ ggheatmap: no visible global function definition for ‘hclust’ ggheatmap: no visible global function definition for ‘dist’ give_you_a_rose: no visible global function definition for ‘colorRampPalette’ group_test: no visible global function definition for ‘%dopar%’ lm_coefficients: no visible global function definition for ‘model.frame’ lm_coefficients: no visible global function definition for ‘lm’ lm_coefficients: no visible global function definition for ‘as.formula’ lm_coefficients: no visible global function definition for ‘coef’ multireg: no visible global function definition for ‘model.frame’ multireg: no visible global function definition for ‘cor’ multireg: no visible global function definition for ‘lm’ multitest: no visible global function definition for ‘combn’ my_voronoi_treemap: no visible global function definition for ‘setNames’ plot.coefficients: no visible binding for global variable ‘adj_r2’ sample_map: no visible binding for global variable ‘df2_sf’ set_pcutils_config: no visible global function definition for ‘setNames’ tidai: no visible global function definition for ‘setNames’ triangp: no visible binding for global variable ‘tmp’ Undefined global functions or variables: %dopar% adj_r2 as.formula coef color colorRampPalette combn cor df2_sf dist download.file end hclust label lm model.frame na.omit radius setNames start tmp variable2 x y Consider adding importFrom("grDevices", "colorRampPalette") importFrom("stats", "as.formula", "coef", "cor", "dist", "end", "hclust", "lm", "model.frame", "na.omit", "setNames", "start") importFrom("utils", "combn", "download.file") to your NAMESPACE file. * checking Rd files ... [0s/0s] NOTE checkRd: (-1) my_circo.Rd:20: Lost braces; missing escapes or markup? 20 | \item{pal}{a vector of colors, you can get from here too.{RColorBrewer::brewer.pal(5,"Set2")} {ggsci::pal_aaas()(5)}} | ^ checkRd: (-1) my_circo.Rd:20: Lost braces; missing escapes or markup? 20 | \item{pal}{a vector of colors, you can get from here too.{RColorBrewer::brewer.pal(5,"Set2")} {ggsci::pal_aaas()(5)}} | ^ * 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 ... 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 data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [14s/15s] ERROR Running examples in ‘pcutils-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: translator > ### Title: translator > ### Aliases: translator > > ### ** Examples > > translator(c("love", "if"), mode = "e2z") Please set the baidu_appid and baidu_key using set_pcutils_config: first, get the appid and key from baidu: https://zhuanlan.zhihu.com/p/375789804 , then, set_pcutils_config('baidu_appid',your_appid), and set_pcutils_config('baidu_key',your_key). Error in vapply(x, .baidu_translate, from = from, to = to, FUN.VALUE = character(1)) : values must be length 1, but FUN(X[[1]]) result is length 0 Calls: translator ... lapply -> FUN -> -> baidu_translate -> vapply Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... [1s/1s] OK * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 3 NOTEs