Skip to content

Commit

Permalink
temp dir testthat ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Cringe0796 committed Aug 16, 2023
1 parent 47c4766 commit 5177fca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/testthat/test-MainFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test_that("option 1: fully pre-specified settings file works", {
### Tests for EXPLORE using iris dataset
data_path <- system.file("examples", "iris.arff", package = "Explore")
settings_path <- system.file("examples", "iris.project", package = "Explore")
output_path <- getwd()
output_path <- tempdir()
# output_path <- system.file("examples", "output", package = "Explore")
output_path <- paste0(output_path, "/")
data <- farff::readARFF(data_path)
Expand All @@ -25,7 +25,7 @@ test_that("option 2: pre-specified settings file with input data works", {
### Tests for EXPLORE using iris dataset
data_path <- system.file("examples", "iris.arff", package = "Explore")
settings_path <- system.file("examples", "iris.project", package = "Explore")
output_path <- getwd()
output_path <- tempdir()
output_path <- paste0(output_path, "/")
data <- farff::readARFF(data_path)
# Required dependencies
Expand All @@ -44,7 +44,7 @@ test_that("option 3: only input parameters (no settings file) works", {
### Tests for EXPLORE using iris dataset
data_path <- system.file("examples", "iris.arff", package = "Explore")
settings_path <- system.file("examples", "iris.project", package = "Explore")
output_path <- getwd()
output_path <- tempdir()
output_path <- paste0(output_path, "/")
data <- farff::readARFF(data_path)
# Required dependencies
Expand All @@ -63,7 +63,7 @@ test_that("prediction", {
### Tests for EXPLORE using iris dataset
data_path <- system.file("examples", "iris.arff", package = "Explore")
settings_path <- system.file("examples", "iris.project", package = "Explore")
output_path <- getwd()
output_path <- tempdir()
output_path <- paste0(output_path, "/")
data <- farff::readARFF(data_path)
# Required dependencies
Expand All @@ -83,7 +83,7 @@ test_that("compute AUC", {
### Tests for EXPLORE using iris dataset
data_path <- system.file("examples", "iris.arff", package = "Explore")
settings_path <- system.file("examples", "iris.project", package = "Explore")
output_path <- getwd()
output_path <- tempdir()
# output_path <- system.file("examples", "output//", package = "Explore")
output_path <- paste0(output_path, "/")
data <- farff::readARFF(data_path)
Expand Down

0 comments on commit 5177fca

Please sign in to comment.