Skip to content

Commit 0a2250d

Browse files
committed
removes extra stuff maybe (#83)
1 parent b579627 commit 0a2250d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

tests/testthat/helper.R

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ library(testthat)
55
setup_scribe <- function(frame = parent.frame()) {
66
r_libs_scribe <- tempfile("R_LIBS_SCRIBE_TEST_")
77
dir.create(r_libs_scribe, recursive = TRUE)
8-
Sys.chmod(file.path(r_libs_scribe, "*"))
98
Sys.setenv(R_LIBS_SCRIBE_TEST = r_libs_scribe)
109
defer(
1110
try(unlink(r_libs_scribe, recursive = TRUE, force = TRUE)),
@@ -24,11 +23,7 @@ r_libs_scribe_test <- function() {
2423
}
2524

2625
scribe_path <- function() {
27-
path <- normalizePath(test_path("../.."))
28-
if (basename(path) == "scribe.Rcheck") {
29-
path <- sub("\\.Rcheck$", "", path)
30-
}
31-
path
26+
find.package("scribe")
3227
}
3328

3429
quick_install <- function(package, lib, quiet = TRUE) {

0 commit comments

Comments
 (0)