trevorld / ggpattern

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

[BUG] DLL 'colorspace' not found: maybe not installed for this architecture? #66

Closed IanWorthington closed 2 years ago

IanWorthington commented 2 years ago

Installing, received:

Error: package or namespace load failed for 'ggpattern' in library.dynam(lib, package, package.lib): DLL 'colorspace' not found: maybe not installed for this architecture? Error: loading failed Execution halted *** arch - x64 ERROR: loading failed for 'i386'

Please enter here a high-level description of your bug.

Minimal, reproducible example

Please enter here a minimal, reproducible example of your bug. Thanks!

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

Session info

Please enter here the results of xfun::session_info("ggpattern")

> xfun::session_info("ggpattern")
Error in packageVersion(p) : there is no package called ‘ggpattern’
trevorld commented 2 years ago

{colorspace} is a dependency (of a dependency) of {ggplot2} which is a dependency of {ggpattern}. You need to install it.

From our README:

An installation error is highly unlikely to be an issue with {ggpattern} itself. Please don't open up a Github Issues unless you are sure it is an issue with {ggpattern} itself. If you have an error installing the package we strongly suggest that you look at all your error messages more closely to figure out which package dependency is failing to install and why. See https://thomasadventure.blog/posts/install-r-packages/ for more info on installing R packages.

IanWorthington commented 2 years ago

Hi Trevor. Thanks for this. I did check those notes, but they weren't helpful.

I had assumed you'd like to know that there was a dependency missing.

trevorld commented 2 years ago

remotes::install_github("coolbutuseless/ggpattern") should automatically install all dependencies including dependencies of dependencies like {colorspace}. Linux users may need to manually install C++ headers but CRAN will pre-compile packages for Windows. Your example isn't a generally reproducible problem. I don't know went wrong on your machine in this instance.