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
As a first step we could support conditional images. My use case is adding SVG images to the HTML manual, and I don't mind if they are omitted from the PDF manual.
Ideally we would also support images created by code blocks, in addition to the ones put in "manually" with the markdown image syntax.
The text was updated successfully, but these errors were encountered:
We could also select the output format automatically. E.g. If it is an SVG, it should be HTML only. If it is a PDF, it should be PDF only. GIF, JPEG, PNG are good for both. WRE says that these are the only types that are handled by default:
Files with extensions .jpg, .jpeg, .pdf, .png and .svg from that directory will be copied to the help/figures directory at install time.
This is currently opt in. If you set `restrict_image_formats`
to `TRUE`, then SVG images are HTML-only and PDF images are
PDF-only. Other file types are not restricted.
We could try to make it opt out, because SVGs do not work in
LaTeX and PDFs most of the time do not work in HTML.
If it is opt in, then we don't necessarily need a NEWS item
to try this out, but if it ends up being opt out, then we
do and we also need to document it,
Closes#1398.
This is currently opt in. If you set `restrict_image_formats`
to `TRUE`, then SVG images are HTML-only and PDF images are
PDF-only. Other file types are not restricted.
We could try to make it opt out, because SVGs do not work in
LaTeX and PDFs most of the time do not work in HTML.
If it is opt in, then we don't necessarily need a NEWS item
to try this out, but if it ends up being opt out, then we
do and we also need to document it,
Closes#1398.
WRE suggests SVG + PDF for nice images in HTML and PDF:
https://cran.r-project.org/doc/manuals/R-exts.html#Figures
As a first step we could support conditional images. My use case is adding SVG images to the HTML manual, and I don't mind if they are omitted from the PDF manual.
Ideally we would also support images created by code blocks, in addition to the ones put in "manually" with the markdown image syntax.
The text was updated successfully, but these errors were encountered: