ropensci / iheatmapr

Complex, interactive heatmaps in R
https://docs.ropensci.org/iheatmapr
Other
267 stars 35 forks source link

save_iheatmap example is not working #28

Closed tiagochst closed 6 years ago

tiagochst commented 6 years ago

The example for function save_iheatmap is not working.

library(iheatmapr)
mat <- matrix(rnorm(24), nrow = 6)
hm <- iheatmap(mat)
## Not run: 
save_iheatmap(hm)
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘save_iheatmap’ for signature ‘"IheatmapHorizontal", "missing"’
packageVersion("iheatmapr")
[1] ‘0.4.4’
packageVersion("plotly")
[1] ‘4.7.1.9000’
AliciaSchep commented 6 years ago

Thanks for raising the issue. The function also needs a filename argument. I will correct the example to include a filename.

AliciaSchep commented 6 years ago

Added the missing argument to example.