Skip to content

Commit

Permalink
skipping file permission-related tests in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dhersz committed Apr 4, 2024
1 parent b7aaa2f commit 16d8a70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions r-package/tests/testthat/test-setup_r5.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ test_that("'overwrite' parameter works correctly", {
})

test_that("throws error if write access to given dir is denied", {
# this test only works correctly with unix OSes. not sure how to change
# permissions from inside R in windows
skip_if_not(.Platform$OS.type == "unix")

invisible(file.copy(path, tempdir(), recursive = TRUE))

tmpdir <- file.path(tempdir(), "poa")
Expand Down

0 comments on commit 16d8a70

Please sign in to comment.