Skip to content

Commit b2f3a59

Browse files
committed
Fix tempdir() issue in test case & update doc.
1 parent f9a3a66 commit b2f3a59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

R/pkg/R/context.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ setCheckpointDir <- function(sc, dirName) {
236236
#'
237237
#' @rdname spark.addFile
238238
#' @param path The path of the file to be added
239-
#' @param recursive Recursive or not if the path is directory. Default is FALSE.
239+
#' @param recursive Whether to add files recursively from the path. Default is FALSE.
240240
#' @export
241241
#' @examples
242242
#'\dontrun{

R/pkg/inst/tests/testthat/test_context.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ test_that("add and get file to be downloaded with Spark job on every node", {
180180
unlink(path)
181181

182182
# Test add directory recursively.
183-
path <- tempdir()
183+
path <- paste0(tempdir(), "/", "recursive_dir")
184+
dir.create(path)
184185
dir_name <- basename(path)
185186
path1 <- paste0(path, "/", "hello.txt")
186187
file.create(path1)

0 commit comments

Comments
 (0)