Skip to content

Commit

Permalink
Merge pull request #3 from markfairbanks/tidytable-enframe
Browse files Browse the repository at this point in the history
Use `tidytable::enframe()`
  • Loading branch information
zoushucai authored Feb 21, 2024
2 parents 47c5ec2 + 5385074 commit 1a1f876
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/journalabbr-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
#' @importFrom stringr str_squish
#' @importFrom stringr str_to_upper
#' @importFrom tidytable as_tidytable
#' @importFrom tidytable enframe.
#' @importFrom tidytable enframe
## usethis namespace: end
NULL
2 changes: 1 addition & 1 deletion R/read_bib2dt.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ read_bib2dt <- function(file) {
return(bib[x:y])
}, x = from, y = to - 1, SIMPLIFY = FALSE)

dt <- tidytable::enframe.(itemslist, name = "fz_id", value = "fz_rawchar")
dt <- tidytable::enframe(itemslist, name = "fz_id", value = "fz_rawchar")

dt$fz_char <- NA
dt$fz_char <- map(dt$fz_rawchar, function(x) {
Expand Down
2 changes: 1 addition & 1 deletion devtools_history.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use_import_from("purrr",'map2')
use_import_from("purrr",'map_chr')

use_import_from("tidytable",'as_tidytable')
use_import_from("tidytable",'enframe.')
use_import_from("tidytable",'enframe')

use_import_from("data.table",'fread')
use_import_from("data.table",'as.data.table')
Expand Down

0 comments on commit 1a1f876

Please sign in to comment.