-
Notifications
You must be signed in to change notification settings - Fork 19
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
Author unexpectedly set to "immediate" in BiocStyle::pdf_document #73
Comments
I have the same problem with
|
Hi ! Did you find a solution ? |
On my side, I just tried rerunning the code I posted above and it seems I still have the same issue (with |
@grimbough can you take a look? |
I'm on parental leave until the end of September, but happy to take a look at this once I'm back at work. |
I think this is another example of the problem seen in rstudio/rmarkdown#2264 Consider the following ---
title: "Vignette Title"
author: "Mike Smith"
output:
BiocStyle::pdf_document
--- Rendering this with the defaults is fine: rmarkdown::render("test.Rmd")
However, supplying an output file with an extension gives the warning about missing authors: rmarkdown::render("test.Rmd", output_file = "test_bad.pdf")
If we try to give a file name without extension, it's all fine again. You even get the correct extension in the end. rmarkdown::render("test.Rmd", output_file = "test_good")
The reason this happens is that when you don't provide a file extension, the An inelegant solution for alevinQC would be to remove your code checking the file extensions in the case of using Lines 146 to 163 in 7150c28
|
Ooh, nice detective work! I have implemented the workaround you suggest in |
Hello,
I'm running into an issue with
BiocStyle
that I can't quite track down, and I was wondering whether you might have any pointers. The issue appears in thealevinQC
package (https://github.com/csoneson/alevinQC). I'm running the following code (requires the current GitHub/Bioc devel (3.11) version ofalevinQC
):This will read some data from the provided
baseDir
and subsequently callrmarkdown::render()
with a template provided here. This template is intended to put the current version ofalevinQC
in the "author" field. However, withBiocStyle::pdf_document
specified as the output format, the author field is instead set to "immediate", and I get the following warnings:I think the first LaTeX warnings are fine (or at least not causing this particular problem), and that the issue is whatever causes the "No \author given". I'm not quite sure what's happening though - I get the expected output with
BiocStyle::html_document
,rmarkdown::html_document
andrmarkdown::pdf_document
. Things also work fine if I copy the YAML header from the template above into an empty .Rmd file andrmarkdown::render()
it with the output format set toBiocStyle::pdf_document
.If you have any ideas where this might come from or how I could try to track it down, that would be super helpful. Thanks in advance!
Session info (I have also tried on other systems with similar results)
The text was updated successfully, but these errors were encountered: