Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JTPetter committed Sep 20, 2024
1 parent 13d2f05 commit 73fd355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rareEventCharts.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ rareEventCharts <- function(jaspResults, dataset, options) {
}

# if intervals contains any negative values, throw error
if (any(intervals < 0)) {
if (any(intervals < 0, na.rm = TRUE)) {
errorPlot <- createJaspPlot(title = gettext("Rare event charts"), width = 1200, height = 500)
errorPlot$dependOn(c("variable", "stage", "dataType", "dataTypeDatesStructure", "dataTypeDatesFormatDate",
"dataTypeDatesFormatTime", "dataTypeIntervalType", "dataTypeIntervalTimeFormat"))
Expand Down

0 comments on commit 73fd355

Please sign in to comment.