1 parent b579627 commit 0a2250dCopy full SHA for 0a2250d
1 file changed
tests/testthat/helper.R
@@ -5,7 +5,6 @@ library(testthat)
5
setup_scribe <- function(frame = parent.frame()) {
6
r_libs_scribe <- tempfile("R_LIBS_SCRIBE_TEST_")
7
dir.create(r_libs_scribe, recursive = TRUE)
8
- Sys.chmod(file.path(r_libs_scribe, "*"))
9
Sys.setenv(R_LIBS_SCRIBE_TEST = r_libs_scribe)
10
defer(
11
try(unlink(r_libs_scribe, recursive = TRUE, force = TRUE)),
@@ -24,11 +23,7 @@ r_libs_scribe_test <- function() {
24
23
}
25
26
scribe_path <- function() {
27
- path <- normalizePath(test_path("../.."))
28
- if (basename(path) == "scribe.Rcheck") {
29
- path <- sub("\\.Rcheck$", "", path)
30
- }
31
- path
+ find.package("scribe")
32
33
34
quick_install <- function(package, lib, quiet = TRUE) {
0 commit comments