* using log directory 'd:/RCompile/CRANincoming/R-devel/MHQoL.Rcheck' * using R Under development (unstable) (2025-02-23 r87804 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'MHQoL/DESCRIPTION' ... OK * this is package 'MHQoL' version '0.8.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Stijn Peeters ' New submission Possibly misspelled words in DESCRIPTION: MHQoL (7:132) * 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 'MHQoL' 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 ... OK * 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 ... OK * 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 ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking R/sysdata.rda ... OK * checking examples ... ERROR Running examples in 'MHQoL-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: mhqol_states_to_scores > ### Title: Provides the scores of the MHQoL based on the textual input (as > ### described in the manual) > ### Aliases: mhqol_states_to_scores > ### Keywords: MHQoL Scores States > > ### ** Examples > > # Example usage of the mhqol_scores function > # Get the MHQoL scores based on a character vector and do not retain old values > mhqol_states_to_scores( + states = c( + SI = "I think very positively about myself", + IN = "I am very satisfied with my level of independence", + MO = "I do not feel anxious, gloomy, or depressed", + RE = "I am very satisfied with my relationships", + DA = "I am very satisfied with my daily activities", + PH = "I have no physical health problems", + FU = "I am very optimistic about my future" + ), + retain_old_variables = FALSE + ) SI_s IN_s MO_s RE_s DA_s PH_s FU_s 1 3 3 3 3 3 3 3 > > # Get the MHQoL scores based on a DataFrame and retain old values > mhqol_states_to_scores(states = df) Error in convert_to_df(states) : Invalid input type. Please provide a dataframe, character vector or list Calls: mhqol_states_to_scores -> convert_to_df Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... OK Running 'testthat.R' * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE