Open slowkow opened 7 years ago
Hi Kamil,
Not sure if it will be possible to remove pandoc dependency for saving plots... the save_iheatmap function is simply taking advantage of the export
function from the plotly package, which in turn first makes a temporary html document using saveWidget from htmlwidgets package and then uses the webshot package to create a screenshot of the html.
It is the saveWidget command that uses pandoc to create a self-contained html file. Perhaps if the temporary html file created for use with webshot does not actually need to be self-contained, the export function from plotly could be changed to use selfcontained = FALSE
. As this issue probably affects the saving of any plotly graph that potential change would probably be best in that package.
The saveWidget code links to a resource on installing pandoc. Apparently Rstudio provides standalone pandoc binaries, maybe that is useful? That document has the binaries being linked to /usr/local/bin but presumably they could also just be added to PATH for an individual user.
Hi Alicia,
I tried to use iheatmapr today, but I ran into an issue with pandoc. Do you think it's possible to avoid the dependency on pandoc? If I recall correctly, pandoc is difficult to install on my server, so I can't easily update it.
I'm using the latest version of iheatmapr installed with
devtools::install_github("AliciaSchep/iheatmapr")
When I run:
I get:
pandoc information:
R system information: