Skip to content

Commit

Permalink
documentation changes for R CMD check
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed May 18, 2016
1 parent dd9a3fa commit 6d7ddad
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ knit_print.plotly_hash <- function(x, options, ...) {
#' Print a 'built' plotly object in a knitr doc
#'
#' @param x a plotly object
#' @param options knitr options.
#' @param ... additional arguments
#' @export
knit_print.plotly_built <- knit_print.plotly_hash
Expand Down
2 changes: 2 additions & 0 deletions man/ggplotly.Rd

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

2 changes: 2 additions & 0 deletions man/knit_print.plotly_built.Rd

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

4 changes: 3 additions & 1 deletion vignettes/intro.Rmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
title: "An overview of plotly's R API"
author: "Carson Sievert"
output: rmarkdown::html_vignette
output:
rmarkdown::html_vignette:
self_contained: false
vignette: >
%\VignetteEngine{knitr::rmarkdown}
%\VignetteIndexEntry{Plotly DSL}
Expand Down
13 changes: 12 additions & 1 deletion vignettes/subplot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author: "Carson Sievert"
output:
rmarkdown::html_vignette:
toc: true
standalone: false
self_contained: false
vignette: >
%\VignetteEngine{knitr::rmarkdown}
%\VignetteIndexEntry{subplot}
Expand All @@ -17,6 +17,17 @@ knitr::opts_chunk$set(
comment = "#>",
fig.width = 7
)
# someday we may want to do pngs to reduce size...
# printly <- function(p, options, ...) {
# p <- layout(p, height = options$fig.height, width = options$fig.width)
# u <- plotly::plotly_POST(p, filename = Sys.time())$url
# sprintf(
# "<a href='%s'> <img src='%s.png' style='%s' /> </a>",
# u, u, "max-width:100%"
# )
# }
# assignInNamespace("knit_print.plotly_hash", printly, asNamespace("plotly"))
# assignInNamespace("knit_print.plotly_built", printly, asNamespace("plotly"))
```

## Introduction
Expand Down

0 comments on commit 6d7ddad

Please sign in to comment.