R/zenbuTag.R

#' zenbuTag
#' 
#' Add metadata to data sources identified by a filter search
#' 
#' @seealso zenbuUpload
#' 
#' @importFrom magrittr "%>%"
#' @export

zenbuTag <- function (filter, key, value, mode='add', ...) {
  if (mode == "add") {
    args <- c('-mdedit', filter, mode, key, value)
    zenbuUpload (args, ...)
  } else {
    stop ("At the moment, only the 'add' mode is supported, sorry.")
  }
}
charles-plessy/zenbuWrappeR documentation built on May 13, 2019, 3:32 p.m.