Running examples in ‘msmtools-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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.104 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