You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I am trying to embed itreemap function (interactive treemap) in R shiny. It keeps giving the error
"prod_metric_csv() is not a data.frame"
However, when I change the function to treemap, it works fine. It also works fine when I invoke the itreemap in regular rstudio (without shiny). Issue is occurring only when I embed in Shiny
Any pointers on the error is greatly appreciated.
Regards
Sunil
The text was updated successfully, but these errors were encountered:
This is a tricky one. itreemap scans the global environment for data.frames and checks with https://github.com/mtennekes/treemap/blob/master/pkg/R/itreemap.R#L44-L45 if the name of dtf is one of them. These lines will cause an error is you do not provide the data.frame directly to itreemap but via a function (in your case prod_metric_csv()) If there is a simple solution, I can implement that.
Hi
I am trying to embed itreemap function (interactive treemap) in R shiny. It keeps giving the error
"prod_metric_csv() is not a data.frame"
However, when I change the function to treemap, it works fine. It also works fine when I invoke the itreemap in regular rstudio (without shiny). Issue is occurring only when I embed in Shiny
Any pointers on the error is greatly appreciated.
Regards
Sunil
The text was updated successfully, but these errors were encountered: