{"id":46,"date":"2011-10-17T04:58:03","date_gmt":"2011-10-17T04:58:03","guid":{"rendered":"http:\/\/blog.fellstat.com\/?p=46"},"modified":"2011-10-17T04:58:03","modified_gmt":"2011-10-17T04:58:03","slug":"installing-rgdal-on-a-mac","status":"publish","type":"post","link":"https:\/\/blog.fellstat.com\/?p=46","title":{"rendered":"Installing rgdal on a Mac"},"content":{"rendered":"<div>So, installing rgdal, which is an\u00a0important\u00a0R package for spatial data analysis can be a bit of a pain on the mac. Here are two ways to make it happen.<\/div>\n<p>&nbsp;<\/p>\n<div><strong>The Easy Way<\/strong><\/div>\n<ol>\n<li>In R run:\u00a0install.packages(&#8216;rgdal&#8217;,repos=&#8221;<a href=\"http:\/\/www.stats.ox.ac.uk\/pub\/RWin\">http:\/\/www.stats.ox.ac.uk\/pub\/RWin<\/a>&#8220;)<\/li>\n<\/ol>\n<div><strong>The Hard Way<\/strong><\/div>\n<ol>\n<li>Download and install\u00a0<a href=\"http:\/\/www.kyngchaos.com\/files\/software\/frameworks\/GDAL_Complete-1.8.dmg\">GDAL 1.8 Complete<\/a>\u00a0and\u00a0\u00a0<a href=\"http:\/\/www.kyngchaos.com\/files\/software\/frameworks\/PROJ_Framework-4.7.0-2.dmg\">PROJ framework v4.7.0-2<\/a>\u00a0\u00a0 from:\u00a0<a href=\"http:\/\/www.kyngchaos.com\/software\/frameworks%29\">http:\/\/www.kyngchaos.com\/software\/frameworks%29<\/a><\/li>\n<li>Download the latest version of rgdal from <a href=\"http:\/\/cran.r-project.org\/web\/packages\/rgdal\/index.html\">CRAN<\/a>. Currently 0.7-1<\/li>\n<li>Run Terminal.app, and in the same directory as rgdal_0.7-1.tar.gz run:<\/li>\n<\/ol>\n<div>\n<p>&nbsp;<\/p>\n<p><code>R CMD INSTALL --configure-args='--with-gdal-config=\/Library\/Frameworks\/GDAL.framework\/Programs\/gdal-config --with-proj-include=\/Library\/Frameworks\/PROJ.framework\/Headers --with-proj-lib=\/Library\/Frameworks\/PROJ.framework\/unix\/lib' rgdal_0.7-1.tar.gz<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>So, installing rgdal, which is an\u00a0important\u00a0R package for spatial data analysis can be a bit of a pain on the mac. Here are two ways to make it happen. &nbsp; The Easy Way In R run:\u00a0install.packages(&#8216;rgdal&#8217;,repos=&#8221;http:\/\/www.stats.ox.ac.uk\/pub\/RWin&#8220;) The Hard Way Download and install\u00a0GDAL 1.8 Complete\u00a0and\u00a0\u00a0PROJ framework v4.7.0-2\u00a0\u00a0 from:\u00a0http:\/\/www.kyngchaos.com\/software\/frameworks%29 Download the latest version of rgdal from CRAN. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[13,14,15],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-r","category-uncategorized","tag-mac","tag-r","tag-rgdal"],"_links":{"self":[{"href":"https:\/\/blog.fellstat.com\/index.php?rest_route=\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fellstat.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fellstat.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fellstat.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fellstat.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":0,"href":"https:\/\/blog.fellstat.com\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fellstat.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fellstat.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fellstat.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}