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

beamer_presentation type output does not pass any intermediates #1106

Closed
longvaio opened this issue Jul 25, 2017 · 4 comments
Closed

beamer_presentation type output does not pass any intermediates #1106

longvaio opened this issue Jul 25, 2017 · 4 comments

Comments

@longvaio
Copy link

longvaio commented Jul 25, 2017

The pdf_document type output ensures that intermediates (images) are copied, see: https://github.com/rstudio/rmarkdown/blob/master/R/pdf_document.R#L207-L223

Whereas beamer_presentation type output doesn't pass any intermediates, see: https://github.com/rstudio/rmarkdown/blob/master/R/beamer_presentation.R#L129-L139

Both types will rendering correctly in local.

But when try to publish a Rmd document with output type as beamer_presentation with picture/attachments to Rstudio-connect, since it does not pass the intermediates, on Rsutdio-connect server, when it try to rendering the document will complain about missing files.

sample testing code:
https://github.com/longvaio/beamer_bug
will fail to publish even we add the image file during the deployment:
beamer_add_files

and deploy log shows:
2017/07/25 14:09:35.731866490 /opt/rstudio-connect/ext/pandoc/pandoc +RTS -K512m -RTS /tmp/Rtmpyo64FL/beamer_presentation.utf8.md --to beamer --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output /opt/rstudio-connect/mnt/report/beamer_presentation.pdf --template /tmp/Rtmpyo64FL/file1ce7a1df0977.tex --highlight-style tango --latex-engine pdflatex
2017/07/25 14:09:37.287504968 ! Package pdftex.def Error: File `sample.jpg' not found.
2017/07/25 14:09:37.287531254
2017/07/25 14:09:37.287541763 See the pdftex.def package documentation for explanation.
2017/07/25 14:09:37.287542971 Type H for immediate help.
2017/07/25 14:09:37.287546479 ...
2017/07/25 14:09:37.287547465
2017/07/25 14:09:37.287550152 l.75 \end{frame}
2017/07/25 14:09:37.287550998
2017/07/25 14:09:37.287554226 pandoc: Error producing PDF

On the other hand, if we change the output type from beamer_presentation to pdf_document, everything works.

Thanks for your help.
Sincerely,
John

@jjallaire
Copy link
Member

@jmcphers It looks like this part of the original commit:

eed788e#diff-b3656b1448a6664365941a3081112c04

Also needs to be done for the beamer_presentation format.

@jmcphers
Copy link
Member

Got it, I'll take a look at this soon.

@jjallaire
Copy link
Member

jjallaire commented Jul 25, 2017 via email

@github-actions
Copy link

github-actions bot commented Nov 3, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
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

3 participants