csasdown
csasdown copied to clipboard
Package babel Error: Unknown option `french' or `english'
For some reason, the current tinytex does not install the babel-french or babel-english packages when needed. This is a recent problem as far as I can tell. Users can fix this by running
tinytex::tlmgr_install('babel-french')
tinytex::tlmgr_install('babel-english')
I don't know if this will resolve itself or if we should note this in the install instructions, but at the very least I'm noting this here in case someone is searching for this error.
We even have to do this on the continuous integration script: https://github.com/pbs-assess/csasdown/blob/10739ccb02e86ce165422754b397c2c27b3f3c81/.github/workflows/R-CMD-check.yaml#L74-L75
Just a note that this babel error just popped up for me for the first time, but using the tinytex install lines you have here fixed it. Thanks.
Just a note that this babel error just popped up for me for the first time, but using the tinytex install lines you have here fixed it. Thanks.
Yes, please do add to the install instructions. I was quite confused why my new install on my new computer (R4.4.1, Rtools44, new tinytex) wasn't working until I found this. Thanks!
Done (new step 2) https://github.com/pbs-assess/csasdown/blob/main/README.md#initial-setup
Perhaps we should check this on the fly and issue an informative message. E.g.:
tinytex::check_installed("babel-french")
The downside is this takes a second or two for me. Hopefully this will resolve itself upstream.