Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while building manual #28

Closed
TanguyBarthelemy opened this issue May 21, 2024 · 1 comment
Closed

Issue while building manual #28

TanguyBarthelemy opened this issue May 21, 2024 · 1 comment

Comments

@TanguyBarthelemy
Copy link
Contributor

TanguyBarthelemy commented May 21, 2024

I got an error while building the manual of rjd3filters

> devtools::build_manual()
Error in `value[[3L]]()`:
! Failed to build manual
Run `rlang::last_trace()` to see where the error occurred.

This doesn't give us much information so I ran the command line:

> R CMD Rd2pdf rjd3filters
Hmm ... looks like a package
Converting Rd files to LaTeX ..
Creating pdf output from LaTeX ...
Warning in system(paste(shQuote(texi2dvi), if (quiet) "--quiet" else "",  :
  running command '"C:\Users\UTZK0M\AppData\Local\Programs\MiKTeX\miktex\bin\x64\texify.exe"  --pdf "Rd2.tex" --max-iterations=20 -I "C:/Users/UTZK0M/AppData/Local/Programs/R/R-4.4.0/share/texmf/tex/latex" -I "C:/Users/UTZK0M/AppData/Local/Programs/R/R-4.4.0/share/texmf/bibtex/bst"' had status 1
Error : running 'texi2dvi' on 'Rd2.tex' failed

LaTeX errors:
! Extra alignment tab has been changed to \cr.
<recently read> \endtemplate

l.989 .../12 & 1/12 & 1/12 & 1/24 \end{pmatrix}}{}
                                                  ), the first and last 6 po...

Warning in system(paste(shQuote(texi2dvi), if (quiet) "--quiet" else "",  :
  running command '"C:\Users\UTZK0M\AppData\Local\Programs\MiKTeX\miktex\bin\x64\texify.exe"  --pdf "Rd2.tex" --max-iterations=20 -I "C:/Users/UTZK0M/AppData/Local/Programs/R/R-4.4.0/share/texmf/tex/latex" -I "C:/Users/UTZK0M/AppData/Local/Programs/R/R-4.4.0/share/texmf/bibtex/bst"' had status 1
Error : running 'texi2dvi' on 'Rd2.tex' failed

LaTeX errors:
! Extra alignment tab has been changed to \cr.
<recently read> \endtemplate

l.989 .../12 & 1/12 & 1/12 & 1/24 \end{pmatrix}}{}
                                                  ), the first and last 6 po...

Error in running tools::texi2pdf()

The error is due to the symmetric moving average matrix which does not fit on a single line:

image

Maybe displaying the equation on a new line or changing the size of the characters?

@AQLT
Copy link
Contributor

AQLT commented May 22, 2024

Thanks, this come from the fact that by default matrix cannot have more than 10 columns and thus it breaks it into 2 lines. I updated the formula to define it with the backward operator instead of the matrix notation.

@AQLT AQLT closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants