* using log directory 'd:/RCompile/CRANincoming/R-devel/MacBehaviour.Rcheck' * using R Under development (unstable) (2024-06-27 r86847 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 'MacBehaviour/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'MacBehaviour' version '1.2.3' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [11s] NOTE Maintainer: 'Shixuan Li ' Possibly misspelled words in DESCRIPTION: LLM (7:157) LLMs (7:240) The Title field should be in title case. Current version is: 'Behavioural studies of large language models' In title case that is: 'Behavioural Studies of Large Language Models' The Description field should not start with the package name, 'This package' or similar. Size of tarball: 12011651 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 ... OK * checking whether package 'MacBehaviour' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... NOTE Non-standard files/directories found at top level: 'DRAFT.md' 'Materials' * 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 ... 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 ... NOTE Package in Depends field not imported from: 'dplyr' These packages need to be imported from (in the NAMESPACE file) for when this namespace is loaded but not attached. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE baichuan_chat: no visible global function definition for 'modifyList' claude_chat: no visible global function definition for 'modifyList' experimentDesign: no visible global function definition for 'aggregate' llama_chat: no visible global function definition for 'modifyList' openai_chat: no visible global function definition for 'modifyList' openai_completion: no visible global function definition for 'modifyList' run_baichuan: no visible global function definition for 'modifyList' run_claude: no visible global function definition for 'modifyList' run_gemini: no visible global function definition for 'modifyList' run_llama: no visible global function definition for 'modifyList' run_openai: no visible global function definition for 'modifyList' Undefined global functions or variables: aggregate modifyList Consider adding importFrom("stats", "aggregate") importFrom("utils", "modifyList") 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 ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... WARNING Documented arguments not in \usage in Rd file 'preCheck.Rd': 'max_tokens' 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 ... ERROR Running examples in 'MacBehaviour-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: preCheck > ### Title: Step4: Pre-check for token usage in experiment design. > ### Aliases: preCheck > > ### ** Examples > > > df <- data.frame( + Run = c(1,2), + Item = c(1,2), + Event =c(1,1), + Condition = c(1,2), + TargetPrompt = c("1","2") + ) > > ExperimentItem=loadData(df$Run,df$Item,df$Event,df$Condition,promptList = df$TargetPrompt) > > Design=experimentDesign(ExperimentItem,Step=1) Error in experimentDesign(ExperimentItem, Step = 1) : unused argument (Step = 1) Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 WARNING, 4 NOTEs