-
-
Notifications
You must be signed in to change notification settings - Fork 980
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
Comments
@jmcphers It looks like this part of the original commit: eed788e#diff-b3656b1448a6664365941a3081112c04 Also needs to be done for the beamer_presentation format. |
Got it, I'll take a look at this soon. |
Great, thanks!
…On Tue, Jul 25, 2017 at 3:27 PM, Jonathan ***@***.***> wrote:
Got it, I'll take a look at this soon.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1106 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGXx9Y1bXH7mhSZyAtzTN2A_DEG6uU7ks5sRkGzgaJpZM4Oi7yU>
.
|
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. |
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:
![beamer_add_files](https://user-images.githubusercontent.com/15175450/28586672-962c8c32-7142-11e7-8959-d93a012da075.png)
https://github.com/longvaio/beamer_bug
will fail to publish even we add the image file during the deployment:
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
The text was updated successfully, but these errors were encountered: