![]() ![]() ![]() It turns out, that I had explicitly called another library(kableExtra) in one of the new scripts, and as such, it was bringing in these two new packages. I set out then to manually source the new scripts and found the offending script that was bringing in these two packages. Strangely, two packages were present in the development branch that were not present in the production branch viridisLite and webshot. On a hunch, I did two sessionInfo()'s, one from when I initialized the program from the production branch first, and one from when I initialized the development branch first. GitHub which discussed a webshot package - but since I didn't use this package I didn't think anything of it.Some searching led me to Book will not compile to PDF If I initially sourced the development branch, and then switched to my production branch, things were broken. This would persist even if I then soured all of the new scripts from the development branch. That's to say, if when I opened R, and sourced the production branch and then switched to the development branch, everything would run fine (including rendering the PDF in question). One of the more interesting findings, however, was that this only occurred on a development branch, and only when I sourced the development branch first. ![]() I was able to trace this back to a kableExtra::row_spec() call but upon removing that, I was then met with error: Functions that produce HTML output found in document targeting latex output. The problem I encountered is that I was able to knit together the PDF manually, but when I tried to do it via an R script ( render()) I was met with: Error in xml_children(x)] : subscript out of bounds. The goal is to use library(kable) and library(rmarkdown) to render a PDF. I'm just here to share an experience that took some head scratching to fix and on googling it, it appears that there is sufficient occurrence of it it to warrant a quick topic discussion. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |