Skip to content

Commit

Permalink
add don't run to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
reinholdsson committed Apr 21, 2013
1 parent d7fb416 commit 14c5e5a
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/PolyCharts.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ fixJSON = function(x){
#' Main plotting function
#'
#' @examples
#' \dontrun{
#' names(iris) = gsub('\\.', '', names(iris))
#' rPlot(SepalLength ~ SepalWidth | Species, data = iris, type = 'point', color = 'Species')
#' }
#'
#'
rPlot <- function(x, ...){
Expand Down
2 changes: 2 additions & 0 deletions R/gist.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#' @importFrom rjson fromJSON
#'
#' @examples
#' \dontrun{
#' gist = create_gist(gfiles, description = 'description', public = T)
#' }
post_gist <- function(gist){
if (is.null(getOption('github.username'))){
username <- readline("Please enter your github username: ")
Expand Down
4 changes: 4 additions & 0 deletions R/toJSON.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
#' @importFrom rjson toJSON
#' @keywords internal
#' @examples
#' \dontrun{
#' toJSONArray(head(iris))
#' }
toJSONArray <- function(obj, json = TRUE){
list2keyval <- function(l){
keys = names(l)
Expand Down Expand Up @@ -37,8 +39,10 @@ toJSONArray <- function(obj, json = TRUE){
#' @keywords internal
#' @importFrom rjson toJSON
#' @examples
#' \dontrun{
#' toChain(list(showControls = TRUE, showDistX = TRUE), "chart")
#' ## chart.showControls(true).showDistX(true)
#' }
toChain <- function(x, obj){
config <- sapply(names(x), USE.NAMES = F, function(i){
sprintf(" .%s(%s)", i, toJSON(x[[i]]))
Expand Down
2 changes: 2 additions & 0 deletions man/post_gist.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
Publish a list of files as a gist
}
\examples{
\dontrun{
gist = create_gist(gfiles, description = 'description', public = T)
}
}

2 changes: 2 additions & 0 deletions man/rPlot.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
Main plotting function
}
\examples{
\dontrun{
names(iris) = gsub('\\\\.', '', names(iris))
rPlot(SepalLength ~ SepalWidth | Species, data = iris, type = 'point', color = 'Species')
}
}

2 changes: 2 additions & 0 deletions man/toChain.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
acting on a specified object.
}
\examples{
\dontrun{
toChain(list(showControls = TRUE, showDistX = TRUE), "chart")
## chart.showControls(true).showDistX(true)
}
}
\author{
Ramnath Vaidyanathan
}
Expand Down
2 changes: 2 additions & 0 deletions man/toJSONArray.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
row of the data frame. This utility function does that.
}
\examples{
\dontrun{
toJSONArray(head(iris))
}
}
\author{
Ramnath Vaidyanathan
}
Expand Down

0 comments on commit 14c5e5a

Please sign in to comment.