R/fs_backend_tools.R

Defines functions create_backend_fs

#' Create a backend for the file system
#'
#' @param backend The backend to create and because of file system, a "path" is mandatory
#' @return A new backend based on R6 class
#' @noRd
create_backend_fs <- function(backend) {
  if (!("path" %in% names(backend))) {
    cli::cli_abort("Path is mandatory for ConnectorFS")
  }

  create_backend(backend)
}

Try the connector package in your browser

Any scripts or data that you put into this service are public.

connector documentation built on June 8, 2025, 11:36 a.m.