* using log directory 'd:/RCompile/CRANincoming/R-devel/CADF.Rcheck' * using R Under development (unstable) (2024-10-01 r87205 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 'CADF/DESCRIPTION' ... OK * this is package 'CADF' version '0.1' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Steven Ludwig ' New submission Possibly misspelled words in DESCRIPTION: CADF (3:43) No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: c(person(family = "person)", role = "aut", comment = "\"aut\", \"cre\""), person(given = "Steven", family = "Ludwig", role = "cre", email = "steven.ludwig@u.northwestern.edu")) as necessary. Author field should be Authors@R. Current value is: person("Ludwig", "Steven", email = "steven.ludwig@u.northwestern.edu", role = c("aut", "cre")) Found the following (possibly) invalid URLs: URL: https://1drv.ms/b/s!AsKU-g_cimuplJs-7pC9L92zLG5H-w?e=eKJM3c From: inst/doc/my-vignette.html README.md Status: Error Message: Failure when receiving data from the peer Found the following (possibly) invalid file URI: URI: data_blah.com From: man/data-name.Rd Size of tarball: 5687181 bytes * 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 ... WARNING Found the following files with non-portable file names: R/bass/Bass Model R Code.r copy cadf package.sh data/ROLLUP diagnostic.csv.xz These are not fully portable file names. See section 'Package structure' in the 'Writing R Extensions' manual. * checking whether package 'CADF' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 13.2.0' * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... NOTE 'LinkingTo' for 'R6' 'stats' 'BTYD' are unused as they have no 'include' directory * checking top-level files ... NOTE File LICENSE is not mentioned in the DESCRIPTION file. Non-standard files/directories found at top level: 'CA.json' 'CDNOW_master.csv' 'CDNOW_master.txt' 'CDNOW_master.xlsx' 'Customer.Rd' 'README.html' 'backup.Rmd' 'btyd_3_1_datapreparation.R' 'copy cadf package.sh' 'figure' 'generate_CADF_sample.R' 'output-out.txt' 'output.txt' 'package_management.R' 'retention.cpp' * checking for left-over files ... NOTE The following files look like leftovers: 'CADF/Customer.Rd' Please remove them from your package. * 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 ... WARNING '::' or ':::' import not declared from: 'lubridate' 'library' or 'require' call not declared from: 'markovchain' 'library' or 'require' call to 'markovchain' in package code. Please use :: or requireNamespace() instead. See section 'Suggested packages' in the 'Writing R Extensions' manual. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE CADF_to_annualhalfing_data: no visible binding for global variable 'cadf.data' CADF_to_annualhalfing_data : : no visible global function definition for 'tail' CADF_to_btyd_pareto_nbd : : no visible global function definition for 'tail' CADF_to_migration_model: no visible global function definition for 'markovchainFit' annualhalfingmodel : : no visible global function definition for 'tail' annualhalfingmodel: no visible global function definition for 'optim' ca_SRM_time_varying: no visible global function definition for 'relevel' ca_SRM_time_varying: no visible global function definition for 'glm' create.recency.string: no visible global function definition for 'ave' f_intMonths: no visible global function definition for 'interval' modeling.LL.gamma_spend: no visible binding for global variable 'data' runCompleteFile: no visible binding for global variable 'runProfileforID' Undefined global functions or variables: ave cadf.data data glm interval markovchainFit optim relevel runProfileforID tail Consider adding importFrom("stats", "ave", "glm", "optim", "relevel") importFrom("utils", "data", "tail") 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: 'CADF_to_annualhalfing_data' 'CADF_to_btyd_pareto_nbd' 'CADF_to_logistic_regression' 'ROLLUP diagnostic' 'bass.answeringmachines' 'billionaire' 'cadf.data.sample' 'discretechoice' 'exceldata' 'fp' 'frequency_by_T' 'frequency_from_ps' 'frequency_from_rle' 'gammagamma' 'ltv.transactions' 'modeling.LL.gamma_spend' 'modeling.annualhalfing.likelihood' 'pdf_gamma' 'pdf_gamma2' 'print.glossary' 'segltv' 'split.transaction.file_to_CADF' 'srm_data' 'srm_summaries' 'stocks' 'transactions' 'transactions.merged' Undocumented data sets: 'ROLLUP diagnostic' 'bass.answeringmachines' 'cadf.data.sample' 'discretechoice' 'exceldata' 'fp' 'gammagamma' 'billionaire' 'ltv.transactions' 'segltv' 'srm_data' 'srm_summaries' 'stocks' 'transactions' 'transactions.merged' 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 ... WARNING Undocumented arguments in Rd file 'CADF_to_migration_model.Rd' 'cadf.data' Documented arguments not in \usage in Rd file 'CADF_to_migration_model.Rd': 'cadf_data' Undocumented arguments in Rd file 'CADF_to_nth_purchase.Rd' 'cadf.data' Documented arguments not in \usage in Rd file 'CADF_to_nth_purchase.Rd': 'cadf_data' Undocumented arguments in Rd file 'CADF_to_nth_purchase_allrows.Rd' 'cadf.data' Documented arguments not in \usage in Rd file 'CADF_to_nth_purchase_allrows.Rd': 'cadf_data' Undocumented arguments in Rd file 'annualhalfing_LL.Rd' 'grid' 'dta' Undocumented arguments in Rd file 'annualhalfingmodel.Rd' 'cadf.data' 'starting.values' Undocumented arguments in Rd file 'bigT_expand_via_apply.Rd' 'x' Undocumented arguments in Rd file 'ca_SRM.Rd' 'df_logistic' Undocumented arguments in Rd file 'create.purchase.string.Rd' 'date.column' 'return.mode' Documented arguments not in \usage in Rd file 'create.purchase.string.Rd': 'date.column.' Undocumented arguments in Rd file 'create.recency.string.Rd' 'x' Undocumented arguments in Rd file 'f_CustomerModelingMatrix.Rd' 'T' Undocumented arguments in Rd file 'f_CustomerSurvivalModelingMatrix.Rd' 'T' Undocumented arguments in Rd file 'f_intMonths.Rd' 'a' 'b' Undocumented arguments in Rd file 'id_to_CADF.Rd' 'data' 'today.study.cutoff' Undocumented arguments in Rd file 'psmatrix_to_psstring.Rd' 'psmatrix' Undocumented arguments in Rd file 'psmatrix_to_recency_attimeof_matrix.Rd' 'psmatrix' Undocumented arguments in Rd file 'qc_purchase_string.Rd' 'ps' Undocumented arguments in Rd file 'recency_from_rle.Rd' 'x' Undocumented arguments in Rd file 'simple_migration.Rd' 'n.periods' Undocumented arguments in Rd file 'transitions.Rd' 'buyvar' Documented arguments not in \usage in Rd file 'transitions.Rd': 'byvar' 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 ... NOTE Argument items with no description in Rd file 'CADF_to_nth_purchase.Rd': 'n' Argument items with no description in Rd file 'CADF_to_nth_purchase_allrows.Rd': 'n' * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... WARNING Warning: found non-ASCII string 'So Tom and Princip' in object 'fp' * checking LazyData ... WARNING LazyData DB of 11.8 MB without LazyDataCompression set See ยง1.1.6 of 'Writing R Extensions' * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'CADF-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: CADF_to_migration_model > ### Title: CADF_to_migration_model converts CADF data to migration model > ### data > ### Aliases: CADF_to_migration_model > > ### ** Examples > > load("data/cadf.sample.data.rda") Warning in readChar(con, 5L, useBytes = TRUE) : cannot open compressed file 'data/cadf.sample.data.rda', probable reason 'No such file or directory' Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection Calls: load -> readChar Execution halted * checking for unstated dependencies in vignettes ... NOTE 'library' or 'require' call not declared from: 'survival' * checking package vignettes ... OK * checking re-building of vignette outputs ... ERROR Error(s) in re-building vignettes: --- re-building 'my-vignette.Rmd' using rmarkdown Quitting from lines 21-23 [setup] (my-vignette.Rmd) Error: processing vignette 'my-vignette.Rmd' failed with diagnostics: there is no package called 'survival' --- failed re-building 'my-vignette.Rmd' SUMMARY: processing the following file failed: 'my-vignette.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [29s] OK * checking HTML version of manual ... OK * DONE Status: 2 ERRORs, 6 WARNINGs, 7 NOTEs