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

Problem finding figures in check() #1007

Closed
noamross opened this issue Jan 4, 2016 · 2 comments
Closed

Problem finding figures in check() #1007

noamross opened this issue Jan 4, 2016 · 2 comments

Comments

@noamross
Copy link

noamross commented Jan 4, 2016

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
@hadley
Copy link
Member

hadley commented Jan 12, 2016

This seems like a R CMD check issue?

@lock
Copy link

lock bot commented Sep 18, 2018

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/

@lock lock bot locked and limited conversation to collaborators Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants