Skip to content

Commit

Permalink
ci: fix dependencies typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbass committed Aug 16, 2024
1 parent 156d6e2 commit 5214b0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
elementwise.all.equal <- Vectorize(function(x, y, ...) {isTRUE(all.equal(x, y, ...))})

# helper function to skip tests if we don't have the right python dependencies
skip_if_missing_dependecies <- function(reqs = c("scipy","numpy", "aston", "pandas", "olefile")) {
skip_if_missing_dependencies <- function(reqs = c("scipy","numpy", "aston", "pandas", "olefile")) {
have_reqs <- sapply(reqs, reticulate::py_module_available)
if (mean(have_reqs) < 1)
skip(paste("required packages", reqs[!have_reqs],
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-extra.R
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ test_that("read_chroms can read 'Chromeleon' period-separated files", {

test_that("read_peaklist can read `Shimadzu` ascii (PDA) files", {
skip_on_cran()
skip_if_missing_dependecies()
skip_if_missing_dependencies()
skip_if_not_installed("chromConverterExtraTests")

path <- system.file("shimadzuDAD_Anthocyanin.txt",
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-read_chroms.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ test_that("get_filetype works as expected", {
})

test_that("Rainbow parser can read chemstation 131 files", {
skip_if_missing_dependecies()
skip_if_missing_dependencies()
skip_on_cran()
skip_on_ci()

Expand Down Expand Up @@ -129,7 +129,7 @@ test_that("Rainbow parser can read chemstation 131 files", {
})

test_that("chromconverter parser can read chemstation 130 files", {
skip_if_missing_dependecies()
skip_if_missing_dependencies()
skip_on_cran()
x1 <- read_chroms("testdata/chemstation_130.ch", progress_bar = FALSE)
# expect_equal(as.numeric(x[[1]][,1]), as.numeric(x1[[1]][,"220"]))
Expand Down

0 comments on commit 5214b0d

Please sign in to comment.