cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to install R GeoLift library on Databrickts

fhte
New Contributor

Hi,

I am having problems installing the GeoLift library. I am proceeding as per the official instructions:

https://facebookincubator.github.io/GeoLift/docs/GettingStarted/InstallingR

This is what I run in the notebook:

1) I install this particular version of rlang since otherwise I get a message that this particular version is required.

install.packages("https://cran.r-project.org/src/contrib/Archive/rlang/rlang_1.0.5.tar.gz", repos = NULL, type="source")

2) I install the package as per the instructions in the documentation:

install.packages("remotes", repos='http://cran.us.r-project.org')
 
remotes::install_github("ebenmichael/augsynth")
 
remotes::install_github("facebookincubator/GeoLift")

I do not see any errors in the log output.

Yet, when I try to import the package, I am getting a package not found error:

library(GeoLift)

Screenshot 2022-09-14 at 08.59.09Does anyone know what the problem might be?

  • R
2 REPLIES 2

Debayan
Databricks Employee
Databricks Employee

Hi, Could you please restart the cluster once and check if the package is there? Also, what is the DBR used?

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Ludmila Kuncarova​,

I would like to share the following link to our docs https://docs.databricks.com/libraries/notebooks-r-libraries.html in this link you will be able to find more details on how to install R libraries.

Connect with Databricks Users in Your Area

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