diff --git a/DESCRIPTION b/DESCRIPTION index 406592e..f549d3e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -38,7 +38,6 @@ Suggests: rnaturalearthhires, rredlist, testthat (>= 3.0.0), - viridis, wdpar VignetteBuilder: knitr Depends: @@ -65,7 +64,8 @@ Imports: tidyr, tidyselect, units, - vctrs + vctrs, + viridis Remotes: github::emlab-ucsb/oceandatr, github::emlab-ucsb/spatialgridr, diff --git a/R/splnr_featureRep.R b/R/splnr_featureRep.R index 291024e..f298c5a 100644 --- a/R/splnr_featureRep.R +++ b/R/splnr_featureRep.R @@ -499,12 +499,6 @@ splnr_plot_featureRep <- function(df, } - # Check if 'viridis' package is installed. If not, stop with an informative error. - if (requireNamespace("viridis", quietly = TRUE) == FALSE){ - stop("To run splnr_plot_featureRep you will need to install the 'viridis' package: install.packages('viridis').") - } - - if (renameFeatures == TRUE) { # No assertthat::assert_that(is.data.frame(namesToReplace)) needed here, # as it's covered by the initial assertthat block.