Я получаю сообщение об ошибке при попытке установить dkahle / ggmap - PullRequest
0 голосов
/ 25 ноября 2018

Я устал от запуска install_github ("dkahle / ggmap"), но, похоже, при попытке установить ggmap возникает ошибка.

install.packages("devtools")
library(devtools)
install_github("dkahle/ggmap", ref = "tidyup")

Вот сообщение об ошибке, которое я получаю в консоли при запуске кода install_github.

Downloading GitHub repo dkahle/ggmap@tidyup
tar: Failed to set default locale
tar: Failed to set default locale
These packages have more recent versions available.
Which would you like to update?

1:   mime    (0.5   -> 0.6) [CRAN]
2:   openssl (1.0.2 -> 1.1) [CRAN]
3:   CRAN packages only
4:   All
5:   None

Enter one or more numbers separated by spaces, or an empty line to cancel
1: 5
v  checking for file '/private/var/folders/c2/98cb8xgx7m92m7x7g_ffthy00000gn/T/RtmpiOyVaS/remotes3326374be9c6/dkahle-ggmap-4dfe516/DESCRIPTION'
   During startup - Warning messages:
   1: Setting LC_CTYPE failed, using "C" 
   2: Setting LC_TIME failed, using "C" 
   3: Setting LC_MESSAGES failed, using "C" 
   4: Setting LC_MONETARY failed, using "C" 
-  preparing 'ggmap':
v  checking DESCRIPTION meta-information
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
   Removed empty directory 'ggmap/.github'
-  looking to see if a 'data/datalist' file should be added
-  building 'ggmap_2.7.904.tar.gz' (694ms)

Error: (converted from warning) Setting LC_CTYPE failed, using "C"
Execution halted
Error in i.p(...) : 
  (converted from warning) installation of package '/var/folders/c2/98cb8xgx7m92m7x7g_ffthy00000gn/T//RtmpiOyVaS/file332666bc795e/ggmap_2.7.904.tar.gz' had non-zero exit status

1 Ответ

0 голосов
/ 25 ноября 2018

Похоже на проблему с языком Mac.

Запустите defaults write org.R-project.R force.LANG en_US.UTF-8 в терминале.

Источник

...