From a6b57e6437069f5f1dc39578f4aca520917f9a31 Mon Sep 17 00:00:00 2001 From: Gregory Jefferis Date: Sun, 6 Oct 2024 19:16:50 +0100 Subject: [PATCH] fix error due to changes in glue 1.8.0 * as the release notes say: The .envir argument to glue() and glue_data() really must be an environment now, as documented. Previously a list-ish object worked in some cases (by accident, not really by design). When you need to lookup values in a list-ish object, use glue_data(.x =) (#308, #317). Ditto for glue_sql() and glue_data_sql(). --- R/cosine.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/cosine.R b/R/cosine.R index e9911c0..8903117 100644 --- a/R/cosine.R +++ b/R/cosine.R @@ -182,7 +182,7 @@ neuprint_cosine_plot <- function(x, partners=c('inputs', 'outputs'), threshold=5 if(is.character(labRow) && length(labRow)==1 && any(grepl("\\{", labRow))) { ci=neuprintr::neuprint_get_meta(rownames(x), conn=conn) - labRow <- glue::glue(labRow, .envir = ci) + labRow <- glue::glue_data(labRow, .x = ci) } if(interactive) {