Sys.getlocale()
Sys.getlocale("LC_TIME")
## Not run: ------------------------------------
# Sys.setlocale("LC_TIME", "de")     # Solaris: details are OS-dependent
# Sys.setlocale("LC_TIME", "de_DE.utf8")   # Modern Linux etc.
# Sys.setlocale("LC_TIME", "de_DE.UTF-8")  # ditto
# Sys.setlocale("LC_TIME", "de_DE")  # macOS, in UTF-8
# Sys.setlocale("LC_TIME", "German") # Windows
## ---------------------------------------------
Sys.getlocale("LC_PAPER")          # may or may not be set
## Not run: ------------------------------------
# Sys.setlocale("LC_COLLATE", "C")   # turn off locale-specific sorting,
#                                    # usually, but not on all platforms
## ---------------------------------------------
Run the code above in your browser using DataLab