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

Viridis palette not working anymore #494

Closed
BastienFR opened this issue Feb 21, 2018 · 5 comments
Closed

Viridis palette not working anymore #494

BastienFR opened this issue Feb 21, 2018 · 5 comments

Comments

@BastienFR
Copy link

BastienFR commented Feb 21, 2018

I just updated the leaflet package from github and now I get:

library(leaflet)
pal.fit <- colorNumeric(palette = "viridis", domain = c(0,100))
Error: object ‘cividis’ is not exported by 'namespace:viridisLite'

sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2012 R2 x64 (build 9600)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] leaflet_1.1.0.9000

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.15       magrittr_1.5       munsell_0.4.3      viridisLite_0.2.0 
 [5] colorspace_1.3-2   xtable_1.8-2       R6_2.2.2           rlang_0.1.6.9003  
 [9] plyr_1.8.4         grid_3.4.3         gtable_0.2.0       htmltools_0.3.6   
[13] crosstalk_1.0.0    lazyeval_0.2.1     digest_0.6.13      tibble_1.4.2      
[17] gridExtra_2.3      shiny_1.0.5        RColorBrewer_1.1-2 ggplot2_2.2.1     
[21] htmlwidgets_1.0    mime_0.5           compiler_3.4.3     pillar_1.1.0      
[25] scales_0.5.0.9000  httpuv_1.3.5      

It worked before. Is it just me?

@kim-carter
Copy link

I had the same issue on R3.4.3 . Do an install.packages("viridisLite") first, then install.packages("viridis") . This seemed to fix for me - clue was in the namespace error

@BastienFR
Copy link
Author

Thanks @kim-carter, it works!

@jabowery
Copy link

Same problem, kim-carter's fix worked.

@lewkrr
Copy link

lewkrr commented Mar 24, 2018

Thanks kim-carter, worked like a charm.

wcornwell referenced this issue in coreytcallaghan/Oikos_oik.06158 Apr 6, 2018
…" into "ms" which is created in the traits funx script.
@schloerke schloerke mentioned this issue Jun 5, 2018
1 task
@schloerke
Copy link
Contributor

Thank you @kim-carter

Fixed in #557

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

5 participants