R4.3 error if multiple files are passed to render_book
without an output_format
specified
#1442
Closed
2 of 5 tasks
Labels
bug
an unexpected problem or unintended behavior
This code is throwing an error in a bookdown project I'm porting to R4.3 and latest bookdown at current.
bookdown/R/utils.R
Line 416 in 3898705
The error is:
I'm afraid I can't send a repro - as I'm not sure I understand how our bookdown project works at present! However, the error is caused I think by the fact that we are passing multiple Rmds into
render_book
but not passing in anyoutput_format
:This causes a vector of 9 Rmd files to be in
input
- and this vector is then passes as thefallback_index
parameter toget_output_formats
here:https://github.com/rstudio/bookdown/blob/3898705684ab831bc189e8d9c99e897f338e0454/R/render.R#L87C1-L91C8
This then gets into the if predicate inside
get_output_formats
. In previous versions of R, this caused a warning - but as of R4.3 this is now an error.We obviously have an easy workaround here within our code - we can just add an output_format:
... but I thought this report might help the project and future users.
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
formatted your issue so it is easier for us to read?
included a minimal, self-contained, and reproducible example?
pasted the output from
xfun::session_info('bookdown')
in your issue?upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
installed and tested your bug with the development version of the bookdown package using
remotes::install_github("rstudio/bookdown")
?The text was updated successfully, but these errors were encountered: