Skip to content

Commit

Permalink
Added tests for new datasetsand updated NEWS.
Browse files Browse the repository at this point in the history
  • Loading branch information
wviechtb committed Aug 15, 2024
1 parent ac14f48 commit d1fe261
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- name: Install libcurl4-openssl-dev
- name: Install libcurl
run: sudo apt-get install -y libcurl4-openssl-dev
- name: Install TeX Live
run: sudo apt-get install -y texlive texlive-fonts-extra
- name: Query dependencies
run: |
install.packages('remotes')
install.packages("remotes")
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
Expand Down
21 changes: 12 additions & 9 deletions CONCEPTS
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ fields/topics:

# natural sciences / topics
\concept{ecology}
\concept{plants}
\concept{evolution}
\concept{climate change}
\concept{phylogeny}
Expand All @@ -46,12 +45,6 @@ fields/topics:

############################################################################

populations:

\concept{infants}

############################################################################

outcome measures:

\concept{raw mean differences}
Expand Down Expand Up @@ -96,15 +89,25 @@ methods/concepts:
\concept{cluster-robust inference}
\concept{outliers}
\concept{model checks}
\concept{second order meta-analysis}
\concept{subgroup analysis}

############################################################################
############################################################################
############################################################################

potential terms to add:
potential groups/terms to add:

fields/topics:

\concept{plants}

populations:

\concept{infants}

methods/concepts:

\concept{meta-analysis of p-values}
\concept{second order meta-analysis}

############################################################################
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: metadat
Version: 1.3-0
Date: 2024-01-22
Date: 2024-08-15
Title: Meta-Analysis Datasets
Authors@R: c(
person(given = "Thomas", family="White",
Expand All @@ -19,7 +19,7 @@ Authors@R: c(
role = c("aut","cre"), email = "[email protected]",
comment = c(ORCID = "0000-0003-3463-4063")),
person(given = "Guido", family = "Schwarzer",
role = "dtc", email = "[email protected]-freiburg.de",
role = "dtc", email = "guido.schwarzer@uniklinik-freiburg.de",
comment = c(ORCID = "0000-0001-6214-9087")))
Depends: R (>= 4.0.0)
Imports: utils, tools, mathjaxr
Expand All @@ -30,5 +30,6 @@ ByteCompile: TRUE
LazyData: TRUE
Encoding: UTF-8
RdMacros: mathjaxr
BuildManual: TRUE
URL: https://github.com/wviechtb/metadat, https://wviechtb.github.io/metadat/
BugReports: https://github.com/wviechtb/metadat/issues
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# metadat 1.3-0 (2024-01-08)
# metadat 1.3-0 (2024-08-15)

- added `dat.bartos2023`, `dat.crisafulli2020`, `dat.dumouchel1994`, `dat.roever2022`, and `dat.ursino2021`
- added `dat.bartos2023`, `dat.bassler2004`, `dat.crisafulli2020`, `dat.curtin2002`, `dat.dumouchel1994`, `dat.furukawa2003`, `dat.roever2022`, `dat.spooner2002`, and `dat.ursino2021`
- fixed the mislabeling of sensitivity and specificity in the example code for `dat.kearon1998`
- minor correction to one of the sampling variances in `dat.kalaian1996` and the coding of the `ets` variable

Expand Down
Binary file modified inst/help.rdata
Binary file not shown.
3 changes: 3 additions & 0 deletions man/dat.bassler2004.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ settings.meta(oldset)
\concept{risk ratios}
\concept{medicine}
\concept{subgroup analysis}
\section{Concepts}{
risk ratios, medicine, subgroup analysis
}
3 changes: 3 additions & 0 deletions man/dat.curtin2002.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ settings.meta(oldset)
}
\keyword{datasets}
\concept{raw mean differences}
\section{Concepts}{
raw mean differences
}
3 changes: 3 additions & 0 deletions man/dat.furukawa2003.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ settings.meta(oldset)
}
\keyword{datasets}
\concept{standardized mean differences}
\section{Concepts}{
standardized mean differences
}
3 changes: 3 additions & 0 deletions man/dat.spooner2002.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ settings.meta(oldset)
\keyword{datasets}
\concept{raw mean differences}
\concept{subgroup analysis}
\section{Concepts}{
raw mean differences, subgroup analysis
}
7 changes: 7 additions & 0 deletions tests/testthat/test_dat.bassler2004.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
context("Checking: dat.bassler2004")

library(digest)

test_that("md5 hash matches for the data", {
expect_match(digest(metadat::dat.bassler2004, algo="md5"), "b2602c6ffa358e30992b5de028bcc1ff")
})
7 changes: 7 additions & 0 deletions tests/testthat/test_dat.curtin2002.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
context("Checking: dat.curtin2002")

library(digest)

test_that("md5 hash matches for the data", {
expect_match(digest(metadat::dat.curtin2002, algo="md5"), "3f6600770272aa68c2720dbfb78d0966")
})
7 changes: 7 additions & 0 deletions tests/testthat/test_dat.furukawa2003.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
context("Checking: dat.furukawa2003")

library(digest)

test_that("md5 hash matches for the data", {
expect_match(digest(metadat::dat.furukawa2003, algo="md5"), "e9f22be16a3dfd4832663ede1fe9d462")
})
7 changes: 7 additions & 0 deletions tests/testthat/test_dat.spooner2002.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
context("Checking: dat.spooner2002")

library(digest)

test_that("md5 hash matches for the data", {
expect_match(digest(metadat::dat.spooner2002, algo="md5"), "d35bdc852b7c6204236240f217046470")
})

0 comments on commit d1fe261

Please sign in to comment.