I run a script Rscript script.R > logfile.of.script.txt
in the script i set
Sys.setlocale("LC_ALL", "en_US.UTF-8")
which returns
[1] "LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C"
however this text persists in the log files which i don't want to have. How can I have Sys.setlocale("LC_ALL", "en_US.UTF-8") run quietly without any output to the logfile. Sys.setlocale() does not see, to have a quiet switch to suppress output.