cderv
April 21, 2022, 9:05am
2
Is this the same issue as in these other ones ?
I had just updated R and RStudio to the latest versions a week or so before these issues and didn't see the problems until 6 days ago. I've since updated all the R libraries used and the issue remains, plus now there's a new issue where all the figures generated in the rmarkdown code have the axis scales and titles cut off and just the plot portion of the figure filling the page margins. Something is seriously wrong with my set up. I went to the
C:\myDesktop\Data Analysis Book_bookdown_files_main_files\figure-latex
folder where the generated figures' .png files are stored and the .png files also have the axis scales and titles missing, so that seems like an Rmarkdown/png generation issue. …
Hi @dkStevensNZed
Is this the same issues as in this other one ?
https://forum.posit.co/t/issues-with-compilation-to-pdf/134401/5
This seems to be related to some content in your Rmd file. Can you share the Rmd content related the tex output ? probably some missing escaping somehow maybe the & ?
I believe this could be related to cropping. By default, fig_crop = TRUE in tufte::tufte_book() and it seems it does not play well with some of your images. Can you try setting fig_crop = FALSE ?
Cropping only happens in PDF output not HTML. The default behavior may have changed some time ago on Windows, but it has been a while. Hopefully deactivating cropping will solve this issue. …
It is hard to follow with the 3 opened thread.
I answered in Different Rmarkdown to PDF compiler behavior with RMarkown and Bookdown - #2 by cderv
There is a cropping by default with PDF when some tools are present. The fig_crop = TRUE
argument as always been there but conditionnal to some tool you may not had before maybe. See function help page
fig_crop
Whether to crop PDF figures with the command pdfcrop. This requires the tools pdfcrop and ghostscript to be installed. By default, fig_crop = TRUE if these two tools are available.
Only on Windows the default behavior may have change some time ago.
Can you set fig_crop = FALSE
to see if this fixes it ?