Skip to content

Commit b0924cd

Browse files
committed
Fix viridis
1 parent 8b4daac commit b0924cd

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Suggests:
3838
rnaturalearthhires,
3939
rredlist,
4040
testthat (>= 3.0.0),
41-
viridis,
4241
wdpar
4342
VignetteBuilder: knitr
4443
Depends:
@@ -65,7 +64,8 @@ Imports:
6564
tidyr,
6665
tidyselect,
6766
units,
68-
vctrs
67+
vctrs,
68+
viridis
6969
Remotes:
7070
github::emlab-ucsb/oceandatr,
7171
github::emlab-ucsb/spatialgridr,

R/splnr_featureRep.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,6 @@ splnr_plot_featureRep <- function(df,
499499
}
500500

501501

502-
# Check if 'viridis' package is installed. If not, stop with an informative error.
503-
if (requireNamespace("viridis", quietly = TRUE) == FALSE){
504-
stop("To run splnr_plot_featureRep you will need to install the 'viridis' package: install.packages('viridis').")
505-
}
506-
507-
508502
if (renameFeatures == TRUE) {
509503
# No assertthat::assert_that(is.data.frame(namesToReplace)) needed here,
510504
# as it's covered by the initial assertthat block.

0 commit comments

Comments
 (0)