Interactive Treemap with d3treeR not rendering in Shiny
<p>I am a newbie to Shiny and I am trying to use the <strong>d3TreeR HTML Widget</strong> to display an interactive treemap</p>

<p>I used the following code and it ran perfectly in R:</p>

<pre><code>library(readxl)
budget_map &lt;- read_excel(path = 'Trader Dashboard Data Prep Sample.xlsx',sheet='v2',col_names = TRUE)
library(treemap)
budget_treemap &lt;- treemap(budget_map,index=c("Sales Agency","Agency","Advertiser"),vSize="Booked Revenue Net",vColor="Sales Agency",palette = "Set1",type="categorical",title="Australia Budget Map",fontsize.title=22)
library(d3treeR)
d3tree2(budget_treemap)
</code></pre>

<p>I'm trying to get it to render in Shiny and am using the following code:</p>

<pre><code>library(shiny)
library(readxl)
library(treemap)
library(htmlwidgets)
library(data.tree)
library(d3treeR)
budget_map &lt;- read_excel(path = 'C:/Users/rahul/Desktop/30k foot view/Trader Dashboard Data Prep Sample.xlsx',sheet='v2',col_names = TRUE)
budget_treemap &lt;- treemap(budget_map,index=c("Sales Agency","Agency","Advertiser"),vSize="Booked Revenue Net",vColor="Sales Agency",palette = "Set1",type="categorical")

ui &lt;- fluidPage(
  d3tree2Output("au_budget_map")
)


server &lt;- function(input,output){
    output$au_budget_map &lt;- renderD3tree2({budget_treemap})
}

shinyApp(ui = ui, server = server)
</code></pre>

<p>Attaching sample data to make it reproducible: <a href="https://drive.google.com/open?id=0B2LJXtBTsuhhcnZJeXI3T0kwYW8" rel="nofollow noreferrer">https://drive.google.com/open?id=0B2LJXtBTsuhhcnZJeXI3T0kwYW8</a>
I know I might be missing something very evident - but am not able to spot it! Any help would be really great! Thanks!</p>