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.5K Connect
- 1.2K Connectors
- 296 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 614 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 729 Beast Mode
- 53 App Studio
- 40 Variables
- 677 Automate
- 173 Apps
- 451 APIs & Domo Developer
- 45 Workflows
- 8 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 121 Manage
- 118 Governance & Security
- Domo Community Gallery
- 32 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive