Error(s) in re-building vignettes:
--- re-building 'demo.Rmd' using rmarkdown
---------------------------------------------------------------------------
- Longitudinal clustering using: longitudinal k-means (KML)
---------------------------------------------------------------------------
Method arguments:
 time:           getOption("latrend.time")
 id:             getOption("latrend.id")
 nClusters:      2
 nbRedrawing:    1
 maxIt:          200
 imputationMethod:"copyMean"
 distanceName:   "euclidean"
 power:          2
 distance:       function() {}
 centerMethod:   meanNA
 startingCond:   "nearlyAll"
 nbCriterion:    1000
 scale:          TRUE
 response:       "Y"
---------------------------------------------------------------------------
Checking and transforming the training data format.
Preparing the training data for fitting...
Fitting the method...
Done fitting the method (0.18 secs)
---------------------------------------------------------------------------
--- finished re-building 'demo.Rmd'

--- re-building 'implement.Rmd' using rmarkdown
---------------------------------------------------------------------------
- Longitudinal clustering using: stratify
---------------------------------------------------------------------------
Method arguments:
 center:         meanNA
 nClusters:      NaN
 clusterNames:   NULL
 time:           getOption("latrend.time")
 id:             getOption("latrend.id")
 name:           "stratify"
 response:       "Y"
 stratify:       Y[1] > 1.6
---------------------------------------------------------------------------
Checking and transforming the training data format.
Preparing the training data for fitting...
Fitting the method...
Done fitting the method (0.02 secs)
---------------------------------------------------------------------------
---------------------------------------------------------------------------
- Longitudinal clustering using: stratify
---------------------------------------------------------------------------
Method arguments:
 center:         mean
 nClusters:      NaN
 clusterNames:   NULL
 time:           getOption("latrend.time")
 id:             getOption("latrend.id")
 name:           "stratify"
 response:       "Y"
 stratify:       stratfun
---------------------------------------------------------------------------
Checking and transforming the training data format.
Preparing the training data for fitting...
Fitting the method...
Done fitting the method (0.1 secs)
---------------------------------------------------------------------------

Quitting from implement.Rmd:115-124 [unnamed-chunk-10]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 8/8 in VECTOR_ELT
---
Backtrace:
    ▆
 1. ├─casedata[, `:=`(Intercept, coef(lm(Y ~ Time, .SD))[1]), by = Traj]
 2. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'implement.Rmd' failed with diagnostics:
attempt access index 8/8 in VECTOR_ELT
--- failed re-building 'implement.Rmd'

--- re-building 'simulation.Rmd' using rmarkdown
--- finished re-building 'simulation.Rmd'

SUMMARY: processing the following file failed:
  'implement.Rmd'

Error: Vignette re-building failed.
Execution halted