jimjam-slam / ggflags

A flag geom for ggplot2. Tweaks the original by using round flags (great for plotting as points).
91 stars 14 forks source link

Won't install Description #8

Closed cesar-galvao closed 2 years ago

cesar-galvao commented 5 years ago

I'm using this to install ggflags:

devtools::install_github("rensa/ggflags")

This is the error message I get:

` √ checking for file 'C:\Users\Cesar Augusto Galvão\AppData\Local\Temp\RtmpSmDcvg\remotesb085dfc42bb\rensa-ggflags-401494a/DESCRIPTION' ...

I'm sorry I'm reaching out to you, I can`t seem to find anyone else having this problem.

jimjam-slam commented 4 years ago

Sorry for the delay getting back to you, @cesar-galvao!

My only hunch with this problem is that your Mac user name, which contains non-ASCII characters (ã), is causing package installation problems. I say this because the first part of the error says refers to your user name with the diacritic in it. Then, after the message "Unknown encoding with non-ASCII data: converting to ASCII", a path to your user folder appears without the diacritic.

I think the easiest ways to test this would be to:

(a) Check whether you're able to install other packages using devtools. For example, devtools::install_github('vincentarelbundock/countrycode'), and if that doesn't work, install.packages('countrycode'). If the former fails but the latter succeeds, this could be a problem with devtools.

(b) Try creating a new Windows user whose name doesn't have a diacritic in it and installing ggflags for that user.