* 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.1.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [11s] WARNING Maintainer: 'Shixuan Li ' Insufficient package version (submitted: 1.1.0, existing: 1.2.2) Possibly misspelled words in DESCRIPTION: LLM (7:135) OpenAI (7:217) 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. * 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' 'MacBehaviour.Rproj' 'R.zip' 'cran-comments.md' * 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 ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [10s] 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_baichuan: no visible global function definition for 'setTxtProgressBar' run_claude: no visible global function definition for 'modifyList' run_claude: no visible global function definition for 'setTxtProgressBar' run_gemini: no visible global function definition for 'modifyList' run_gemini: no visible global function definition for 'setTxtProgressBar' run_llama: no visible global function definition for 'modifyList' run_llama: no visible global function definition for 'setTxtProgressBar' run_openai: no visible global function definition for 'modifyList' run_openai: no visible global function definition for 'setTxtProgressBar' Undefined global functions or variables: aggregate modifyList setTxtProgressBar Consider adding importFrom("stats", "aggregate") importFrom("utils", "modifyList", "setTxtProgressBar") to your NAMESPACE file. * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... NOTE Rd file 'loadData.Rd': \examples lines wider than 100 characters: ExperimentItem=loadData(runList=df$Run,itemIDList=df$Item,conditionList=df$Condition,promptList = paste(df$TargetPrompt1,df$TargetPromp ... [TRUNCATED] Rd file 'setKey.Rd': \examples lines wider than 100 characters: set_key(api_key="YOUR_API_KEY", api_url="https://api.openai.com/v1/chat/completions",model="gpt-3.5-turbo") These lines will be truncated in the PDF manual. * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... WARNING Codoc mismatches from Rd file 'experimentDesign.Rd': experimentDesign Code: function(data, session = 1, randomItem = FALSE, randomEvent = FALSE) Docs: function(data, Step = 1, random = FALSE) Argument names in code not in docs: session randomItem randomEvent Argument names in docs not in code: Step random Mismatches in argument names: Position: 2 Code: session Docs: Step Position: 3 Code: randomItem Docs: random Codoc mismatches from Rd file 'loadData.Rd': loadData Code: function(runList, itemList, conditionList, promptList, header = TRUE, eventList = NULL) Docs: function(runList, itemIDList, conditionList, promptList, header = T) Argument names in code not in docs: itemList eventList Argument names in docs not in code: itemIDList Mismatches in argument names: Position: 2 Code: itemList Docs: itemIDList Mismatches in argument default values: Name: 'header' Code: TRUE Docs: T Codoc mismatches from Rd file 'preCheck.Rd': preCheck Code: function(data, checkToken = FALSE, systemPrompt = "", imgDetail = "auto", version = "2023-06-01", ...) Docs: function(data, checkToken = F, systemPrompt = "", max_tokens = 500, temperature = 1, top_p = 1, n = 1) Argument names in code not in docs: imgDetail version ... Argument names in docs not in code: max_tokens temperature top_p n Mismatches in argument names: Position: 4 Code: imgDetail Docs: max_tokens Position: 5 Code: version Docs: temperature Position: 6 Code: ... Docs: top_p Mismatches in argument default values: Name: 'checkToken' Code: FALSE Docs: F * checking Rd \usage sections ... OK * 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: loadData > ### Title: Step2: Load and format data > ### Aliases: loadData > > ### ** Examples > > { + + df <- data.frame( + Run = c(1, 2, 3, 4, 5, 6, 7, 8, 9), + Item = c(1,1, 1, 1, 1, 1, 1, 1, 2), + Condition = c(1, 2, 3, 4, 5, 6, 7, 8, 2), + TargetPrompt1 = c("The racing driver showed the torn overall...", + "The racing driver showed the helpful mechanic...", + "The report claimed that the racing driver showed the torn overall...", + "The report claimed that the racing driver showed the helpful mechanic...", + "The racing driver showed the torn overall...", + "The racing driver showed the helpful mechanic...", + "The report claimed that the racing driver showed the torn overall...", + "The report claimed that the racing driver showed the helpful mechanic...", + "The cricket player showed the ball..."), + TargetPrompt2 = c("The patient showed...", + "The patient showed...", + "The patient showed...", + "The patient showed...", + "The rumours alleged that the patient showed...", + "The rumours alleged that the patient showed...", + "The rumours alleged that the patient showed...", + "The rumours alleged that the patient showed...", + "The car mechanic showed...") + ) + ExperimentItem=loadData(runList=df$Run,itemIDList=df$Item,conditionList=df$Condition,promptList = paste(df$TargetPrompt1,df$TargetPrompt2,sep="\n")) + print(ExperimentItem) + } Error in loadData(runList = df$Run, itemIDList = df$Item, conditionList = df$Condition, : unused argument (itemIDList = df$Item) Execution halted * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 2 WARNINGs, 3 NOTEs