cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Esteemed Contributor III
Esteemed Contributor III

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

jose_gonzalez
Moderator
Moderator

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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.