Github user shivaram commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8952#discussion_r41538953
  
    --- Diff: R/pkg/R/SQLContext.R ---
    @@ -75,8 +75,8 @@ infer_type <- function(x) {
     #'\dontrun{
     #' sc <- sparkR.init()
     #' sqlContext <- sparkRSQL.init(sc)
    -#' rdd <- lapply(parallelize(sc, 1:10), function(x) list(a=x, 
b=as.character(x)))
    -#' df <- createDataFrame(sqlContext, rdd)
    +#' df1 <- as.DataFrame(sqlContext, iris)
    --- End diff --
    
    `iris` is just a dataset present by default on all R installations. I think 
its fine to use that.
    
    Also I think its better to change the old examples as they use the RDD API 
which is not public. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to