viridis not working after updating to ubuntu 20.04
sahwa opened this issue · 5 comments
Viridis was working fine on my previous version of Ubuntu 19.10. I recently updated to 20.04. When I try and use some of the viridis functions (from the R terminal), such as the example here (https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html) - the command doesn't complete - the graphics device opens up but is blank. I've tried all the different examples and none of them seem to work.
I've used update.packages() to get the most recent version of viridis and updated all other packages.
Here is my sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3
Random number generation:
RNG: Mersenne-Twister
Normal: Inversion
Sample: Rounding
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8
[6] LC_MESSAGES=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] viridis_0.5.1 viridisLite_0.3.0 colorout_1.2-0 RColorBrewer_1.1-2 reshape2_1.4.4 data.table_1.12.8 ggplot2_3.3.0
[8] dplyr_0.8.99.9002
loaded via a namespace (and not attached):
[1] Rcpp_1.0.4.6 magrittr_1.5 tidyselect_1.1.0 munsell_0.5.0 colorspace_1.4-1 R6_2.4.1 rlang_0.4.6 stringr_1.4.0
[9] plyr_1.8.6 tools_3.6.3 grid_3.6.3 gtable_0.3.0 withr_2.2.0 ellipsis_0.3.0 tibble_3.0.1 lifecycle_0.2.0
[17] crayon_1.3.4 gridExtra_2.3 purrr_0.3.4 vctrs_0.3.0 glue_1.4.1 stringi_1.4.6 compiler_3.6.3 pillar_1.4.4
[25] generics_0.0.2 scales_1.1.1 pkgconfig_2.0.3
I just tried installing the dev version : devtools::install_github("sjmgarnier/viridis") and it seems to be working OK now.
Same problem here with Ubuntu 20.04
It's randomly started working fine now. Perhaps after updating to R 4.0.1?
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3
Random number generation:
RNG: Mersenne-Twister
Normal: Inversion
Sample: Rounding
locale:
[1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8
[6] LC_MESSAGES=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] viridis_0.5.1 viridisLite_0.3.0 colorout_1.2-2 data.table_1.12.8 ggplot2_3.3.2 dplyr_1.0.0
loaded via a namespace (and not attached):
[1] withr_2.2.0 crayon_1.3.4 grid_4.0.2 R6_2.4.1 lifecycle_0.2.0 gtable_0.3.0 magrittr_1.5 scales_1.1.1
[9] pillar_1.4.4 rlang_0.4.6 vctrs_0.3.1 generics_0.0.2 ellipsis_0.3.1 glue_1.4.1 munsell_0.5.0 purrr_0.3.4
[17] compiler_4.0.2 colorspace_1.4-1 pkgconfig_2.0.3 tidyselect_1.1.0 gridExtra_2.3 tibble_3.0.1
@sahwa I'm not sure what it was. I could not reproduce this on Mac. I had weird issues with other packages (e.g., 100% CPU use and functions hanging for no reason) after updating to 4.0.0. All these problems disappeared after updating to 4.0.1.
Mine is working too. I haven't updated R, but I did update Ubuntu 20.04 so I suspect that may be involved.
I'm still having issues with the stringi package and libicui18n.so.60 which seem to be connected in some bizarre way with this problem, but I really have no idea (in fact this may be more to do with RStudio Connect)