Github user shivaram commented on a diff in the pull request:
https://github.com/apache/spark/pull/6007#discussion_r30147143
--- Diff: R/pkg/R/SQLContext.R ---
@@ -446,14 +446,15 @@ dropTempTable <- function(sqlCtx, tableName) {
#' @param source the name of external data source
#' @return DataFrame
#' @export
+#' @aliases loadDF
#' @examples
#'\dontrun{
#' sc <- sparkR.init()
#' sqlCtx <- sparkRSQL.init(sc)
-#' df <- load(sqlCtx, "path/to/file.json", source = "json")
+#' df <- read.df(sqlCtx, "path/to/file.json", source = "json")
#' }
-loadDF <- function(sqlCtx, path = NULL, source = NULL, ...) {
+read.df <- loadDF <- function(sqlCtx, path = NULL, source = NULL, ...) {
--- End diff --
I didn't know this was a valid way to declare alias functions in R. Hmm -
But it seems to go against the style in the rest of the file. Could we just
declare a new function `read.df` similar to other aliases ?
---
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]