Skip to content

Commit

Permalink
mas
Browse files Browse the repository at this point in the history
  • Loading branch information
esiegel committed Jan 8, 2025
1 parent 0ab67ce commit 8a72a0c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/lint-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@ jobs:
use-public-rspm: true

- name: Install lintr
run: install.packages("lintr")
run: |
install.packages("lintr")
install.packages("devtools")
shell: Rscript {0}

# we must use devtools::load_all to all lintr to not consider
# all of the internal non exported functions as non declared globals
# https://github.com/r-lib/lintr/issues/1137#issuecomment-1127828843
- name: Lint root directory
run: lintr::lint_dir()
run: |
devtools::load_all()
lintr::lint_dir()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
6 changes: 3 additions & 3 deletions tests/testthat/test-hdf5.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ test_that("can create hdf5", {
expect_equal(hdf5r::readDataSet(tool), "loupeR")

extra <- hdf5r::openGroup(metadata, "extra")
loupeR_seurat_version <- hdf5r::openLocation(extra, "loupeR_seurat_version")
val <- hdf5r::readDataSet(loupeR_seurat_version)
expect(!is.null(hdf5r::readDataSet(loupeR_seurat_version)), "extra field is missing")
louper_seurat_version <- hdf5r::openLocation(extra, "loupeR_seurat_version")
val <- hdf5r::readDataSet(louper_seurat_version)
expect(!is.null(hdf5r::readDataSet(louper_seurat_version)), "extra field is missing")
})

test_that("can create hdf5 custom feature ids", {
Expand Down

0 comments on commit 8a72a0c

Please sign in to comment.