ropensci/iheatmapr

save_iheatmap example is not working

Closed this issue · 2 comments

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’

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

Added the missing argument to example.