# NOT RUN {
fsbrain::download_optional_data();
subjects_dir = fsbrain::get_optional_data_filepath("subjects_dir");
region_value_list = list("bankssts"=0.9, "precuneus"=0.7);
write.region.values(subjects_dir, 'subject1', 'lh', 'aparc',
region_value_list, 'pvalues.mgz', do_write_file = FALSE);
# }
# NOT RUN {
# }
Run the code above in your browser using DataCamp Workspace