Skip to content

Commit

Permalink
fix error due to changes in glue 1.8.0
Browse files Browse the repository at this point in the history
* 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().
  • Loading branch information
jefferis committed Oct 6, 2024
1 parent 407f5a5 commit a6b57e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/cosine.R
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a6b57e6

Please sign in to comment.