From 2ce05c6bd64c9056b4cf9bae01fe7549a3a852f8 Mon Sep 17 00:00:00 2001 From: Danielle Callan Date: Fri, 26 Jan 2024 15:21:54 -0500 Subject: [PATCH] fix bug in link validation --- R/class-Link.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/class-Link.R b/R/class-Link.R index 0ba6b64..425dc8b 100644 --- a/R/class-Link.R +++ b/R/class-Link.R @@ -10,7 +10,7 @@ check_link <- function(object) { } #dont allow self-links for now - if (object@source@id == object@target@id) { + if (id(object@source) == id(object@target)) { errors <- c(errors, "Links cannot be self-links. They must have a different source and target.") }