# Load an example brain mask
mask <- read_vol(system.file("extdata", "global_mask_v4.nii", package="neuroim2"))
# Generate a bootstrap searchlight iterator with a radius of 6 voxels
searchlights <- bootstrap_searchlight(mask, radius = 6)
Run the code above in your browser using DataLab