Skip to content

Commit 63cfdd2

Browse files
authored
Merge pull request #57 from romainfrancois/workaround_crossing_issue
workaround for dplyr 1.0.8
2 parents 8fff437 + 428ba33 commit 63cfdd2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

R/plot_onedim.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,9 @@ plot_onedim <- dynutils::inherit_default_params(
230230

231231
#' @importFrom dplyr near
232232
make_connection_plotdata <- function(linearised) {
233-
connections <- crossing(
234-
linearised$milestone_network %>% select(.data$from, x_from = .data$cumstart),
235-
linearised$milestone_network %>% select(.data$to, x_to = .data$cumend)
236-
) %>%
233+
from <- linearised$milestone_network %>% select(.data$from, x_from = .data$cumstart)
234+
to <- linearised$milestone_network %>% select(.data$to, x_to = .data$cumend)
235+
connections <- crossing(from, to) %>%
237236
filter(
238237
.data$from == .data$to,
239238
.data$x_from != .data$x_to

0 commit comments

Comments
 (0)