-
Notifications
You must be signed in to change notification settings - Fork 0
Add effect sizes, tests, and CI workflow #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: R Tests | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: r-lib/actions/setup-r@v2 | ||
| with: | ||
| use-public-rspm: true | ||
| - name: Install dependencies | ||
| run: | | ||
| install.packages(c( | ||
| "testthat", "tidyverse", "rstatix", "ggstatsplot", "ggsignif", | ||
| "see", "ggpmisc", "writexl", "readxl", "emoa", "effectsize" | ||
| )) | ||
|
Comment on lines
+17
to
+20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In the helper (tests/testthat/helper-r_code.R:2) the tests disable automatic installation, yet Useful? React with 👍 / 👎. |
||
| - name: Run tests | ||
| run: | | ||
| Rscript -e 'testthat::test_dir("tests/testthat", reporter = "summary")' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow step that is supposed to install the R packages (lines 15‑20) runs
install.packages(...)as a plain shell command. GitHub Actions steps default tobash, so the runner throwsinstall.packages: command not foundbefore any dependencies are installed or tests run. Wrap the installation in an R invocation (e.g.Rscript -e 'install.packages(...)'orshell: Rscript {0}) so the command executes inside R and the job can proceed.Useful? React with 👍 / 👎.