sjmgarnier / viridis

Colorblind-Friendly Color Maps for R
http://sjmgarnier.github.io/viridis
Other
286 stars 38 forks source link

Viridis 0.5 needs ViridisLite 0.3 #52

Closed cderv closed 6 years ago

cderv commented 6 years ago

I had an error when installing Viridis because I already had ViridisLite 0.2.

Error : object ‘cividis’ is not exported by 'namespace:viridisLite'
ERROR: lazy loading failed for package ‘viridis’

This function was added in version 0.3 https://github.com/cran/viridisLite/commit/989f5cf2c3b8c1c2856df6e87ec95a06a97c4dc6

DESCRIPTION needs to be updated to depends on viridisLite (>= 0.3) not (>= 0.2). it could also be an opportunity to change depends to imports ? (see #49)

sjmgarnier commented 6 years ago

@cderv Yes, there is an error in the DESCRIPTION file. Viridis requires viridisLite 0.3 now. Update viridisLite and all should work. I will update the DESCRIPTION file for the next update.

sjmgarnier commented 6 years ago

Closed by 92624eb

cderv commented 6 years ago

Update viridisLite and all should work.

it is what I have done. I was just reporting the error. Thanks a lot !

sjmgarnier commented 6 years ago

@cderv Thanks!

zeruniverse commented 6 years ago

I still got the viridisLite error when trying install.packages('viridis')

* installing *source* package ‘viridis’ ...
** package ‘viridis’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error : object ‘cividis’ is not exported by 'namespace:viridisLite'
ERROR: lazy loading failed for package ‘viridis’
* removing ‘/home/jeffery/R/x86_64-pc-linux-gnu-library/3.4/viridis’
Warning in install.packages :
  installation of package ‘viridis’ had non-zero exit status

However, I'm able to install using this: devtools::install_github("sjmgarnier/viridis")

sjmgarnier commented 6 years ago

@zeruniverse Yes, it's an error in the CRAN package that doesn't import the right version of viridisLite. Just update viridisLite and it should work.

zeruniverse commented 6 years ago

I was just reporting it that the CRAN package does not work. I already installed using GitHub repo.