Error(s) in re-building vignettes:
  ...
--- re-building ‘gelS4.Rnw’ using knitr
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Warning in log(1 - gml) : NaNs produced
Warning in nlminb(lambda0, fct, gradient = Dfct, hessian = DDfct, X = gmat,  :
  NA/NaN function evaluation
Version:  1.37.5
Date:     2020-06-17
Author:   Philip Leifeld (University of Essex)

Consider submitting praise using the praise or praise_interactive functions.
Please cite the JSS article in your publications -- see citation("texreg").
Error: processing vignette ‘gelS4.Rnw’ failed with diagnostics:
Running ‘texi2dvi’ on ‘gelS4.tex’ failed.
LaTeX errors:
! You can't use `macro parameter character #' in horizontal mode.
l.198 library(momentfit)#
                         # Loading required package: sandwich
? 
! Emergency stop.
! Emergency stop.
l.198 library(momentfit)#
                         # Loading required package: sandwich
End of file on the terminal!

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

--- re-building ‘gmmS4.Rnw’ using knitr
Error: processing vignette ‘gmmS4.Rnw’ failed with diagnostics:
Running ‘texi2dvi’ on ‘gmmS4.tex’ failed.
LaTeX errors:
! You can't use `macro parameter character #' in horizontal mode.
l.268 mod1#
           # Model based on moment conditions
? 
! Emergency stop.
! Emergency stop.
l.268 mod1#
           # Model based on moment conditions
End of file on the terminal!

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

SUMMARY: processing the following files failed:
  ‘gelS4.Rnw’ ‘gmmS4.Rnw’

Error: Vignette re-building failed.
Execution halted