* using log directory 'd:/Rcompile/CRANpkg/local/4.3/msmtools.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * 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 'msmtools/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'msmtools' version '2.0.1' * package encoding: UTF-8 * 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 'msmtools' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [3s] OK * checking whether the package can be unloaded cleanly ... [3s] OK * checking whether the namespace can be loaded with stated dependencies ... [3s] OK * checking whether the namespace can be unloaded cleanly ... [3s] OK * checking loading without being on the library search path ... [3s] OK * checking startup messages can be suppressed ... [3s] 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 ... [9s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [4s] ERROR Running examples in 'msmtools-Ex.R' failed The error most likely occurred in: > ### Name: polish > ### Title: Remove observations with different states occurring at the same > ### time > ### Aliases: polish > > ### ** Examples > > > # loading data > data( hosp ) > > # augmenting longitudinal data > hosp_aug = augment( data = hosp, data_key = subj, n_events = adm_number, + pattern = label_3, t_start = dateIN, t_end = dateOUT, + t_cens = dateCENS ) Warning in augment(data = hosp, data_key = subj, n_events = adm_number, : no t_death has been passed. Assuming that dateCENS contains both censoring and death times ------------------------------------- # # # # setting everything up # # # # ------------------------------------- checking monotonicity of adm_number Ok, adm_number is monotonic --- checking label_3 and defining patterns Ok, detected 3 values --- augmenting data Ok, data have been augmented --- defining dimesions Ok, dimensions computed --- adding status flag status flag has been added successfully --- adding numeric status flag numeric status has been added successfully --- adding sequential status flag sequential status flag has been added successfully --- adding variable augmented as new time variable variables "augmented" and "augmented_int" successfully added and repositioned --- --------------------------- augment() took: 0.04 sec. --------------------------- > > # cleaning any targeted occurrence > hosp_aug_clean = polish( data = hosp_aug, data_key = subj, pattern = label_3 ) ------------------------------------- # # # # setting everything up # # # # ------------------------------------- checking label_3 and defining patterns Ok, detected 3 values --- Error in polish(data = hosp_aug, data_key = subj, pattern = label_3) : argument "time" is missing, with no default Calls: polish -> duplicated -> duplicated.data.table -> eval Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [5s] OK Running 'testthat.R' [4s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [5s] ERROR Error(s) in re-building vignettes: --- re-building 'msmtools.Rmd' using rmarkdown_notangle Quitting from lines 300-318 [multistate_model] (msmtools.Rmd) Error: processing vignette 'msmtools.Rmd' failed with diagnostics: object 'augmented_int' not found --- failed re-building 'msmtools.Rmd' SUMMARY: processing the following file failed: 'msmtools.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 2 ERRORs