Skip to content

Commit 985f88f

Browse files
committed
Bump to development version.
* R/sampling_distance.R: Fix bug with a single configuration in one iteration.
1 parent 1365ff1 commit 985f88f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: iraceplot
22
Title: Plots for Visualizing the Data Produced by the 'irace' Package
3-
Version: 2.0.0
3+
Version: 2.0.0.9999
44
Authors@R: c(person("Manuel", "López-Ibáñez", role = c("aut", "cre"),
55
email = "manuel.lopez-ibanez@manchester.ac.uk",
66
comment = c(ORCID = "0000-0001-9974-1295")),

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# iraceplot (development version)
2+
3+
* Fix bug in `sampling_distance()` with a single configuration in one iteration.
4+
15
# iraceplot 2.0
26

37
* Requires R >= 4.0 and irace >= 4.0.

R/sampling_distance.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ sampling_distance <- function(irace_results, type = c("boxplot", "line", "both")
5353
for (i in seq_len(niterations)) {
5454
ids <- unique(irace_results$state$experiment_log[ iteration %in% i, configuration])
5555
iterations <- c(iterations, i)
56-
5756
dd <- all.distance[ids,ids]
58-
distance <- dd[upper.tri(dd)]
57+
distance <- if (length(dd) == 1L) dd else dd[upper.tri(dd)]
5958
it <- i
6059
datos <- data.frame(it, distance)
6160
tabla_box <- rbind(tabla_box, datos)

0 commit comments

Comments
 (0)