Skip to content

Instantly share code, notes, and snippets.

@tenomoto
Created July 12, 2019 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenomoto/be8046a14b736c9cfac0b25e593d187c to your computer and use it in GitHub Desktop.
Save tenomoto/be8046a14b736c9cfac0b25e593d187c to your computer and use it in GitHub Desktop.
Install R package units on Mac
  • udunits2 is installed with MacPorts
$ curl -O https://mran.microsoft.com/snapshot/2018-08-01/src/contrib/units_0.6-0.tar.gz
$ sudo R CMD INSTALL units_0.6-0.tar.gz --configure-args='--with-udunits2-include=/opt/local/include/udunits2 --with-udunits2-lib=/opt/local/lib'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment