MichaelChirico / potools

Tools for working with translations in R
https://michaelchirico.github.io/potools/
58 stars 3 forks source link

translate_package() in batch mode gives Error in if (tolower(prompt("Exit now to repair any of these? [y/N]")) %chin%: argument is of length zero #224

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

Running translate_package() in batch mode gives:

$ Rscript -e "potools::translate_package()"
...
Potential replacement:
cat(gettextf("%s\n", s))
Exit now to repair any of these? [y/N]
Error in if (tolower(prompt("Exit now to repair any of these? [y/N]")) %chin%  : 
  argument is of length zero
Calls: <Anonymous>

This is with potools 0.2.2.

MichaelChirico commented 2 years ago

Thanks! an oversight on my part