Skip to content

Commit

Permalink
fix system command
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseDck committed Dec 12, 2024
1 parent 00ccda4 commit 20b85b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ jobs:
shell: Rscript {0}

- name: Install h5diff
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install hdf5-tools
else
echo "$RUNNER_OS not supported"
exit 1
fi
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install hdf5-tools
fi
shell: bash


Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/helper-skip_if_no_h5diff.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# helper function to skip tests if h5diff is not available
skip_if_no_h5diff <- function(){

Check warning on line 2 in tests/testthat/helper-skip_if_no_h5diff.R

View workflow job for this annotation

GitHub Actions / lint

file=tests/testthat/helper-skip_if_no_h5diff.R,line=2,col=32,[brace_linter] There should be a space before an opening curly brace.

Check warning on line 2 in tests/testthat/helper-skip_if_no_h5diff.R

View workflow job for this annotation

GitHub Actions / lint

file=tests/testthat/helper-skip_if_no_h5diff.R,line=2,col=32,[paren_body_linter] There should be a space between a right parenthesis and a body expression.
testthat::skip_if(

Check warning on line 3 in tests/testthat/helper-skip_if_no_h5diff.R

View workflow job for this annotation

GitHub Actions / lint

file=tests/testthat/helper-skip_if_no_h5diff.R,line=3,col=4,[indentation_linter] Indentation should be 2 spaces but is 4 spaces.
!system("h5diff", intern = TRUE),
!system("which h5diff", ignore.stdout = TRUE),

Check warning on line 4 in tests/testthat/helper-skip_if_no_h5diff.R

View workflow job for this annotation

GitHub Actions / lint

file=tests/testthat/helper-skip_if_no_h5diff.R,line=4,col=8,[indentation_linter] Indentation should be 4 spaces but is 8 spaces.
message = "h5diff not available for testing"
)

Check warning on line 6 in tests/testthat/helper-skip_if_no_h5diff.R

View workflow job for this annotation

GitHub Actions / lint

file=tests/testthat/helper-skip_if_no_h5diff.R,line=6,col=4,[indentation_linter] Indentation should be 2 spaces but is 4 spaces.
}

Check warning on line 7 in tests/testthat/helper-skip_if_no_h5diff.R

View workflow job for this annotation

GitHub Actions / lint

file=tests/testthat/helper-skip_if_no_h5diff.R,line=7,col=2,[trailing_blank_lines_linter] Missing terminal newline.

0 comments on commit 20b85b3

Please sign in to comment.