<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Install R Package &amp;quot;sf&amp;quot; in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/install-r-package-quot-sf-quot/m-p/60111#M31591</link>
    <description>&lt;P&gt;&lt;SPAN&gt;For Unix-alikes, GDAL (&amp;gt;= 2.0.1), GEOS (&amp;gt;= 3.4.0) and Proj.4 (&amp;gt;= 4.8.0) are required.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev libsqlite0-dev&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/r-spatial/sf?tab=readme-ov-file#ubuntu" target="_self"&gt;https://github.com/r-spatial/sf?tab=readme-ov-file#ubuntu&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 03:45:52 GMT</pubDate>
    <dc:creator>feiyun0112</dc:creator>
    <dc:date>2024-02-14T03:45:52Z</dc:date>
    <item>
      <title>Install R Package "sf"</title>
      <link>https://community.databricks.com/t5/data-engineering/install-r-package-quot-sf-quot/m-p/60090#M31589</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to install the following four dependency packages in order to install &lt;SPAN&gt;"slu-openGIS/postmastr" directly from GitHub:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;units&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;sf&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;tigris&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;tidycensus&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;When attempting to install "units", I received the following configuration error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%r
install.packages("units")

  Configuration failed because libudunits2.so was not found. Try installing:
    * deb: libudunits2-dev (Debian, Ubuntu, ...)
    * rpm: udunits2-devel (Fedora, EPEL, ...)
    * brew: udunits (OSX)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I was able to install this package as follows, based on &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://community.databricks.com/t5/machine-learning/help-installing-r-package-quot-sf-quot-azure-databricks-cluster/m-p/49304#M2672" target="_self"&gt;response&lt;/A&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%r
system("sudo apt-get install libudunits2-dev -y")
install.packages("units")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;However, I receive the below error when attempting to install the "sf" package. Can someone please assist?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%r
install.packages("sf")

* installing *source* package ‘sf’ ...
** package ‘sf’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc
configure: CXX: g++ -std=gnu++17
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘sf’
* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-2f880f79-1361-4a3a-92e5-62a9d12ddcce/sf’
Installing package into ‘/local_disk0/.ephemeral_nfs/envs/rEnv-2f880f79-1361-4a3a-92e5-62a9d12ddcce’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/sf_1.0-15.tar.gz'
Content type 'application/x-gzip' length 3485450 bytes (3.3 MB)
==================================================
downloaded 3.3 MB

Warning in utils::install.packages(pkgs, ...) :
  installation of package ‘sf’ had non-zero exit status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 22:53:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-r-package-quot-sf-quot/m-p/60090#M31589</guid>
      <dc:creator>thethirtyfour</dc:creator>
      <dc:date>2024-02-13T22:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Install R Package "sf"</title>
      <link>https://community.databricks.com/t5/data-engineering/install-r-package-quot-sf-quot/m-p/60111#M31591</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For Unix-alikes, GDAL (&amp;gt;= 2.0.1), GEOS (&amp;gt;= 3.4.0) and Proj.4 (&amp;gt;= 4.8.0) are required.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev libsqlite0-dev&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/r-spatial/sf?tab=readme-ov-file#ubuntu" target="_self"&gt;https://github.com/r-spatial/sf?tab=readme-ov-file#ubuntu&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 03:45:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-r-package-quot-sf-quot/m-p/60111#M31591</guid>
      <dc:creator>feiyun0112</dc:creator>
      <dc:date>2024-02-14T03:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Install R Package "sf"</title>
      <link>https://community.databricks.com/t5/data-engineering/install-r-package-quot-sf-quot/m-p/60204#M31615</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 13:09:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/install-r-package-quot-sf-quot/m-p/60204#M31615</guid>
      <dc:creator>thethirtyfour</dc:creator>
      <dc:date>2024-02-14T13:09:23Z</dc:date>
    </item>
  </channel>
</rss>

