# NOT RUN {
#get cropMaskMethod
pkgOptions("cropMaskMethod") #returns default "rast"
#set cropMaskMethod to "gdal"
pkgOptions(cropMaskMethod="gdal") #sets to "gdal"
#check cropMaskMethod has changed
pkgOptions("cropMaskMethod") #returns "gdal"
#reset pkgOptions
pkgReset()
#check cropMaskMethod has been reset
pkgOptions("cropMaskMethod") #returns default "rast"
# }
Run the code above in your browser using DataLab