Skip to contents

Get 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, ...)

Arguments

x

A bids_dataset_description or bids_project object.

...

Additional arguments passed to methods.

Value

A character scalar BIDS version string, or NA_character_.

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))
# }