...
To bypass the issue, certain configure flags need to be set within the R install.packages command that is used to install the SF package.
SF has replaced rgdal due to rgdal being deprecated.
SF is recommended going forward.
To install the SF R package under a local HPC directory the following modules would need to be loaded and the following R command to be used:
...