Skip to content

Commit

Permalink
make examples taht require pandoc work under solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed May 30, 2018
1 parent 743e6a8 commit c121ec8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: r2d3
Type: Package
Title: Interface to 'D3' Visualizations
Version: 0.2.1
Version: 0.2.2
Authors@R: c(
person("Javier", "Luraschi", email = "[email protected]", role = c("aut", "cre")),
person("JJ", "Allaire", role = c("aut")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# r2d3 0.2.2

- Fix examples that require pandoc to support CRAN's solaris environment.

# r2d3 0.2.1

- Skip tests that require pandoc to support CRAN's solaris environment.
Expand Down
12 changes: 10 additions & 2 deletions R/publish.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@
#'
#' @examples
#' library(r2d3)
#' viz <- r2d3(data=c(0.3, 0.6, 0.8, 0.95, 0.40, 0.20), script = "barchart.js")
#' save_d3_html(viz, file = tempfile(fileext = ".html"))
#'
#' viz <- r2d3(
#' data = c(0.3, 0.6, 0.8, 0.95, 0.40, 0.20),
#' script = system.file("examples/barchart.js", package = "r2d3")
#' )
#'
#' save_d3_html(
#' viz,
#' file = tempfile(fileext = ".html"),
#' selfcontained = FALSE
#' )
#' @details
#'
#' Using \code{selfcontained} set to \code{TRUE} requires \href{http://pandoc.org}{pandoc}
Expand Down
12 changes: 10 additions & 2 deletions man/save_d3_html.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c121ec8

Please sign in to comment.