Skip to content

Commit

Permalink
Add control on clustersRes before setting areas to "all"
Browse files Browse the repository at this point in the history
  • Loading branch information
kemihak committed Nov 13, 2024
1 parent 269d511 commit 379b196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/readAntares.R
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ readAntaresAreas <- function(areas, links = TRUE, clusters = TRUE, clustersRes =
if ("mcYears" %in% unlist(select) & is.null(mcYears)) mcYears <- "all"

# If all arguments are NULL, import all areas
if (is.null(areas) & is.null(links) & is.null(clusters) & is.null(districts) & is.null(clustersST)) {
if (is.null(areas) & is.null(links) & is.null(clusters) & is.null(districts) & is.null(clustersRes) & is.null(clustersST)) {
areas <- "all"
}

Expand Down

0 comments on commit 379b196

Please sign in to comment.