hrbrthemes icon indicating copy to clipboard operation
hrbrthemes copied to clipboard

Errors installing

Open aaronbaggett opened this issue 6 years ago • 13 comments

Installing from both CRAN and Github producing errors.

# Install {hrbrthemes}
devtools::install_github("hrbrmstr/hrbrthemes")
#> Downloading GitHub repo hrbrmstr/hrbrthemes@master
#> 
#>   
   checking for file ‘/private/var/folders/44/hrlycnxd6zj2sn49bxrp2_6c0000gn/T/RtmpBHNaOD/remotes11e72a1dc133/hrbrmstr-hrbrthemes-5b0b743/DESCRIPTION’ ...
  
✔  checking for file ‘/private/var/folders/44/hrlycnxd6zj2sn49bxrp2_6c0000gn/T/RtmpBHNaOD/remotes11e72a1dc133/hrbrmstr-hrbrthemes-5b0b743/DESCRIPTION’
#> 
  
─  preparing ‘hrbrthemes’:
#> 
  
   checking DESCRIPTION meta-information ...
  
✔  checking DESCRIPTION meta-information
#> 
  
─  checking for LF line-endings in source and make files and shell scripts
#> 
  
─  checking for empty or unneeded directories
#> ─  building ‘hrbrthemes_0.6.0.tar.gz’
#> 
  
   
#> 
#> Error in i.p(...): (converted from warning) installation of package '/var/folders/44/hrlycnxd6zj2sn49bxrp2_6c0000gn/T//RtmpBHNaOD/file11e725420dd54/hrbrthemes_0.6.0.tar.gz' had non-zero exit status

Created on 2019-01-23 by the reprex package (v0.2.1)

Session info:

sessionInfo()
#> R version 3.5.2 (2018-12-20)
#> Platform: x86_64-apple-darwin15.6.0 (64-bit)
#> Running under: macOS Mojave 10.14.2
#> 
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
#> 
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> loaded via a namespace (and not attached):
#>  [1] compiler_3.5.2  magrittr_1.5    tools_3.5.2     htmltools_0.3.6
#>  [5] yaml_2.2.0      Rcpp_1.0.0      stringi_1.2.4   rmarkdown_1.11 
#>  [9] highr_0.7       knitr_1.21      stringr_1.3.1   xfun_0.4       
#> [13] digest_0.6.18   evaluate_0.12

Created on 2019-01-23 by the reprex package (v0.2.1)

aaronbaggett avatar Jan 23 '19 13:01 aaronbaggett

Thx for trying the package out. Unfortunately the error you are receiving is very likely not a hrbrthemes issue.

Can you open up a macOS R terminal (via Terminal or iTerm apps, not RStudio's built-in javascript terminal) and try:

Rscript -e 'devtools::install_github("hrbrmstr/hrbrthemes")'

and see what happens?

I primarily develop on macOS and am running latest Mojave (Apple developer releases so I'm ahead of you, but you should consider upgrading to 10.14.3 that Apple released this week since there are major security fixes in it) and have no issues on the two main development systems I use or the system reserved for testing.

hrbrmstr avatar Jan 23 '19 13:01 hrbrmstr

I actually get the same error messages. screen shot 2019-01-23 at 8 11 29 am

aaronbaggett avatar Jan 23 '19 14:01 aaronbaggett

Thx for giving that a go. The "lazy loading" message suggests you have an open R session somewhere else on the machine. You may need to ensure all other R instances/sessions are closed and try it again.

If the issue persists (and the following is backed up by numerous StackOverflow Q&As abt a plethora of packages over the past 5 years) you may need to consider (a) explicitly removing the hrbrthemes package and trying it again; (b) if (a) does not fix the issue try reinstalling R and reinstalling the package and finally (c) starting with a fresh R and local library configuration. Item (c) is painful and is usually not needed.

hrbrmstr avatar Jan 23 '19 14:01 hrbrmstr

Sometime, we may need to reconfigure by brew install pkg-config and install library(gdtools) first and then install hrbrthemes

RealCoChenchao avatar Apr 30 '19 04:04 RealCoChenchao

'' library(hrbrthemes) Error: package or namespace load failed for ‘hrbrthemes’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/gdtools/libs/gdtools.so': dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/gdtools/libs/gdtools.so, 6): Library not loaded: /opt/X11/lib/libcairo.2.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/gdtools/libs/gdtools.so Reason: image not found In addition: Warning message: package ‘hrbrthemes’ was built under R version 3.4.4 '' im getting the errors here, can u see why ?

mahmud1rahman avatar Oct 15 '19 19:10 mahmud1rahman

Tis not an issue with the pkg but with the R installation on your Mac.

hrbrmstr avatar Oct 16 '19 12:10 hrbrmstr

Hi, I was in the same situation as @aaronbaggett

I would like to say that, in my case, the problem was R Studio. I suppose that it didn't have enough rights to write in the folder? Anyway, I re-installed it and now it seems to be working fine.

I hope that someone finds this comment useful :)

DimasDMM avatar Dec 19 '19 22:12 DimasDMM

Installing XQuartz (and restarting) solved this issue for me.

kennchua avatar Dec 28 '19 06:12 kennchua

Installing XQuartz (and restarting) solved this issue for me.

Thanks! That also works for me.

qihaoxiang avatar Feb 13 '20 16:02 qihaoxiang

Installing XQuartz (and restarting) solved this issue for me.

Just to add, after trying everything else above, this is the one that worked for me.

davidhen avatar Mar 13 '20 10:03 davidhen

I have had this issue on three different Macs in the last year and installing XQuartz has solved the problem every time.

boryanakis avatar Jun 08 '20 17:06 boryanakis

I tried multiple avenues to install on MacOS Catalina and no go. After seeing above comments, installed XQuartz and success!

priess-hold avatar Jun 25 '20 02:06 priess-hold

hrbrthemes/gdtools needs cairo ... for Deb, 'sudo apt install libcairo2-dev'

westland avatar Feb 23 '21 22:02 westland