tonight I added to my Rprofile.site:
Sys.setlocale("LC_CTYPE", locale ="English.UTF-8")
Sys.setlocale("LC_COLLATE", "C")
but still this does not let change the warning which leads to an error when checking my package within Rstudio.
Everytime an R command is called it shows this messages
During startup - Warning message:
Using locale code page other than 65001 ("UTF-8") may cause problems.
or this one:
Warning in Sys.setlocale("LC_CTYPE", ctype) :
using locale code page other than 65001 ("UTF-8") may cause problems
I also tried to change the locale of windows to UTF-8 as indicated here:
change windows to utf-8
Now if I startup R it still shows the warning
Restarting R session...
[1] "LC_COLLATE=English_United States.utf8;LC_CTYPE=English_United States.utf8;LC_MONETARY=English_United States.utf8;LC_NUMERIC=C;LC_TIME=English_United States.utf8"
During startup - Warning message:
Using locale code page other than 65001 ("UTF-8") may cause problems.
> l10n_info()
$MBCS
[1] TRUE
$`UTF-8`
[1] TRUE
$`Latin-1`
[1] FALSE
$codepage
[1] 65001
$system.codepage
[1] 65001
and when i run devtools::check() I still get the error and warning
Using locale code page other than 65001 ("UTF-8") may cause problems.