Note: if upon attempting to load the rgdal library in R using you receive an error of the form “Error: package ‘rgdal’ is not installed for 'arch=x86_64'
”, this means that rgdal was installed for a different architecture of R (32-bit instead of 64-bit in this case). To install rgdal explicitly for the 64-bit architecture, you can modify Step 5 above by adding in the --arch x86_64
option: