Error(s) in re-building vignettes:
--- re-building 'flexsurv.Rnw' using knitr
Error: processing vignette 'flexsurv.Rnw' failed with diagnostics:
running 'texi2dvi' on 'flexsurv.tex' failed

LaTeX errors:
es/flexsurv.tex:961: LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

--- failed re-building 'flexsurv.Rnw'

--- re-building 'multistate.Rnw' using knitr

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Joining, by = c("time", "model", "state", "val")
--- finished re-building 'multistate.Rnw'

--- re-building 'distributions.Rnw' using Sweave
--- finished re-building 'distributions.Rnw'

--- re-building 'flexsurv-examples.Rnw' using Sweave
Forming integrated rmst function...
Forming integrated mean function...
Loading required package: TH.data
Loading required package: MASS

Attaching package: 'MASS'

The following object is masked from 'package:dplyr':

    select


Attaching package: 'TH.data'

The following object is masked from 'package:MASS':

    geyser

--- finished re-building 'flexsurv-examples.Rnw'

SUMMARY: processing the following file failed:
  'flexsurv.Rnw'

Error: Vignette re-building failed.
In addition: Warning messages:
1: In system(paste(shQuote(texi2dvi), if (quiet) "--quiet" else "",  :
  running command '"C:\PROGRA~1\MiKTeX\miktex\bin\x64\texify.exe" --quiet --pdf "flexsurv.tex" --max-iterations=20 -I "C:/r_packages/rinst/share/texmf/tex/latex" -I "C:/r_packages/rinst/share/texmf/bibtex/bst"' had status 1
2: In system(paste(shQuote(texi2dvi), if (quiet) "--quiet" else "",  :
  running command '"C:\PROGRA~1\MiKTeX\miktex\bin\x64\texify.exe" --quiet --pdf "multistate.tex" --max-iterations=20 -I "C:/r_packages/rinst/share/texmf/tex/latex" -I "C:/r_packages/rinst/share/texmf/bibtex/bst"' had status 1
Execution halted