-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Package soul Error: Reconstruction failed.
with PDF vignette
#93
Comments
This is because I'm dumb and didn't notice that the default is |
I'm beginning to think this is an oddity (bug?) in rmarkdown. Consider the following Rmd:
This will render fine with rmarkdown::render("test.Rmd")
#> ...
#> Output created: test.pdf However it fails when supply an rmarkdown::render("test.Rmd", output_file = "test.pdf")
#> ....
#> ! Package soul Error: Reconstruction failed. |
That is a really weird oddity / bug in |
I'm not sure it's really a bug in rmarkdown. The patch for the If you want more unexpected behaviour, try this: rmarkdown::render("test.Rmd", output_file = "AdditionalFile.tex") |
Hmm I see. I have no idea either and well, my natural inclination would be to ask the I searched for |
I've drafted an issue on the rmakdown repo, but I haven't posted as I want to check it isn't us doing a dirty hack & then blaming someone else. I'll do some more digging and then post it. |
I've posted an issue with the current state of my investigations. In the interim, you can actually get the desired behaviour by providing an output file name without an extension e.g. > rmarkdown::render("test.Rmd", output_file = "test1")
Warning: LaTeX Warning: You have requested package `/mnt/data/R-lib/4.1.1-bioc_3.14/Bioc
Warning: Style/resources/tex/Bioconductor',
Warning: but the package provides `Bioconductor'.
Warning: Package geometry Warning: Over-specification in `h'-direction.
Warning: `width' (384.1122pt) is ignored.
Warning: Package Fancyhdr Warning: \fancyhead's `E' option without twoside option is use
Warning: less on input line 162.
Output created: test1.pdf |
Hi,
In my case, I ran into another error using the files from https://github.com/LieberInstitute/spatialLIBD/tree/RELEASE_3_14.
Rscript -e 'rmarkdown::render("spatialLIBD/vignettes/TenX_data_download.Rmd", output_format = "BiocStyle::pdf_document", output_file = "AdditionalFile1.pdf")'
Failed outputs are at: Archive.zip
I don't get the error with:
AdditionalFile1.pdf
R session info
With small example it does work
However, with the small test case it does work. I edited the small example above to use
sessioninfo::session_info()
instead ofsessionInfo()
.test.Rmd
contents:PDF result:
test.pdf
Originally posted by @lcolladotor in #89 (comment)
The text was updated successfully, but these errors were encountered: