Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors installing #35

Open
aaronbaggett opened this issue Jan 23, 2019 · 13 comments
Open

Errors installing #35

aaronbaggett opened this issue Jan 23, 2019 · 13 comments

Comments

@aaronbaggett
Copy link

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#> preparinghrbrthemes:
#> 
  
   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)

@hrbrmstr
Copy link
Owner

hrbrmstr commented Jan 23, 2019

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.

@aaronbaggett
Copy link
Author

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

@hrbrmstr
Copy link
Owner

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.

@RealCoChenchao
Copy link

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

@mahmud1rahman
Copy link

'' 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 ?

@hrbrmstr
Copy link
Owner

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

@DimasDMM
Copy link

DimasDMM commented Dec 19, 2019

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 :)

@kennchua
Copy link

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

@qihaoxiang
Copy link

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

Thanks! That also works for me.

@MKnierim MKnierim mentioned this issue Mar 6, 2020
@davidhen
Copy link

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.

@boryanakis
Copy link

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

@priess-hold
Copy link

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

@westland
Copy link

westland commented Feb 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests