awalker89 / openxlsx

R package for .xlsx file reading and writing.
Other
364 stars 79 forks source link

`createStyle` with `border = "right"` rise error on system with Turkish locale #442

Open gdemin opened 5 years ago

gdemin commented 5 years ago

Expected Behavior

Style creation.

Actual Behavior

Error: "Unknown border argument"

Steps to Reproduce the Problem

  1. System with Turkish locale.

  2. openxlsx::createStyle( borderStyle = "thin", borderColour = "black", border = "right" )

  3. Error '"Unknown border argument"

As far as I understand it is because in the Turkish locale toupper("right") gives "RİGHT" instead of "RIGHT": https://github.com/awalker89/openxlsx/blob/master/R/wrappers.R#L772

sessionInfo()

For reference: https://github.com/gdemin/expss/issues/23