Skip to content

Initialize a DVS repository in the given directory

Creates the .dvs metadata folder and configures storage for versioned files.

dvs_init(
storage_path,
root_dir = NULL,
group = NULL,
metadata_folder_name = NULL,
compression = c("zstd", "none")
)
ArgumentDescription
storage_pathPath to the storage directory where file contents are kept.
root_dirRepository root directory. Defaults to the current working directory.
groupUnix group name to set on stored files for shared access. NULL uses your primary group.
metadata_folder_nameName of the metadata folder. Defaults to .dvs.
compressionCompression method for stored files. One of "zstd" (default) or "none".

A one-row tibble with the configuration written to dvs.toml: compression ("zstd" or "none"), metadata_folder_name (NA when it was not given, so the folder is .dvs), backend_path (the absolute path of the storage directory) and backend_group (NA when no group was given and your primary group could not be found).