Advanced Research Computing
Virtual Visit Request info Apply
MENUMENU
  • About
    • Overview
    • Details
    • Policies
    • FAQs
    • Our Team
    • Testimonials
  • Services
    • Pricing
    • Office Hours
    • Service Requests
      • Request an Account
      • Request Storage
      • Request Classroom Access
      • Request Software
    • Data Portal »
  • Resources
    • Documentation »
    • Workshops
    • Web Apps
      • Doppler (NAU only)
      • Metrics (NAU only)
      • OnDemand
      • XDMod
      • XDMoD Reports
  • Research
    • Current Projects
    • Publications
  • Collaboration
    • CRN
    • External
  • IN
  • ARC
  • Rgdal Install

Installing Rgdal

What follows are instructions to install rgdal for use within R 3.6.3, and gdal 3.0.4. The following commands will need to be run on one of our login nodes:

# 1. start with a clean slate!
module purge

# 2. load the dependent modules for rgdal
module load R/3.6.3 proj/6.1.0 gdal/3.0.4

# 3. setup the PROJ environment
export PKG_CONFIG_PATH=/packages/PROJ/6.1.0/lib/pkgconfig

# 4. start R
R

# 5. Install the rgdal package
install.packages(c('rgdal'),repos = "http://cran.case.edu", configure.args=c("--with-proj-include=/packages/PROJ/6.1.0/include","--with-proj-lib=/packages/PROJ/6.1.0/lib"))

# 6. UPDATE: if previous step results in an error with
# "proj_create_crs_to_crs_from_pj" then you will need to
# force the installer to use an older version, by doing
# the following:
packageurl <- "https://cran.r-project.org/src/contrib/Archive/rgdal/rgdal_1.4-8.tar.gz" install.packages(packageurl, repos=NULL, type="source")

If you have any questions, please email us at hpcsupport@nau.edu.