* using log directory 'd:/RCompile/CRANincoming/R-devel/PaLMr.Rcheck' * using R version 4.4.0 Under development (unstable) (2006-00-00 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'PaLMr/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'PaLMr' version '0.1.3' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Li Yuan ' New submission Possibly misspelled words in DESCRIPTION: PaLM (3:56, 7:131, 7:197, 7:492, 7:750) PaLMr (7:14, 7:156, 7:405, 7:435, 7:670) The Description field should not start with the package name, 'This package' or similar. The Description field contains https://developers.generativeai.google/. Please enclose URLs in angle brackets (<...>). * 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 ... NOTE Found the following hidden files and directories: .vs/PaLMr/v17/.wsuo .vs These were most likely included in error. See section 'Package structure' in the 'Writing R Extensions' manual. CRAN-pack does not know about .vs/PaLMr/v17/.wsuo .vs * checking for portable file names ... OK * checking serialization versions ... OK * checking whether package 'PaLMr' 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: 'PaLMr-Test.Rmd' 'PaLMr-Test.pdf' * 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 ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... NOTE Rd file 'getReferencePALM.Rd': \examples lines wider than 100 characters: getReferencePALM(palmParameter, inquery, temperature = 0.7, source.type = "articles", num.source = 3, citation.type = "APA", source.dat ... [TRUNCATED] Rd file 'getTextPALM.Rd': \examples lines wider than 100 characters: getTextPALM(palmParameter, inquery, temperature = 0.7, maxOutputTokens = 100, topP = 0.95, topK = 40) 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 ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... ERROR Running examples in 'PaLMr-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: explainCodePALM > ### Title: Explain Code Using the Google PaLM API. > ### Aliases: explainCodePALM > > ### ** Examples > > # Set up the PaLM parameters > palmParameter <- c("your-api-key", "v1beta3", "text-bison-001") > # palmParameter <- setupPALM("your-api-key", "v1beta3", "text-bison-001") works the same > > # Explain code based on a query > inquery <- "for (i in 1:10) { print(i) }" > explainCodePALM(palmParameter, inquery, temperature = 0.7, language = "R") Error in checkParameterFormat(palmParameter[1], palmParameter[2], palmParameter[3]) : The API key format is not valid. It should be a 'character' class in R and it should have a length of 39. Calls: explainCodePALM -> checkParameterFormat Execution halted * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 4 NOTEs