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
Images not rendering when I render rmarkdown at bash command line. Getting "<img..." #1592
Comments
Had you followed the issue guide, you'd know how to post the example as verbatim text instead of an attachment. The issue guide also explicitly asked for |
To complete the previous answer, I think this has something to do with the out.extra='1024px' option you put in With html output, this will be added inside html <img src=“test_files/figure-html/unnamed-chunk-2-1.png” width=“3600” 1024px /> but I don't know if this should be considered a bug as you can provide anything into If you don't have this option, it is working fine. |
@yihui Sorry about that.
|
@cderv I found that option somewhere on the 'net for making my images wider in the html output. I don't think it was working anyway. So I'll take it out, or use it correctly. Although it may not be a bug per se, it's confusing that the html renders fine from RStudio, but not at the command line. |
This is specific to the I don't really know how html_notebook previewing work in RStudio - there may be something to look into in rmarkdown package, but I think it is just that in preview mode, knitr option are not used here. If we change
the size is changed even in preview mode with this example. However, no error while adding |
The problem here is that when |
@kevinushey Thanks a lot! I think the mystery is resolved now. |
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. |
By filing an issue to this repo, I promise that
xfun::session_info('rmarkdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rmarkdown')
.I understand that my issue may be closed if I don't fulfill my promises.
When I run rmarkdown files (example attached) in RStudio and hit "save," the rendered
.nb.html
file contains embedded images. However when I render withRscript -e "rmarkdown::render('file.Rmd')"
, I get image tags but no embedded images (or images in an output folder).RMD File as TXT (Otherwise I'd have to escape all the stuff)
imagetest.txt
The text was updated successfully, but these errors were encountered: