Closed slodge-work closed 9 months ago
Should be fixed now. Thanks for the report!
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
This code is throwing an error in a bookdown project I'm porting to R4.3 and latest bookdown at current.
https://github.com/rstudio/bookdown/blob/3898705684ab831bc189e8d9c99e897f338e0454/R/utils.R#L416
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:
[x] 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?[x] 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")
?