Skip to content

Commit

Permalink
tweak some egs, fix a bug in cr_journals for facet parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed May 3, 2019
1 parent e4e1e34 commit cb87db0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions R/cr_journals.r
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
#' cr_journals(c('1932-6203', '0028-0836'), works = TRUE, cursor = "*",
#' cursor_max = 300, limit = 100)
#' ## with optional progress bar
#' cr_journals(issn='1932-6203', works = TRUE, cursor = "*", cursor_max = 500,
#' limit = 100, .progress = TRUE)
#' cr_journals(issn='1932-6203', works = TRUE, cursor = "*", cursor_max = 90,
#' limit = 30, .progress = TRUE)
#'
#' # fails, if you want works, you must give an ISSN
#' # cr_journals(query = "ecology", filter=c(has_full_text = TRUE),
Expand Down Expand Up @@ -137,7 +137,7 @@
} else {
stats::setNames(facets,
vapply(res2, function(z) {
if ("issn" %in% names(z)) z[['issn']][[1]] else z$items[[1]]$issn[[1]]
if ("issn" %in% names(z)) z[['issn']][[1]] else z$items[[1]]$issn[[1]]$value
}, "")
)
}
Expand Down
1 change: 0 additions & 1 deletion R/id_converter.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#' # pmcid to doi/pmid
#' id_converter("PMC2883744", "pmcid")
#' id_converter("PMC2883744")
#' id_converter("PMC2883744", "doi")
#'
#' # manuscript id
#' id_converter("NIHMS311352")
Expand Down
4 changes: 2 additions & 2 deletions man/cr_journals.Rd

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

1 change: 0 additions & 1 deletion man/id_converter.Rd

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

0 comments on commit cb87db0

Please sign in to comment.