Closed riccardoporreca closed 5 years ago
Just FYI, the pdfcrop
package is sufficiently small:
> tinytex::tlmgr(c('info', 'pdfcrop'))
tlmgr info pdfcrop
package: pdfcrop
category: Package
shortdesc: Crop PDF graphics
longdesc: A Perl script that can either trim pages of any whitespace border, or trim them of a fixed border.
installed: No
sizes: doc: 13k, run: 41k, bin: 9k
relocatable: No
cat-version: 1.37
cat-date: 2018-01-06 12:14:59 +0100
cat-license: lppl
cat-topics: pdfprocess
collection: collection-binextra
@riccardoporreca yup, this is a good idea, thanks. want to send us PR for this? (please update both verse/Dockerfile
and also verse/devel/Dockerfile
so both latest
/3.6.0 and devel
will have it going forward....)
want to send us PR for this?
Sure, will do!
@cboettig, closing this issue given PR #147 was merged.
When using R Markdown with PDF output, it is typically desired to get figures cropped (hence the default
fig_crop: true
).For this to work
pdfcrop
must to installed, butrmarkdown
silently ignores cropping if that is not the case. Since the default TinyTeX installation does not includepdfcrop
(yihui/tinytex#118), it could be problematic for users of rocker/verse.It is probably sensible to add
pdfcrop
to the existingtlmgr install
command in therocker/verse
Dockerfile (hinted by @yihui in this comment) https://github.com/rocker-org/rocker-versioned/blob/08ca130eaf2f517452b4d4fa65ac34842eaaafd0/verse/Dockerfile#L50 This should be enough given that Ghostscript is already covered in the Dockerfile.