R installation of packaging

AnastasiiaSolom
AnastasiiaSolom Registered Posts: 13 ✭✭✭✭
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)<BR />
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!
Tagged:

Answers

  • Alex_Combessie
    Alex_Combessie Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭

    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

  • AnastasiiaSolom
    AnastasiiaSolom Registered Posts: 13 ✭✭✭✭
    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!
  • Amar2024
    Amar2024 Registered Posts: 6

    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 ?

Setup Info
    Tags
      Help me…