Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '218-support-file-URLs' into dev
* 218-support-file-URLs: Add unit test for issue #226 Move checkpoint temp folder into session temp folder. #225 Fix broken test. #226 Fix typo: `require()` not `requires()` Added code of conduct Update mranUrl.R
- Loading branch information
Showing
5 changed files
with
56 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
if(interactive()) library(testthat) | ||
|
||
context("tempdir") | ||
|
||
# CRAN policy does not allow any folders to be written anywhere other than the session temporary folder tempdir(). | ||
# Ensure that no .checkpoint files are written one level higher in the tempdir() tree | ||
|
||
test_that("checkpointLocation uses session temp folder", { | ||
expect_char0 <- function(object){ | ||
expect_is(object, "character") | ||
expect_length(object, 0) | ||
} | ||
expect_char0( | ||
dir(dirname(tempdir()), all.files = TRUE, pattern = ".checkpoint") | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters