Error(s) in re-building vignettes:
--- re-building 'codingMatrices.Rnw' using knitr
Warning in system(paste(shQuote(texi2dvi), if (quiet) "--quiet" else "",  :
  running command '"C:\PROGRA~1\MiKTeX\miktex\bin\x64\texify.exe" --quiet --pdf "codingMatrices.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
Error: processing vignette 'codingMatrices.Rnw' failed with diagnostics:
running 'texi2dvi' on 'codingMatrices.tex' failed

LaTeX errors:
ngMatrices/vignettes/codingMatrices.tex:552: LaTeX Error: Command \end{document
} invalid in math mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:552: LaTeX Error: Something's wrong--pe
rhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:552: LaTeX Error: Something's wrong--pe
rhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:552: LaTeX Error: \begin{document} ende
d by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:562: LaTeX Error: \begin{document} ende
d by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:575: LaTeX Error: Command \end{document
} invalid in math mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:575: LaTeX Error: Something's wrong--pe
rhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:575: LaTeX Error: Something's wrong--pe
rhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:575: LaTeX Error: \begin{document} ende
d by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:587: LaTeX Error: Command \end{document
} invalid in math mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:587: LaTeX Error: Something's wrong--pe
rhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:587: LaTeX Error: Something's wrong--pe
rhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:587: LaTeX Error: \begin{document} ende
d by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1134: LaTeX Error: \begin{document} end
ed by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1145: LaTeX Error: \begin{document} end
ed by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1171: LaTeX Error: \begin{document} end
ed by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1202: LaTeX Error: \begin{document} end
ed by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1247: LaTeX Error: \begin{document} end
ed by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1292: LaTeX Error: \begin{document} end
ed by \end{center}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1306: LaTeX Error: Command \end{documen
t} invalid in math mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1306: LaTeX Error: Something's wrong--p
erhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1306: LaTeX Error: Something's wrong--p
erhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
ngMatrices/vignettes/codingMatrices.tex:1306: LaTeX Error: \begin{document} end
ed by \end{center}.

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

--- failed re-building 'codingMatrices.Rnw'

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

Error: Vignette re-building failed.
Execution halted