Error(s) in re-building vignettes:
  ...
--- re-building ‘fic.Rnw’ using knitr
Error: processing vignette ‘fic.Rnw’ failed with diagnostics:
Running ‘texi2dvi’ on ‘fic.tex’ failed.
LaTeX errors:
! Missing $ inserted.
<inserted text> 
                $
l.431 prob_
           logistic <- function(par, X)plogis(X %*% par)vals.smoke <-    c(1...
! Emergency stop.
<inserted text> 
                $
l.431 prob_
           logistic <- function(par, X)plogis(X %*% par)vals.smoke <-    c(1...
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘fic.Rnw’

--- re-building ‘linear.Rnw’ using knitr
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
Error: processing vignette ‘linear.Rnw’ failed with diagnostics:
Running ‘texi2dvi’ on ‘linear.tex’ failed.
LaTeX errors:
! Missing $ inserted.
<inserted text> 
                $
l.107 library(fic)ncovs_
                        wide <- length(coef(wide.lm)) - 1inds0 <- c(1, rep(0...
! Emergency stop.
<inserted text> 
                $
l.107 library(fic)ncovs_
                        wide <- length(coef(wide.lm)) - 1inds0 <- c(1, rep(0...
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘linear.Rnw’

--- re-building ‘loss.Rnw’ using knitr
Error: processing vignette ‘loss.Rnw’ failed with diagnostics:
Running ‘texi2dvi’ on ‘loss.tex’ failed.
LaTeX errors:
! Missing $ inserted.
<inserted text> 
                $
l.84 ...keinds0 <- c(1,1,0,0,0,0,0,0)combs <- all_
                                                  inds(wide.glm, inds0)ficre...
! Emergency stop.
<inserted text> 
                $
l.84 ...keinds0 <- c(1,1,0,0,0,0,0,0)combs <- all_
                                                  inds(wide.glm, inds0)ficre...
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘loss.Rnw’

--- re-building ‘multistate.Rnw’ using knitr
Error: processing vignette ‘multistate.Rnw’ failed with diagnostics:
Running ‘texi2dvi’ on ‘multistate.tex’ failed.
LaTeX errors:
! You can't use `macro parameter character #' in horizontal mode.
l.146 to run code in this vignette") #
                                      # Loading required package: msm
? 
! Emergency stop.
! Emergency stop.
l.146 to run code in this vignette") #
                                      # Loading required package: msm
End of file on the terminal!

!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘multistate.Rnw’

--- re-building ‘skewnormal.Rnw’ using knitr
Warning in nlm(fn1, ini[c("beta0", "logsigma")], hessian = TRUE) :
  NA/Inf replaced by maximum positive value
Warning in nlm(fn3, ini[c("beta0", "logsigma", "loglambda")], hessian = TRUE) :
  NA/Inf replaced by maximum positive value
Error: processing vignette ‘skewnormal.Rnw’ failed with diagnostics:
Running ‘texi2dvi’ on ‘skewnormal.tex’ failed.
LaTeX errors:
! You can't use `macro parameter character #' in horizontal mode.
l.119 ...nstalled to run code in this vignette") #
                                                  # Loading required package...

? 
! Emergency stop.
l.119 ...nstalled to run code in this vignette") #
                                                  # Loading required package...
End of file on the terminal!

!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘skewnormal.Rnw’

--- re-building ‘survival.Rnw’ using knitr
Error: processing vignette ‘survival.Rnw’ failed with diagnostics:
Running ‘texi2dvi’ on ‘survival.tex’ failed.
LaTeX errors:
! You can't use `macro parameter character #' in horizontal mode.
l.96 to run code in this vignette") #
                                     # Loading required package: flexsurv
? 
! Emergency stop.
! Emergency stop.
l.96 to run code in this vignette") #
                                     # Loading required package: flexsurv
End of file on the terminal!

!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘survival.Rnw’

SUMMARY: processing the following files failed:
  ‘fic.Rnw’ ‘linear.Rnw’ ‘loss.Rnw’ ‘multistate.Rnw’
  ‘skewnormal.Rnw’ ‘survival.Rnw’

Error: Vignette re-building failed.
Execution halted