DomoR Error in is.url(url) : length(url) == 1 is not TRUE
Attempting to use the DomoR plugin to create a dataset in Domo.
Here is the R script
library(pryr)
library(DomoR)
library(devtools)
init('MyDomain','MyAccessCode')
a <- c(2,3,4)
b <- c(1,2,3)
df <- data.frame(a, b)
DomoR::replace_ds(df, name = "tanbit_r_test", description = "DomoR test")
When I run this I get this error, which has me blocked:
Error in is.url(url) : length(url) == 1 is not TRUE
Thanks in advance for your attention.
Best Answer
-
The documentation for the DomoR "Replace" function is available here: https://knowledge.domo.com/?cid=domorusage. It looks like you need to add "DomoR::" to the beginning and format as follows:
Replace
Replace an existing data source and update the schema if necessary.
DomoR::replace_ds('ab84f24a-73d4-0188-d8aa-8fe78103a721', df)
0
Answers
-
Hi,
Anyone help out with this request?Thanks,
0 -
Hey Bruce,
Thank you for reaching out to Domo Support in regard to our DomoR plug-in, I'm sorry to hear that you are receiving an error. Your current script is showing the 'replace' function, rather than 'create'. Could you please confirm if the script is set up for what you need? If so, then I can get this over to my Connector team.
If this is considered a high priority, then please call our number and reference the following ticket number:
Ticket: 05665916
1-801-805-9505
Have you been looking for a 1-stop shop for all your support cases? This message and all updates to this case can be tracked in the Customer Portal at support.domo.com. This portal makes it easy for you to track, update, and create all your support cases!
- Domo Technical Support
**Say “Thanks" by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Apologies for the create/replace confusion. The error happens on replace_ds.
Here is a revised example. Create works but replace_ds gives the error.
library(pryr)
library(DomoR)
library(devtools)
init('openstax-org','46787f87c4a9c0e7b53dbfb309fa2b777f3d33cb21731550')
a <- c(2,3,4)
b <- c(1,2,3)
df <- data.frame(a, b)
DomoR::create(df, name="tanbit_r_test1", description = "DomoR test")
a <- c(20,30,40)
b <- c(10,20,30)
replace_ds(df, name = "tanbit_r_test1", description = "DomoR test")0 -
The documentation for the DomoR "Replace" function is available here: https://knowledge.domo.com/?cid=domorusage. It looks like you need to add "DomoR::" to the beginning and format as follows:
Replace
Replace an existing data source and update the schema if necessary.
DomoR::replace_ds('ab84f24a-73d4-0188-d8aa-8fe78103a721', df)
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive