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

  • jehat
    Accepted 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)

Answers

  • Hi,
    Anyone help out with this request?

    Thanks,

  • Austin
    Austin

    domo

    💎

    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

  • 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")