diff --git a/R/location.R b/R/location.R index ad1b0bd6..c5544fc6 100644 --- a/R/location.R +++ b/R/location.R @@ -357,11 +357,10 @@ orderly_location_pull_packet <- function(expr, } if (length(ids) == 0 || (length(ids) == 1 && is.na(ids))) { - if (pull_metadata) { - pull_arg <- cli_nbsp("pull_metadata = TRUE") + if (!pull_metadata) { hint <- c(i = paste("Did you forget to pull metadata? You can do this", - "by using the argument '{pull_arg}' in the call", - "to 'orderly_location_pull_packet()', or", + "by using the argument {.code pull_metadata = TRUE}", + "in the call to 'orderly_location_pull_packet()', or", "by running 'orderly_location_pull_metadata()'")) } else { hint <- NULL diff --git a/R/util.R b/R/util.R index 486bec8f..85753bdd 100644 --- a/R/util.R +++ b/R/util.R @@ -714,8 +714,3 @@ fill_missing_names <- function(x) { } x } - - -cli_nbsp <- function(x) { - gsub(" ", "\u00a0", x, fixed = TRUE) -}