Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/15216#discussion_r80291782
--- Diff: R/pkg/R/context.R ---
@@ -231,17 +231,21 @@ setCheckpointDir <- function(sc, dirName) {
#' filesystems), or an HTTP, HTTPS or FTP URI. To access the file in Spark
jobs,
#' use spark.getSparkFiles(fileName) to find its download location.
#'
+#' A directory can be given if the recursive option is set to true.
+#' Currently directories are only supported for Hadoop-supported
filesystems.
+#'
#' @rdname spark.addFile
#' @param path The path of the file to be added
+#' @param recursive Recursive or not if the path is directory. Default is
FALSE.
--- End diff --
Shouldn't this say "whether to add files recursively from the path" or
similar?
I mean, the directory could have nested multiple-level sub-directories and
`recursive` will add all of them? Doesn't seem like that is called out here.
---
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]