1 Reply Latest reply on Jul 18, 2018 2:32 PM by Patrick 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:



      ct <- v8(global = "window")



      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.