Writes a managed hook block into an .Rprofile file. The block loads the
bundled GDAL DLL before package attach and prepends the custom gdalraster
library path.
Usage
add_gdal_rprofile_hook(
rprofile = "~/.Rprofile",
gdal_home = default_gdal_home(),
lib = default_gdalraster_lib(),
dry_run = FALSE
)