A Install gdal and geos
A.1 on Windows
- Step 1: Download osgeo4w
- Run the installer
- Select Express Install, and Next.
- Select the “GDAL” package and next
- The selected packages and their required sub packages will be downloaded and installed automatically.
- modify your
.Rprofile
library(usethis)
edit_r_profile()
- You could modify your .Rprofile.
Easiest way is using package “usethis”:
library(usethis) edit_r_profile() This will open your current .Rprofile. You can then add a line to the file and save:
::gdal_setInstallation("C:\\OSGeo4W64\\bin") gdalUtils
- Step 2: install rgeos with
install.packages("rgeos)
- Step 3: install rgeos with
install.packages("rgdal)
- Step 4: install sf with
install.packages("sf")
OR:
- Download the latest and install GDAL