install sf from GitHub source in MacOsX

In terminal. You must have MacBrew installed. If not, use:

Install macbrew via:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then

brew install proj

brew install gdal

brew install geos

sudo R

Then in R:

library("devtools")

install_github("r-spatial/sf", build_opts = c("--with-proj-include=/usr/local/include", 

                                              "--with-proj-lib=/usr/local/lib"), force=TRUE)


And...

> packageVersion("sf")

[1] ‘0.9.9’

Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

Install treemix in ubuntu 20.04

stepAIC from package MASS with AICc