Permalink
Browse files

add don't run to examples

  • Loading branch information...
1 parent d7fb416 commit 14c5e5aae3b3b813461f1e885ff68600e37b5316 @reinholdsson reinholdsson committed Apr 21, 2013
Showing with 16 additions and 0 deletions.
  1. +2 −0 R/PolyCharts.R
  2. +2 −0 R/gist.R
  3. +4 −0 R/toJSON.R
  4. +2 −0 man/post_gist.Rd
  5. +2 −0 man/rPlot.Rd
  6. +2 −0 man/toChain.Rd
  7. +2 −0 man/toJSONArray.Rd
View
@@ -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, ...){
View
@@ -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: ")
View
@@ -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)
@@ -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]]))
View
@@ -15,6 +15,8 @@
Publish a list of files as a gist
}
\examples{
+\dontrun{
gist = create_gist(gfiles, description = 'description', public = T)
}
+}
View
@@ -8,7 +8,9 @@
Main plotting function
}
\examples{
+\dontrun{
names(iris) = gsub('\\\\.', '', names(iris))
rPlot(SepalLength ~ SepalWidth | Species, data = iris, type = 'point', color = 'Species')
}
+}
View
@@ -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
}
View
@@ -11,8 +11,10 @@
row of the data frame. This utility function does that.
}
\examples{
+\dontrun{
toJSONArray(head(iris))
}
+}
\author{
Ramnath Vaidyanathan
}

0 comments on commit 14c5e5a

Please sign in to comment.