Skip to content

Commit

Permalink
v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
edward-burn committed Feb 5, 2025
1 parent 8da93a8 commit 670eaff
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
^doc$
^Meta$
^cran-comments\.md$
^CRAN-SUBMISSION$
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 0.1.2
Date: 2025-02-05 11:52:25 UTC
SHA: 8da93a816e8e51f59309a69859cffad54fe8dc65
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: PhenotypeR
Type: Package
Title: Assess Study Cohorts Using a Common Data Model
Version: 0.1.1.900
Version: 0.1.2
Authors@R: c(
person("Edward", "Burn", , "edward.burn@ndorms.ox.ac.uk",
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-9286-1128")),
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-codelistDiagnostics.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
test_that("missing codelist attribute", {
skip_on_cran()

testthat::skip_on_cran()
cdm_local <- omock::mockCdmReference() |>
omock::mockPerson(nPerson = 100) |>
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-phenotypeDiagnostics.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
test_that("overall diagnostics function", {

skip_on_cran()

cdm_local <- omock::mockCdmReference() |>
omock::mockPerson(nPerson = 100) |>
omock::mockObservationPeriod() |>
Expand Down
6 changes: 3 additions & 3 deletions vignettes/a04_MatchedDiagnostics.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "a04_MatchedDiagnostics"
title: "Matched diagnostics"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{a04_MatchedDiagnostics}
Expand Down Expand Up @@ -30,7 +30,7 @@ if (!eunomia_is_available()) downloadEunomiaData(datasetName = "synpuf-1k")
## Introduction
In this example we're going to again create cohorts of individuals with an ankle sprain, ankle fracture, forearm fracture, or a hip fracture using the Eunomia synthetic data.

```{r}
```{r, eval=FALSE}
library(CDMConnector)
library(CohortConstructor)
library(CodelistGenerator)
Expand Down Expand Up @@ -60,7 +60,7 @@ cdm$injuries <- conceptCohort(cdm = cdm,

## Matched diagnostics
Running the `matchedDiagnostics()` will compare the individuals in our cohorts with age and sex matched controls from the data source. This helps us to find features of our cohort that are particularly distinctive.
```{r}
```{r, eval=FALSE}
matched_diag <- matchedDiagnostics(cdm$injuries)
```

0 comments on commit 670eaff

Please sign in to comment.