Skip to content

Commit c121ec8

Browse files
make examples taht require pandoc work under solaris
1 parent 743e6a8 commit c121ec8

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: r2d3
22
Type: Package
33
Title: Interface to 'D3' Visualizations
4-
Version: 0.2.1
4+
Version: 0.2.2
55
Authors@R: c(
66
person("Javier", "Luraschi", email = "javier@rstudio.com", role = c("aut", "cre")),
77
person("JJ", "Allaire", role = c("aut")),

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# r2d3 0.2.2
2+
3+
- Fix examples that require pandoc to support CRAN's solaris environment.
4+
15
# r2d3 0.2.1
26

37
- Skip tests that require pandoc to support CRAN's solaris environment.

R/publish.R

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@
2020
#'
2121
#' @examples
2222
#' library(r2d3)
23-
#' viz <- r2d3(data=c(0.3, 0.6, 0.8, 0.95, 0.40, 0.20), script = "barchart.js")
24-
#' save_d3_html(viz, file = tempfile(fileext = ".html"))
2523
#'
24+
#' viz <- r2d3(
25+
#' data = c(0.3, 0.6, 0.8, 0.95, 0.40, 0.20),
26+
#' script = system.file("examples/barchart.js", package = "r2d3")
27+
#' )
28+
#'
29+
#' save_d3_html(
30+
#' viz,
31+
#' file = tempfile(fileext = ".html"),
32+
#' selfcontained = FALSE
33+
#' )
2634
#' @details
2735
#'
2836
#' Using \code{selfcontained} set to \code{TRUE} requires \href{http://pandoc.org}{pandoc}

man/save_d3_html.Rd

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)