Skip to content

Commit 6f57eb3

Browse files
Merge remote-tracking branch 'origin/main' into mebrooks/main
2 parents 32baef6 + a9d5a60 commit 6f57eb3

File tree

5 files changed

+34
-16
lines changed

5 files changed

+34
-16
lines changed

.github/workflows/R-CMD-check.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
pull_request:
77
branches: [main, master]
88

9-
name: R-CMD-check
9+
name: R-CMD-check.yaml
10+
11+
permissions: read-all
1012

1113
jobs:
1214
R-CMD-check:
@@ -29,7 +31,7 @@ jobs:
2931
R_KEEP_PKG_SOURCE: yes
3032

3133
steps:
32-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3335

3436
- uses: r-lib/actions/setup-pandoc@v2
3537

@@ -47,3 +49,4 @@ jobs:
4749
- uses: r-lib/actions/check-r-package@v2
4850
with:
4951
upload-snapshots: true
52+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/test-coverage.yaml

+18-10
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,56 @@ on:
66
pull_request:
77
branches: [main, master]
88

9-
name: test-coverage
9+
name: test-coverage.yaml
10+
11+
permissions: read-all
1012

1113
jobs:
1214
test-coverage:
1315
runs-on: ubuntu-latest
1416
env:
1517
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1718

1819
steps:
19-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2021

2122
- uses: r-lib/actions/setup-r@v2
2223
with:
2324
use-public-rspm: true
2425

2526
- uses: r-lib/actions/setup-r-dependencies@v2
2627
with:
27-
extra-packages: any::covr
28+
extra-packages: any::covr, any::xml2
2829
needs: coverage
2930

3031
- name: Test coverage
3132
run: |
32-
covr::codecov(
33+
cov <- covr::package_coverage(
3334
quiet = FALSE,
3435
clean = FALSE,
35-
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
36+
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
3637
)
38+
covr::to_cobertura(cov)
3739
shell: Rscript {0}
3840

41+
- uses: codecov/codecov-action@v4
42+
with:
43+
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
44+
file: ./cobertura.xml
45+
plugin: noop
46+
disable_search: true
47+
token: ${{ secrets.CODECOV_TOKEN }}
48+
3949
- name: Show testthat output
4050
if: always()
4151
run: |
4252
## --------------------------------------------------------------------
43-
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
53+
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
4454
shell: bash
4555

4656
- name: Upload test results
4757
if: failure()
48-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
4959
with:
5060
name: coverage-test-failures
5161
path: ${{ runner.temp }}/package
52-
- name: Upload coverage reports to Codecov
53-
uses: codecov/codecov-action@v3

DESCRIPTION

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Description: Implementation of Multidimensional Top Scoring
4646
License: MIT + file LICENSE
4747
Encoding: UTF-8
4848
LazyData: true
49+
URL: https://github.com/jakub-jedrusiak/mtscr
50+
BugReports: https://github.com/jakub-jedrusiak/mtscr/issues
4951
RoxygenNote: 7.2.3
5052
Depends:
5153
R (>= 4.1.0)

README.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ knitr::opts_chunk$set(
1616
# Multidimensional Top Scoring for Creativity Research <img src="./man/figures/mtscr-hex.svg" width="200" align="right"/> {#multidimensional-top-scoring-for-creativity-research}
1717

1818
<!-- badges: start -->
19-
20-
[![codecov](https://codecov.io/gh/jakub-jedrusiak/mtscr/branch/main/graph/badge.svg?token=N3UGHFK5QN)](https://app.codecov.io/gh/jakub-jedrusiak/mtscr) [![R-CMD-check](https://github.com/jakub-jedrusiak/mtscr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jakub-jedrusiak/mtscr/actions/workflows/R-CMD-check.yaml)
2119
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
2220
[![CRAN/METACRAN](https://img.shields.io/cran/v/mtscr)](https://CRAN.R-project.org/package=mtscr)
21+
[![R-CMD-check](https://github.com/jakub-jedrusiak/mtscr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jakub-jedrusiak/mtscr/actions/workflows/R-CMD-check.yaml)
22+
[![Codecov test coverage](https://codecov.io/gh/jakub-jedrusiak/mtscr/graph/badge.svg)](https://app.codecov.io/gh/jakub-jedrusiak/mtscr)
2323
<!-- badges: end -->
2424

2525
An R adaptation of Multidimensional Top Scoring method presented by Forthmann, Karwowski and Beaty ([2023](https://doi.org/10.1037/aca0000571)) using the code from the [OSF database](https://osf.io/7rgsp/). The code was adapted to use the [tidyverse](https://www.tidyverse.org/) framework for greater flexibility.

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55

66
<!-- badges: start -->
77

8-
[![codecov](https://codecov.io/gh/jakub-jedrusiak/mtscr/branch/main/graph/badge.svg?token=N3UGHFK5QN)](https://app.codecov.io/gh/jakub-jedrusiak/mtscr)
9-
[![R-CMD-check](https://github.com/jakub-jedrusiak/mtscr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jakub-jedrusiak/mtscr/actions/workflows/R-CMD-check.yaml)
108
[![Lifecycle:
119
stable](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
1210
[![CRAN/METACRAN](https://img.shields.io/cran/v/mtscr)](https://CRAN.R-project.org/package=mtscr)
11+
[![R-CMD-check](https://github.com/jakub-jedrusiak/mtscr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jakub-jedrusiak/mtscr/actions/workflows/R-CMD-check.yaml)
12+
[![Codecov test
13+
coverage](https://codecov.io/gh/jakub-jedrusiak/mtscr/graph/badge.svg)](https://app.codecov.io/gh/jakub-jedrusiak/mtscr)
1314
<!-- badges: end -->
1415

1516
An R adaptation of Multidimensional Top Scoring method presented by
@@ -57,6 +58,10 @@ library("mtscr")
5758
data("mtscr_creativity", package = "mtscr")
5859

5960
mtscr_score(mtscr_creativity, id, item, SemDis_MEAN, top = 1:2)
61+
#> Warning in checkDepPackageVersion(dep_pkg = "TMB"): Package version inconsistency detected.
62+
#> glmmTMB was built with TMB version 1.9.11
63+
#> Current TMB version is 1.9.15
64+
#> Please re-install glmmTMB from source or restore original 'TMB' package (see '?reinstalling' for more information)
6065
#> # A tibble: 149 × 3
6166
#> id .creativity_score_top1 .creativity_score_top2
6267
#> <chr> <dbl> <dbl>

0 commit comments

Comments
 (0)