#' List Assets in a Databrary Volume.
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' This function has been deprecated in favor of `list_volume_assets()`.
#'
#' @param vol_id Target volume number.
#' @param vb A boolean value.
#' @returns A data frame with information about all assets in a volume.
#'
#' @examples
#' \donttest{
#' list_assets_in_volume() # Assets in volume 2
#' #' }
#'
#' @export
list_assets_in_volume <- function(vol_id = 2, vb = FALSE) {
# Check parameters
assertthat::assert_that(length(vol_id) == 1)
assertthat::assert_that(is.numeric(vol_id))
assertthat::assert_that(vol_id >= 1)
assertthat::assert_that(length(vb) == 1)
assertthat::assert_that(is.logical(vb))
sl <- list_sessions(vol_id = vol_id, vb = vb)
if (!is.null(sl)) {
if (vb)
message(" Session data exists.")
s_ids <- sl$session_id
if (length(s_ids) >= 1) {
a <- lapply(s_ids, list_assets_in_session, vb = vb)
a <- plyr::rbind.fill(a)
return(a)
} else {
NULL
}
} else {
if (vb)
message(paste0(" Session list for volume ", vol_id, " unavailable."))
return(NULL)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.