dreamRs / esquisse

RStudio add-in to make plots interactively with ggplot2
https://dreamrs.github.io/esquisse
Other
1.77k stars 229 forks source link

Can't download equisse on a mac #88

Closed ghost closed 3 years ago

ghost commented 4 years ago

I have tried downloading the package using install.packages("esquisse") and remotes::install_github("dreamRs/esquisse") and i am getting the following error: Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/systemfonts/libs/systemfonts.so': dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/systemfonts/libs/systemfonts.so, 6): Library not loaded: /opt/X11/lib/libfreetype.6.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/systemfonts/libs/systemfonts.so Reason: image not found Calls: ... asNamespace -> loadNamespace -> library.dynam -> dyn.load Execution halted ERROR: lazy loading failed for package ‘esquisse’

AntoineSoetewey commented 4 years ago

If you install this : www.xquartz.org it should work. It worked for me at least.

sebastiz commented 4 years ago

I had this issue. It was a pain but basically you need to install some dependencies in order to allow esquiss to run on non windows environments. I did the following from the command line:

  1. libfontconfig1-dev needs to be installed with: sudo apt-get install libfontconfig1-dev
  2. Cairo needs to be installed with: sudo apt-get install libcairo2-dev a
  3. Also do sudo apt-get install libxt-dev

Then I installed esquisse via the RStudio package manager.

It would be great if esquisse could manage these dependencies as part of the package installation- Ill open this up as a separate issue