Installing R Packages in Jupyter in Domo

I don't seem to be able to install new packages in R in Jupyter in Domo anymore.

In Domo the documentation, it shows an example of installing 'SentimentAnalysis' using install.packages().

https://domo-support.domo.com/s/article/36004740075?language=en_US

When I try that, or any other package, I get this warning:

Warning message:“unable to access index for repository https://cran.r-project.org/src/contrib:  cannot open URL 'https://cran.r-project.org/src/contrib/PACKAGES'”Warning message:“package ‘SentimentAnalysis’ is not available for this version of RA version of this package for your version of R might be available elsewhere,see the ideas athttps://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages”

I have been able to install packages in the past, so there appears to be some new problem. The error makes me think the version of R supported by Domo (4.1) is too old. 4.1 was released over 3 years ago, and the current version is 4.4, which gives credence to that, but SentimentAnalysis only depends on (R>2.1), so maybe there's something more locked down in the admin settings from Domo than before.

Anyone know what's going on?

Please 💡/💖/👍/😊 this post if you read it and found it helpful.

Please accept the answer if it solved your problem.

Answers

  • The warning about being unable to access the CRAN repository seems to indicate the environment in Domo might be blocked from making outgoing connections. Possibly due to network or firewall settings…on Domo's side? Can you install from a mirror?

    install.packages('SentimentAnalysis', repos = 'https://cloud.r-project.org')
    

    Sentiment Analysis appears to only require R >= 2.1, which should be compatible with your version.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

  • No, can't install from a mirror or directly from GitHub

    Please 💡/💖/👍/😊 this post if you read it and found it helpful.

    Please accept the answer if it solved your problem.

  • I'd recommend logging a ticket with Support as it appears to be a backend issue

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • MattTheGuru
    MattTheGuru Contributor
    edited October 24

    @DavidChurchman This might be an issue of version compatibility. Even though the error mentions R version 4.1 being older, the package you're trying to install (SentimentAnalysis) only requires R > 2.1, so it shouldn't be an issue of version compatibility. However, it's possible that certain dependencies for newer versions of packages might not be compatible with R 4.1—released in 2021.

    Solution: You could try installing an older version of the package using devtools or manually installing a compatible version if available (I typed in 1.3.1—released in 2020, but it's hard to know which version is old enough):

    Code snippet: devtools::install_version("SentimentAnalysis", version = "1.3.1", repos = "http://cran.us.r-project.org")

    ** Was this post helpful? Click 💡/💖/👍/😊 below. **
    ** If it solved your problem. Accept it as a solution! ✔️ **

    Or do you need more help? https://calendly.com/matthew-kastner/15-minute-chat
    Did I help you out? Feedback is priceless and will help me more than you know.Write a review!