bensutherland / simple_pop_stats

A short analysis of population statistics given specific inputs
5 stars 1 forks source link

Additional packages pdfcrop and ghostscript in baseline benchmark markdown #29

Closed erondeau closed 3 years ago

erondeau commented 3 years ago

Upon updating R to 4.0.3, I noticed that an error was produced when trying to run the benchmark r-markdown, about missing dependencies "pdfcrop" and "ghostscript". This seems to be a result of pdfcrop being added to tinytex, but it wasn't straightforward to fix:

1) I downloaded and installed a program called ghostscript: https://www.ghostscript.com/download/gsdnld.html; but it is also in the software catalogue for download. (search for "ghost" brings it up) 2) install_tinytex() 3) tinytex::reinstall_tinytex() 4) tinytex::tlmgr_install("pdfcrop")

I thought it was isolated to me, so I didn't think to much of it, but we saw this error again this morning on another computer. So this is likely going to keep popping up.

The above is what I believe is the minimum required, but at one point tinytex::tlmgr_install asked me to install/update some other items. It wasn't clear if all were needed, but I did anyways, so would recommend doing so as well.

erondeau commented 3 years ago

The above did seem to work for me, so if you have some errors let me know.

erondeau commented 3 years ago

This stack overflow was where I got the answer:

https://stackoverflow.com/questions/66305776/got-knit-issue-with-r

erondeau commented 3 years ago

This is now in Appendix A:

https://github.com/bensutherland/simple_pop_stats/blob/master/README_benchmark_appendix.md#if-you-encounter-errors-related-to-ghostscript-or-tinytex-please-see-this-issue-for-the-fix-httpsgithubcombensutherlandsimple_pop_statsissues29

Will close, as I see this as Fixed, but needing to be maintained for reference.