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