Skip to content

Commit 6c3bd27

Browse files
committed
mas
1 parent 0ab67ce commit 6c3bd27

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/lint-project.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@ jobs:
2222
use-public-rspm: true
2323

2424
- name: Install lintr
25-
run: install.packages("lintr")
25+
run: |
26+
install.packages("lintr")
27+
install.packages("devtools")
2628
shell: Rscript {0}
2729

30+
# we must use devtools::load_all to all lintr to not consider
31+
# all of the internal non exported functions as non declared globals
2832
- name: Lint root directory
29-
run: lintr::lint_dir()
33+
run: |
34+
devtools::load_all()
35+
lintr::lint_dir()
3036
shell: Rscript {0}
3137
env:
3238
LINTR_ERROR_ON_LINT: true

tests/testthat/test-hdf5.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ test_that("can create hdf5", {
4646
expect_equal(hdf5r::readDataSet(tool), "loupeR")
4747

4848
extra <- hdf5r::openGroup(metadata, "extra")
49-
loupeR_seurat_version <- hdf5r::openLocation(extra, "loupeR_seurat_version")
50-
val <- hdf5r::readDataSet(loupeR_seurat_version)
51-
expect(!is.null(hdf5r::readDataSet(loupeR_seurat_version)), "extra field is missing")
49+
louper_seurat_version <- hdf5r::openLocation(extra, "loupeR_seurat_version")
50+
val <- hdf5r::readDataSet(louper_seurat_version)
51+
expect(!is.null(hdf5r::readDataSet(louper_seurat_version)), "extra field is missing")
5252
})
5353

5454
test_that("can create hdf5 custom feature ids", {

0 commit comments

Comments
 (0)