1 Reply Latest reply on Jul 18, 2018 2:32 PM by Patrick A Van Der Hyde

    Querying data from a Tableau server hosted dashboard via Javascript API in R

    Eric Braun

      I'm attempting to use the Javascript API through the R V8 package to query data from a dashboard on my company's Tableau server. I'm testing the following code to simply load the Tableau Javascript libraries:

       

      library(V8)

      ct <- v8(global = "window")

      ct$source('https://online.tableau.com/javascripts/api/tableau-2.min.js')

       

      This throws the following error:

       

      Error in context_eval(join(src), private$context) :

        ReferenceError: document is not defined

       

      Any guidance? A code example that pulls the underlying data from a public Tableau dashboard via the Javascript API in a locally run R or Python script would be exceptional.