Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Azure by (5.8k points)

I tried to import the causalImpact library from GitHub using "devtools" in AzureML studio for one of my projects. code used was:

library(devtools)

devtools::install_github("google/CausalImpact")

Unfortunately, Azure doesn't support this. So tried importing it following the procedure in this blog. It is giving multiple errors on the name of dependent packages of casualImpact(i.e. BOOM, BH, etc.). Can anyone help me out in importing this package on Azure?

This is the R-script I used following the link given above:

library(assertthat)

library(dplyr)

library(hflights)

library(Lahman)

library(magrittr)

library(LGPL)

install.packages("src/BH_1.55.0-3.zip", lib = ".", repos = NULL, verbose = TRUE)

success <- library("BH ", lib.loc=".", logical.return = TRUE, verbose=TRUE)

library(BH)

install.packages("src/Boom_0.1.zip", lib = ".", repos = NULL, verbose = TRUE)

success <- library("Boom ", lib.loc=".", logical.return = TRUE, verbose=TRUE)

install.packages("src/BoomSpikeSlab.zip", lib = ".", repos = NULL, verbose = TRUE)

success <- library("BoomSpikeSlab", lib.loc=".", logical.return = TRUE, verbose=TRUE)

install.packages("src/bsts_0.5.1.zip", lib = ".", repos = NULL, verbose = TRUE)

success <- library("bsts", lib.loc=".", logical.return = TRUE, verbose=TRUE)

library(zoo)

library(xts)

install.packages("src/CausalImpact.zip", lib = ".", repos = NULL, verbose = TRUE)

success <- library("CausalImpact", lib.loc=".", logical.return = TRUE, verbose=TRUE)

1 Answer

0 votes
by (9.6k points)

1. The best way would be to install the package in your local system using R commands. 

2. Create a zip file and upload it as data set.

3. Add Execute R script to the canvas and write a script:

install.packages("src/pack/dummies.zip", lib = ".", repos = NULL, verbose = TRUE)
library(dummies, lib.loc=".", verbose=TRUE)

Browse Categories

...