trevorld / ggpattern

ggplot geoms with pattern fills
https://trevorldavis.com/R/ggpattern/dev/
Other
360 stars 18 forks source link

Failed to install 'ggpattern' from GitHub #23

Closed kevin-dp closed 3 years ago

kevin-dp commented 3 years ago

As asked in #18, i followed your updated instructions but still no luck installing ggpattern. I also followed @M-Colley 's advice in #18 but that didn't work either.

install.packages('ggplot2')
install.packages('scales')
install.packages('grid')
install.packages('glue')
install.packages('rlang')
install.packages('tibble')
install.packages('gridGeometry')
install.packages('sf')
install.packages('png')
install.packages('magick')
install.packages('memoise')

remotes::install_github("coolbutuseless/ggpattern")

And i still get the following error:

Downloading GitHub repo coolbutuseless/ggpattern@HEAD
tar: Failed to set default locale
tar: Failed to set default locale
   checking for file '/private/var/folders/64/vfwg9p_d4cd9yggl26s12s580000gn/T/Rtmpd1EV40/remotes1124b4446daab/coolbutuseless-ggpattern-390e13f/DESCRIPTION' ...
Error: (converted from warning) Setting LC_CTYPE failed, using "C"
Execution halted
Error: Failed to install 'ggpattern' from GitHub:
  (converted from warning) installation of package '/var/folders/64/vfwg9p_d4cd9yggl26s12s580000gn/T//Rtmpd1EV40/file1124b7be3392/ggpattern_0.1.3.tar.gz' had non-zero exit status
ys117vt commented 3 years ago

Hi!

Have you tried to install package (githubinstall) first?

install.packages("githubinstall") library(githubinstall) remotes::install_github("coolbutuseless/ggpattern")

kevin-dp commented 3 years ago

@ys117vt I tried but it still doesn't work:

install.packages("githubinstall")
library(githubinstall)
remotes::install_github("coolbutuseless/ggpattern")
-  building 'ggpattern_0.1.3.tar.gz'tion ...4/vfwg9p_d4cd9yggl26s12s580000gn/T/Rtmpwtf6Fe/remotes1509a5b9d1f54/coolbutuseless-ggpattern-390e13f/DESCRIPTION' ...

Error: (converted from warning) Setting LC_CTYPE failed, using "C"
Execution halted
Error: Failed to install 'ggpattern' from GitHub:
  (converted from warning) installation of package '/var/folders/64/vfwg9p_d4cd9yggl26s12s580000gn/T//Rtmpwtf6Fe/file1509a551d5715/ggpattern_0.1.3.tar.gz' had non-zero exit status
ys117vt commented 3 years ago

@kevin-dp maybe try this? https://github.com/royfrancis/pophelper/issues/58#issuecomment-610486414 It sounds like a system issue and I won't lie that I know very little of it. I may also keep it in mind and let you know if I find more useful info.

kevin-dp commented 3 years ago

@ys117vt I tried it but still the same problem... too bad

trevorld commented 3 years ago