Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under rmarkdown d3heatmap only renders when returned to the top level #69

Open
warnes opened this issue Jul 19, 2016 · 0 comments
Open

Comments

@warnes
Copy link

warnes commented Jul 19, 2016


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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant