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:
! Undefined control sequence.
<recently read> \Hy@colorlink 
                              
l.70 \begin{document}
                     
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                                  \Hy@VerboseLinkStop \pdfendlink 
l.70 \begin{document}
                     
! Undefined control sequence.
<recently read> \Hy@colorlink 
                              
l.70 \begin{document}
                     
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                                  \Hy@VerboseLinkStop \pdfendlink 
l.70 \begin{document}
                     
! Undefined control sequence.
<recently read> \Hy@colorlink 
                              
l.70 \begin{document}
                     
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                                  \Hy@VerboseLinkStop \pdfendlink 
l.70 \begin{document}
                     
! Undefined control sequence.
<recently read> \Hy@colorlink 
                              
l.70 \begin{document}
                     
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                                  \Hy@VerboseLinkStop \pdfendlink 
l.70 \begin{document}
                     
! Undefined control sequence.
<recently read> \Hy@colorlink 
                              
l.70 \begin{document}
                     
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                                  \Hy@VerboseLinkStop \pdfendlink 
l.70 \begin{document}
                     
! Undefined control sequence.
<recently read> \Hy@colorlink 
                              
l.70 \begin{document}
                     
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                                  \Hy@VerboseLinkStop \pdfendlink 
l.70 \begin{document}
                     
! Undefined control sequence.
<recently read> \Hy@colorlink 
                              
l.70 \begin{document}
                     
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                                  \Hy@VerboseLinkStop \pdfendlink 
l.70 \begin{document}
                     
! Undefined control sequence.
<recently read> \Hy@colorlink 
                              
l.70 \begin{document}
                     
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                                  \Hy@VerboseLinkStop \pdfendlink 
l.70 \begin{document}
                     
--- failed re-building ‘flexsurv.Rnw’

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

Attaching package: ‘TH.data’

The following object is masked from ‘package:MASS’:

    geyser

Error: processing vignette 'flexsurv-examples.Rnw' failed with diagnostics:
Running ‘texi2dvi’ on ‘flexsurv-examples.tex’ failed.
LaTeX errors:
! Undefined control sequence.
\hyper@linkurl ...tionraw >>}\relax \Hy@colorlink 
                                                  \@urlcolor #1\Hy@xspace@en...
l.19 \begin{document}
                     
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                                  \Hy@VerboseLinkStop \pdfendlink 
l.19 \begin{document}
                     
--- failed re-building ‘flexsurv-examples.Rnw’

SUMMARY: processing the following files failed:
  ‘flexsurv.Rnw’ ‘flexsurv-examples.Rnw’

Error: Vignette re-building failed.
Execution halted