Skip to content

Commit

Permalink
avoid "data" in dplyr select
Browse files Browse the repository at this point in the history
  • Loading branch information
wibeasley committed Jan 14, 2024
1 parent db2dc90 commit 723fc33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/readr-spec-aligned.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ readr_spec_aligned <- function(...) {
# pattern <- "^[ ]+`?(.+?)`? = .+?(col_.+)\\\\.+$"
pattern <- "^[ ]+`?(.+?)`? = (col_.+).*$"
# pattern <- "^[ ]+(`?)(.+?)\\1 = (col_.+)$"
. <- NULL # This is solely for the sake of avoiding the R CMD check error.
aligned <- . <- NULL # This is solely for the sake of avoiding the R CMD check error.

out <-
readr::spec_csv(...) %>%
Expand All @@ -51,7 +51,7 @@ readr_spec_aligned <- function(...) {
# Pad the left side before appending the right side.
aligned = sprintf(" %-*s = readr::%s", .data$padding, .data$left, .data$right)
) %>%
dplyr::select(.data$aligned) %>%
dplyr::select(aligned) %>%
# tibble::add_row(
# aligned = "col_types <- readr::cols_only(",
# .before = 1
Expand Down

0 comments on commit 723fc33

Please sign in to comment.