Skip to content

Commit

Permalink
corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
georgejr45 committed Jul 17, 2024
1 parent 6bfb092 commit 3833da8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions R/read.sig.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ read.sig <- function(file.path) {
}

#example data
file_path <- "/Users/methungeorge/Desktop/IPB/playground/LILY_LEAF_i2145[86].sig"
data <- read.sig(file_path)
print(head(data))
# file_path <- "/Users/methungeorge/Desktop/IPB/playground/LILY_LEAF_i2145[86].sig"
# data <- read.sig(file_path)
# print(head(data))

3 changes: 2 additions & 1 deletion tests/testthat/test-read_sig.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
library(testthat)


# Source the file containing the read_sig function
#source("https://github.com/georgejr45/nearspectRa/blob/main/R/read.sig.R")
source("/Users/methungeorge/Desktop/nearspectRa/R/read.sig.R")

test_that("read_sig function works correctly", {
test_that("read.sig function works correctly", {
# Test with a non-existent file
expect_error(read.sig("non_existent_file.sig"), "file does not exist")

Expand Down

0 comments on commit 3833da8

Please sign in to comment.