Skip to content

Commit

Permalink
use getExportedValue() to get lazydata
Browse files Browse the repository at this point in the history
  • Loading branch information
yjunechoe committed Nov 18, 2024
1 parent 6a806c2 commit cfeafae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/oa2bibliometrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ oa2bibliometrix <- function(df) {
return()
}

utils::data("countrycode", envir = environment(), package = "openalexR")
countrycode <- getExportedValue("openalexR", "countrycode")
countrycode$Country <- as.character(countrycode$Country)

# Authors
Expand Down
3 changes: 1 addition & 2 deletions R/openalexR-coverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
#' oa_entities()
#' head(get_coverage(entity = "works"))
get_coverage <- function(entity = NULL) {
utils::data("oa2df_coverage", envir = environment(), package = "openalexR")
oa2df_coverage <- oa2df_coverage
oa2df_coverage <- getExportedValue("openalexR", "oa2df_coverage")

if (!is.null(entity)) {
entity <- match.arg(entity, oa_entities())
Expand Down

0 comments on commit cfeafae

Please sign in to comment.