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().
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! **0 -
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.
0 -
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!**0 -
@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!0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive