Skip to content

Commit

Permalink
Merge pull request #4 from labouz/versionbump
Browse files Browse the repository at this point in the history
update version
  • Loading branch information
labouz authored Dec 17, 2021
2 parents 8874f4a + 54d7f99 commit 404d9c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: PMCfetchR
Title: Extract Full-Text Articles from NIH NCBI's PMC Articles Dataset in AWS Cloud
Version: 0.0.0.9000
Version: 1.0.0
Authors@R:
person("Layla", "Bouzoubaa", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-6616-0950"))
Expand All @@ -23,7 +23,8 @@ Imports:
aws.s3,
magrittr,
rlang,
xml2
xml2,
stringr
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ importFrom(jsonlite,fromJSON)
importFrom(magrittr,"%>%")
importFrom(purrr,map_df)
importFrom(rlang,arg_match)
importFrom(stringr,str_extract)
importFrom(stringr,str_remove)
importFrom(tibble,tibble)
importFrom(tidypmc,pmc_text)
importFrom(utils,capture.output)
Expand Down
4 changes: 2 additions & 2 deletions R/fetch_fulltext.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#' @importFrom magrittr %>%
#' @importFrom rlang arg_match
#' @importFrom xml2 read_xml
#' @importFrom stringr str_extract
#' @importFrom stringr str_extract str_remove
#' @export
#'
#' @examples
Expand Down Expand Up @@ -72,7 +72,7 @@ fetch_fulltext <- function(id, vars = c("all", "section", "paragraph", "sentence
# FAILSAFE FUNCTION THAT GETS CALLED IF NOTHING IS RETURNED FROM AWS------------
fetch_paper_eutility <- function (pmcid) {
# strip 'PMC' from PMCID
id <- str_remove(pmcid, "PMC")
id <- stringr::str_remove(pmcid, "PMC")
api <- paste0("https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pmc&id=",id)

response <- xml2::read_xml(api)
Expand Down
4 changes: 2 additions & 2 deletions man/fetch_fulltext.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 404d9c8

Please sign in to comment.