Get the BIDS version of a dataset
Source:R/all_generic.R, R/bids.R, R/dataset_description.R
bids_version.RdGet the BIDS version of a dataset
Usage
bids_version(x, ...)
# S3 method for class 'bids_project'
bids_version(x, ...)
# S3 method for class 'mock_bids_project'
bids_version(x, ...)
# S3 method for class 'bids_dataset_description'
bids_version(x, ...)Examples
# \donttest{
tryCatch({
ds001_path <- get_example_bids_dataset("ds001")
desc <- read_dataset_description(ds001_path)
bids_version(desc)
unlink(ds001_path, recursive = TRUE)
}, error = function(e) message("Example requires internet: ", e$message))
# }