Error(s) in re-building vignettes:
--- re-building ‘clustered.Rmd’ using rmarkdown

Quitting from clustered.Rmd:52-67 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 4/4 in VECTOR_ELT
---
Backtrace:
    ▆
 1. └─simstudy::trtAssign(dtSchool, n = 2)
 2.   ├─dt[, `:=`(.n, .N), keyby = .stratum]
 3.   └─data.table:::`[.data.table`(dt, , `:=`(.n, .N), keyby = .stratum)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'clustered.Rmd' failed with diagnostics:
attempt access index 4/4 in VECTOR_ELT
--- failed re-building ‘clustered.Rmd’

--- re-building ‘corelationmat.Rmd’ using rmarkdown

Quitting from corelationmat.Rmd:70-75 [unnamed-chunk-4]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 5/5 in VECTOR_ELT
---
Backtrace:
    ▆
 1. └─simstudy::genCorGen(...)
 2.   ├─dtM[, `:=`(param1, params1[seq]), keyby = seqid]
 3.   └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'corelationmat.Rmd' failed with diagnostics:
attempt access index 5/5 in VECTOR_ELT
--- failed re-building ‘corelationmat.Rmd’

--- re-building ‘correlated.Rmd’ using rmarkdown

Quitting from correlated.Rmd:110-116 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 5/5 in VECTOR_ELT
---
Backtrace:
    ▆
 1. └─simstudy::genCorGen(...)
 2.   ├─dtM[, `:=`(param1, params1[seq]), keyby = seqid]
 3.   └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'correlated.Rmd' failed with diagnostics:
attempt access index 5/5 in VECTOR_ELT
--- failed re-building ‘correlated.Rmd’

--- re-building ‘customdist.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘customdist.Rmd’

--- re-building ‘double_dot_extension.Rmd’ using rmarkdown

Quitting from double_dot_extension.Rmd:180-185 [unnamed-chunk-13]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `value[[3L]]()`:
! Error in `[.data.table`(dtSim, , `:=`(newVar, eval(expr)), keyby = def_id): attempt access index 4/4 in VECTOR_ELT
---
Backtrace:
     ▆
  1. └─simstudy::genData(4, d)
  2.   └─simstudy:::.generate(...)
  3.     └─simstudy:::.gendeterm(...)
  4.       └─simstudy:::.evalWith(...)
  5.         └─base::sapply(formula, evalFormula)
  6.           └─base::lapply(X = X, FUN = FUN, ...)
  7.             └─simstudy (local) FUN(X[[i]], ...)
  8.               ├─base::with(...)
  9.               └─base::with.default(...)
 10.                 └─base::eval(substitute(expr), data, enclos = parent.frame())
 11.                   └─base::eval(substitute(expr), data, enclos = parent.frame())
 12.                     └─base::tryCatch(...)
 13.                       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 14.                         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 15.                           └─value[[3L]](cond)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'double_dot_extension.Rmd' failed with diagnostics:
Error in `[.data.table`(dtSim, , `:=`(newVar, eval(expr)), keyby = def_id): attempt access index 4/4 in VECTOR_ELT

--- failed re-building ‘double_dot_extension.Rmd’

--- re-building ‘framework.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘framework.Rmd’

--- re-building ‘logisticCoefs.Rmd’ using rmarkdown

Quitting from logisticCoefs.Rmd:38-58 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `value[[3L]]()`:
! Error in `[.data.table`(dtSim, , `:=`(newVar, eval(expr)), keyby = def_id): attempt access index 5/5 in VECTOR_ELT
---
Backtrace:
     ▆
  1. └─simstudy::genData(5e+05, d1a)
  2.   └─simstudy:::.generate(...)
  3.     └─simstudy:::.genbinom(...)
  4.       └─simstudy:::.getBinaryMean(...)
  5.         └─simstudy:::.evalWith(...)
  6.           └─base::sapply(formula, evalFormula)
  7.             └─base::lapply(X = X, FUN = FUN, ...)
  8.               └─simstudy (local) FUN(X[[i]], ...)
  9.                 ├─base::with(...)
 10.                 └─base::with.default(...)
 11.                   └─base::eval(substitute(expr), data, enclos = parent.frame())
 12.                     └─base::eval(substitute(expr), data, enclos = parent.frame())
 13.                       └─base::tryCatch(...)
 14.                         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 15.                           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 16.                             └─value[[3L]](cond)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'logisticCoefs.Rmd' failed with diagnostics:
Error in `[.data.table`(dtSim, , `:=`(newVar, eval(expr)), keyby = def_id): attempt access index 5/5 in VECTOR_ELT

--- failed re-building ‘logisticCoefs.Rmd’

--- re-building ‘longitudinal.Rmd’ using rmarkdown

Quitting from longitudinal.Rmd:101-104 [unnamed-chunk-6]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 5/5 in VECTOR_ELT
---
Backtrace:
    ▆
 1. └─simstudy::addPeriods(dt)
 2.   ├─...[]
 3.   └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'longitudinal.Rmd' failed with diagnostics:
attempt access index 5/5 in VECTOR_ELT
--- failed re-building ‘longitudinal.Rmd’

--- re-building ‘missing.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘missing.Rmd’

--- re-building ‘ordinal.Rmd’ using rmarkdown

Quitting from ordinal.Rmd:185-196 [acuts]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 2/2 in VECTOR_ELT
---
Backtrace:
    ▆
 1. └─simstudy::genData(25000, defA)
 2.   └─simstudy:::.generate(...)
 3.     └─simstudy:::.genAssign(...)
 4.       └─simstudy::trtAssign(...)
 5.         ├─dt[, `:=`(.n, .N), keyby = .stratum]
 6.         └─data.table:::`[.data.table`(dt, , `:=`(.n, .N), keyby = .stratum)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'ordinal.Rmd' failed with diagnostics:
attempt access index 2/2 in VECTOR_ELT
--- failed re-building ‘ordinal.Rmd’

--- re-building ‘simstudy.Rmd’ using rmarkdown

Quitting from simstudy.Rmd:106-111 [unnamed-chunk-6]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 5/5 in VECTOR_ELT
---
Backtrace:
    ▆
 1. └─simstudy::trtAssign(...)
 2.   ├─dt[, `:=`(.n, .N), keyby = .stratum]
 3.   └─data.table:::`[.data.table`(dt, , `:=`(.n, .N), keyby = .stratum)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'simstudy.Rmd' failed with diagnostics:
attempt access index 5/5 in VECTOR_ELT
--- failed re-building ‘simstudy.Rmd’

--- re-building ‘spline.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘spline.Rmd’

--- re-building ‘survival.Rmd’ using rmarkdown

Quitting from survival.Rmd:111-122 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 5/5 in VECTOR_ELT
---
Backtrace:
    ▆
 1. └─simstudy::genSurv(...)
 2.   └─simstudy::addCompRisk(...)
 3.     ├─...[]
 4.     └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'survival.Rmd' failed with diagnostics:
attempt access index 5/5 in VECTOR_ELT
--- failed re-building ‘survival.Rmd’

--- re-building ‘treat_and_exposure.Rmd’ using rmarkdown

Quitting from treat_and_exposure.Rmd:93-97 [unnamed-chunk-3]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 5/5 in VECTOR_ELT
---
Backtrace:
    ▆
 1. └─simstudy::trtAssign(...)
 2.   ├─dt[, `:=`(.n, .N), keyby = .stratum]
 3.   └─data.table:::`[.data.table`(dt, , `:=`(.n, .N), keyby = .stratum)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'treat_and_exposure.Rmd' failed with diagnostics:
attempt access index 5/5 in VECTOR_ELT
--- failed re-building ‘treat_and_exposure.Rmd’

SUMMARY: processing the following files failed:
  ‘clustered.Rmd’ ‘corelationmat.Rmd’ ‘correlated.Rmd’
  ‘double_dot_extension.Rmd’ ‘logisticCoefs.Rmd’ ‘longitudinal.Rmd’
  ‘ordinal.Rmd’ ‘simstudy.Rmd’ ‘survival.Rmd’ ‘treat_and_exposure.Rmd’

Error: Vignette re-building failed.
Execution halted