Why is it error at setlocale?


#1

Hello, I coding in http://Rstudio.cloud

I want to install.packages("KoNLP").
But Installation is error.

So, I want to setting locale.
But It's impossible.

Sys.setlocale("LC_CTYPE", "en_US.UTF-8")
[1] ""
Warning message:
In Sys.setlocale("LC_CTYPE", "en_US.UTF-8") :
OS reports request to set locale to "en_US.UTF-8" cannot be honored
Sys.setlocale("LC_ALL", "ko_KR.euckr")
[1] ""
Warning message:
In Sys.setlocale("LC_CTYPE", "en_US.UTF-8") :
OS reports request to set locale to "en_US.UTF-8" cannot be honored

Why ?

Pliz answer the Question. Thanks you alot.


#2

As far I understand, both messages are only warnings and should not be the source of your installation error. Could you share the complete log? Moreover, I have in my laptop an unusual locale and I'm seeing those warnings all the time.


#3

Thank you for Ur response.
I don't install sw in laptop.
I would coding in cloud service for R.
https://rstudio.cloud
But, It's not setting localeCharset at rstudio.cloud.
I want to install package 'KoNLP'. It's error.
How can I install package that in Rstudio.Cloud ?


#4

It would seem that the only current locale is C.UTF-8, which doesn't return a charset, which is preventing KoNLP from installing.

Since there are not other locales present, setlocale is also not working.

We will investigate options for addressing this.


#5

I have generated all the UTF-8 locales in our staging environment, but that has not allowed for KoNLP to be installed, even after successfully calling Sys.setlocale("LC_CTYPE", "en_US.UTF-8") and confirming that localeToCharset returns that value. Copying the code from KoNLP:

  if(all((localeToCharset()[1] == c("UTF-8", "CP949", "EUC-KR")) == FALSE)){
    packageStartupMessage("This R shell doesn't contain any Hangul encoding.\nFor fully use, any of 'UTF-8', 'CP949', 'EUC-KR' needs to be used for R shell encoding.")
  }

And running in the console succeed. So, I am not sure what to say at this point.

The locales will become available early next week though.


#6

The locales are now available.