Creates a small dataset in a temporary directory using the built-in
example database. This function has side effects: it calls
gdb.init_examples which resets the working database, and
it creates then deletes temporary tracks ('example_dataset_track') and
intervals ('example_dataset_intervals') in that database.
gdataset.example_path()Path to the created dataset directory (in a temporary location)
This function performs the following steps:
Calls gdb.init_examples() to set the working database
Removes any existing 'example_dataset_track' and 'example_dataset_intervals'
Creates temporary track and intervals in the example database
Saves them to a new dataset in a temporary directory
Removes the temporary track and intervals from the example database
This is primarily intended for use in examples and tests. Users should be aware that calling this function will change their current working database.
dataset_path <- gdataset.example_path()
gdataset.load(dataset_path)
gdataset.unload(dataset_path)