Skip to content

Commit

Permalink
Reduce cyclomatic complexity get_pd_cube.R
Browse files Browse the repository at this point in the history
Co-authored-by: Ward Langeraert <60934857+wlangera@users.noreply.github.com>
Signed-off-by: LBreugelmans <117663331+LBreugelmans@users.noreply.github.com>
  • Loading branch information
LBreugelmans and wlangera authored Dec 9, 2024
1 parent e7aa9ff commit c035d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_pd_cube.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ get_pd_cube <- function(mcube, tree, timegroup = NULL, metric = "faith") {

# Check that selected metric(s) are correctly specified
available_metrics <- list("faith")
if (!metric %in% available_metrics){stop("The selected PD metric is not available.")}
stopifnot("The selected PD metric is not available." = metric %in% available_metrics)

# Function logic begins here
# Aggregate cube
Expand Down

0 comments on commit c035d8e

Please sign in to comment.