csasdown icon indicating copy to clipboard operation
csasdown copied to clipboard

Package babel Error: Unknown option `french' or `english'

Open seananderson opened this issue 11 months ago • 7 comments

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

seananderson avatar Mar 21 '24 17:03 seananderson

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.

krHolt avatar Apr 24 '24 21:04 krHolt

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!

carrieholt avatar Jul 03 '24 20:07 carrieholt

Done (new step 2) https://github.com/pbs-assess/csasdown/blob/main/README.md#initial-setup

seananderson avatar Jul 03 '24 21:07 seananderson

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.

seananderson avatar Jul 03 '24 21:07 seananderson