Skip to content

Commit

Permalink
Merge pull request nucleic-acid#56 from hadley/dev-tidyselect
Browse files Browse the repository at this point in the history
Fixes for dev tidyselect
  • Loading branch information
nucleic-acid committed Sep 24, 2022
2 parents b44163e + 55fbe16 commit 97d744f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/drop_name.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ drop_name <- function(bib, cite_key,
dplyr::mutate(JOURNAL = ifelse(is.na(.data$JOURNAL), .data$JOURNALTITLE, .data$JOURNAL))
} else {
bib_data <- bib_data %>%
dplyr::rename(JOURNAL = .data$JOURNALTITLE)
dplyr::rename(JOURNAL = "JOURNALTITLE")
}
# message("One or more references had BibLaTeX field 'JOURNALTITLE' and were transformed to 'JOURNAL'.")
}
Expand Down Expand Up @@ -252,7 +252,7 @@ drop_name <- function(bib, cite_key,
# the remaining URLs will be created below, after condensing the authors lists

# select required columns only and add missing BIBTEXKEYs:
clean_bib <- dplyr::select(bib_data, .data$YEAR, .data$AUTHOR, .data$JOURNAL, .data$TITLE, .data$BIBTEXKEY, .data$QR) %>%
clean_bib <- dplyr::select(bib_data, "YEAR", "AUTHOR", "JOURNAL", "TITLE", "BIBTEXKEY", "QR") %>%
dplyr::mutate(
`BIBTEXKEY` = ifelse(
is.na(.data$BIBTEXKEY),
Expand Down

0 comments on commit 97d744f

Please sign in to comment.