R installation of packaging

AnastasiiaSolom
Level 1
R installation of packaging
Hello,

I am currently trying to use the code from R to putit in DataIku, but its not working as in my code I am using specifick package :qdap

As the code i put:

install.packages("qdap",repos = "http://cran.us.r-project.org")
library(qdap)
u <- mgsub(words,trans,m)

And I have the error :Job failed : Error in R process: simpleError : there is no package called โ€˜qdapโ€™

How can I solvethis problem?

Thank you in advance!
0 Kudos
3 Replies
Alex_Combessie
Dataiker Alumni

Hi Anastasia,



I have tested it on my installation, it should work once https://doc.dataiku.com/dss/latest/installation/r.html is complete (see Jerรฉmie's suggestion).



Note that with our latest 4.1 release, we provide an interface for managing libraries in R (and Python) environments. See https://doc.dataiku.com/dss/latest/code-envs/index.html.



Cheers,



Alex

0 Kudos
AnastasiiaSolom
Level 1
Author
Hi, thank you for your answer! I do not have so far the latest version, but yes its working, the problem was with correct instalation, but so far my code is working!
Thank you again for your attention and have a nice day!
0 Kudos
Amar2024
Level 2

Hi, 

 

I am trying to use CausalImpact code in Dataiku and I am getting the below error. 
"

Job failed: Error in R process: simpleError : trying to use CRAN without setting a mirror

"

Below are the package and command that I am using in my  code:

install.packages("CausalImpact", dependencies = TRUE)

---

---

impact <- CausalImpact(Table, pre_period, post_period)

The command works in my local (Windows OS ) but its not working in Dataiku R code recipe. Can you please help me ? 

0 Kudos