Skip to content

Commit

Permalink
Report number of bed files available when creating singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
jwokaty committed Dec 3, 2024
1 parent 371c388 commit 5ca803f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: bedbaser
Title: A BEDbase client
Version: 0.99.11
Version: 0.99.12
Authors@R: c(
person(
given = "Jen",
Expand Down
7 changes: 5 additions & 2 deletions R/bedbaser.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
#' @return BEDbase object
#'
#' @examples
#' BEDbase()
#' BEDbase(cache_path = tempdir())
#'
#' @export
BEDbase <- function(cache_path) {
if (missing(cache_path)) {
cache_path <- tools::R_user_dir("bedbaser", which = "cache")
}
suppressWarnings(
api <- suppressWarnings(
.BEDbase(
cache = BiocFileCache::BiocFileCache(cache_path),
AnVIL::Service(
Expand All @@ -61,6 +61,9 @@ BEDbase <- function(cache_path) {
)
)
)
info <- httr::content(api$list_beds_v1_bed_list_get(limit = 0, offset = 0))
message(paste(info$count, "bed files available."))
api
}

#' @rdname BEDbase
Expand Down
2 changes: 1 addition & 1 deletion man/BEDbase.Rd

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

2 changes: 1 addition & 1 deletion man/bb_save.Rd

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

0 comments on commit 5ca803f

Please sign in to comment.