This is the problem related to S3 method lookup we started to discuss a
couple of months ago. It may be that it can be solved by importing just the
methods that deal with tag output?


On Tue, May 20, 2014 at 3:05 PM, Joe Cheng <notifications@github.com> wrote:

> In R/ggvis_html.R:
>
> > -#' \itemize{
> > -#'   \item static html file
> > -#'   \item temporary shiny app
> > -#'   \item static html embedded in Rmarkdown
> > -#'   \item shiny app embedded in Rmarkdown
> > -#'   \item embedded in regular shiny app
> > -#' }
> > -#' This function ensures that the right dependencies are specified for
> > -#' each scenario.
> > -#'
> > -#' @param absolute Use absolute paths? Needed for local html files.
> > -#' @param in_shiny Will the plot be embedded in a shiny app? Drops jquery
> > -#'   dependency and adds shiny resource paths
> > -#' @param dynamic Is this a dynamic plot? If so, add shiny-ggvis dependency
> > +#' @import htmltools
> > +NULL
>
> Hmmm. When i remove the import, rmarkdown documents just print the HTML
> source of ggvis plots. If I add library(htmltools) to the Rmd document
> itself then it fixes the problem.
> [image: image]<https://cloud.githubusercontent.com/assets/129551/3031907/b3dc32f8-e051-11e3-9f3f-0fbf083f8471.png>
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rstudio/ggvis/pull/157/files#r12861988>
> .
>