Skip to content

Commit

Permalink
Merge pull request #325 from DOI-USGS/v1.3.2
Browse files Browse the repository at this point in the history
V1.3.2
  • Loading branch information
dblodgett-usgs authored May 28, 2024
2 parents d0337f9 + e7314f8 commit a54f896
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 19 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: sbtools
Title: USGS ScienceBase Tools
Maintainer: David Blodgett <dblodgett@usgs.gov>
Version: 1.3.1
Version: 1.3.2
Authors@R: c(person("David", "Blodgett", role=c("cre"),
email = "dblodgett@usgs.gov"),
person("Luke", "Winslow", role = c("aut"),
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# version 1.3.2

- `item_rm_files()` now uses cloud end point. #315
- `initialize_sciencebase_session()` has less warnings. #319 and #323
- `initialize_sciencebase_session()` works at the terminal now. #317
- `initialize_sciencebase_session()` caching works better. #318
- improve test coverage #316

# version 1.3.1

Improved handling of cached token.
Expand Down
2 changes: 1 addition & 1 deletion R/identifier_exists.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @return Logical, \code{TRUE} or \code{FALSE}
#' @examples \donttest{
#' # identifier exists
#' identifier_exists(sb_id = "4f4e4b24e4b07f02db6aea14")
#' identifier_exists(sb_id = "57976a0ce4b021cadec97890")
#'
#' # identifier does not exist
#' identifier_exists(sb_id = "aaaaaaakkkkkkkbbbbbb")
Expand Down
4 changes: 2 additions & 2 deletions R/item_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ get_item <- function(id, ...) {
#'
#' @export
#' @examples \donttest{
#' item_get_parent("4f4e4b24e4b07f02db6aea14")
#' item_get_parent("57976a0ce4b021cadec97890")
#'
#' item_get_parent(item_get("4f4e4b24e4b07f02db6aea14"))
#' item_get_parent(item_get("57976a0ce4b021cadec97890"))
#' }
item_get_parent = function(sb_id, ...) {
res <- as.sbitem(sb_id, ...)
Expand Down
4 changes: 2 additions & 2 deletions R/item_list_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
#' @examples \dontrun{
#'
#' #regular files
#' item_list_files("4f4e4b24e4b07f02db6aea14")
#' item_list_files("57976a0ce4b021cadec97890")
#'
#' # files in facets
#' item_list_files("5f6a285d82ce38aaa244912e")
#' item_list_files("5ebe92af82ce476925e44b8f")
#'
#' # list files recursively
#' ## create item
Expand Down
8 changes: 4 additions & 4 deletions R/sb_item.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
#' the method for character class inputs
#' @examples \donttest{
#' # Single item from item_get()
#' item_get("4f4e4b24e4b07f02db6aea14")
#' item_get("57976a0ce4b021cadec97890")
#'
#' # Get many w/ e.g., an lapply() call
#' library("httr")
#' res <- query_items(list(s = "Search", q = "water", format = "json"))
#' if(res$status != 404) {
#' if(res$status == 200) {
#' ids <- vapply(httr::content(res)$items, "[[", "", "id")
#' (out <- lapply(ids[1:3], item_get))
#' }
#' # create item class from only an item ID
#' as.sbitem("4f4e4b24e4b07f02db6aea14")
#' as.sbitem("5ebe92af82ce476925e44b8f")
#'
#' # sbitem gives back itself
#' (x <- as.sbitem("4f4e4b24e4b07f02db6aea14"))
#' (x <- as.sbitem("5ebe92af82ce476925e44b8f"))
#' as.sbitem(x)
#' }

Expand Down
2 changes: 1 addition & 1 deletion man/identifier_exists.Rd

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

4 changes: 2 additions & 2 deletions man/item_get_parent.Rd

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

4 changes: 2 additions & 2 deletions man/item_list_files.Rd

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

8 changes: 4 additions & 4 deletions man/sbitem.Rd

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

0 comments on commit a54f896

Please sign in to comment.