You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a package which includes figures in the man/figures directory to include in HTML and PDF versions of help files. When I run devtools::check(), the package passes, but if change check_dir to something besides the default, or use the RStudio Build pane "check" button, I get the following errors, which seem to stem from Rd2pdf not finding these image files:
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! Package pdftex.def Error: File `viridis-scales.png' not found.
See the pdftex.def package documentation for explanation.
Type H <return> for immediate help.
...
* checking PDF version of manual without hyperrefs or index ...
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: ` '/Library/Frameworks/R.framework/Resources/bin/R' CMD Rd2pdf --batch --no-preview --build-dir='/var/folders/x5/rj19z1h13zbgffswjx1cc4v00000gn/T//RtmpRGKyBz/Rd2pdf10d0038b1fba2' --no-clean --no-index -o viridis-manual.pdf /Users/noamross/Dropbox (Personal)/code/testRcheck/viridis.Rcheck/viridis > 'Rdlatex.log' 2>&1'
ERROR
Re-running with no redirection of stdout/stderr.
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: ` '/Library/Frameworks/R.framework/Resources/bin/R' CMD Rd2pdf --batch --no-preview --build-dir='/var/folders/x5/rj19z1h13zbgffswjx1cc4v00000gn/T//RtmpRGKyBz/Rd2pdf10d002cff65c2' --no-clean --no-index -o viridis-manual.pdf /Users/noamross/Dropbox (Personal)/code/testRcheck/viridis.Rcheck/viridis'
* DONE
The text was updated successfully, but these errors were encountered:
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Sep 18, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a package which includes figures in the
man/figures
directory to include in HTML and PDF versions of help files. When I rundevtools::check()
, the package passes, but if changecheck_dir
to something besides the default, or use the RStudio Build pane "check" button, I get the following errors, which seem to stem fromRd2pdf
not finding these image files:The text was updated successfully, but these errors were encountered: