d3heatmap icon indicating copy to clipboard operation
d3heatmap copied to clipboard

Under rmarkdown d3heatmap only renders when returned to the top level

Open warnes opened this issue 9 years ago • 0 comments


output: html_document

In rmarkdown a d3heatmap only renders when is explicitly returned to the top level.

For example, in this simple Rmarkdown document, the first and third heatmaps are rendered in the html document, while the second is not.

library(d3heatmap)
x <- matrix(rnorm(100), ncol=10)

This is displayed

d3heatmap(x)

This is not displayed

f1 <- function(x)
{
  d3  <- d3heatmap(x)
  print(d3)
}
f1(x)

This is displayed

f2 <- function(x)
{
  d3  <- d3heatmap(x)
  d3
}
f2(x)

warnes avatar Jul 19 '16 16:07 warnes