05-12-2022 09:35 AM
I've tried this, but it doesn't appear to be working: https://community.databricks.com/s/question/0D53f00001GHVX1CAP/unable-to-install-sf-and-rgeos-r-pack...
When I run the following after that init script, I receive an error.
library(rgdal)
Error in library(rgdal) : there is no package called ‘rgdal’
05-13-2022 11:23 PM
@Christopher Flach , Download and install a package (you only need to do this once). To use the package, invoke the library(package) command to load it into the current session.
05-13-2022 11:55 PM
@Christopher Flach , can you paste the trail when you run this in the notebook?
%sh
#!/bin/bash
#Start with update
sudo apt-get update
#######rgdal
#This installs gdal on the linux machine but not the R library (done in R script)
sudo apt-get install -y gdal-bin libgdal-dev
#To be able to install the R library, you also need libproj-dev
sudo apt-get install -y libproj-dev
##### rgeos
sudo apt install libgeos++dev
07-07-2022 09:17 AM
Hey there @Christopher Flach
Hope all is well!
Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group