Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Oct 21, 2024
1 parent ec67a5c commit 27f39f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 3 additions & 4 deletions R/location.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions R/util.R
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,3 @@ fill_missing_names <- function(x) {
}
x
}


cli_nbsp <- function(x) {
gsub(" ", "\u00a0", x, fixed = TRUE)
}

0 comments on commit 27f39f1

Please sign in to comment.