Skip to content

Commit

Permalink
remove paste0() from message - no spaces by default!
Browse files Browse the repository at this point in the history
  • Loading branch information
mghoff committed Oct 30, 2023
1 parent 29ee7d2 commit 5764b8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/directory.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ eia_dir <- function(dir = NULL, tidy = TRUE, cache = TRUE, key = eia_get_key()){
if (!is.null(r$response$routes)){
r <- r$response$routes
} else {
message(paste0(
message(
"No further sub-directories to discover.\n",
"Use `eia_metadata('", dir, "')` to explore this data."
))
)
}
if(tidy && is.data.frame(r))
tibble::as_tibble(sapply(r, function(x) { gsub("( \\r\\n) *", " ", x) }))
Expand Down

0 comments on commit 5764b8e

Please sign in to comment.