Github user felixcheung commented on a diff in the pull request: https://github.com/apache/spark/pull/17274#discussion_r105836882 --- Diff: R/pkg/R/context.R --- @@ -345,7 +351,8 @@ spark.getSparkFilesRootDirectory <- function() { #'} #' @note spark.getSparkFiles since 2.1.0 spark.getSparkFiles <- function(fileName) { - callJStatic("org.apache.spark.SparkFiles", "get", as.character(fileName)) + rootDir <- spark.getSparkFilesRootDirectory() + paste0(rootDir, "/", as.character(fileName)) --- End diff -- use `file.path` instead- this might not be correct on Windows.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org