Skip to content

Commit

Permalink
Merge pull request #187 from OHDSI/v0.1.1
Browse files Browse the repository at this point in the history
cran v0.1.1
  • Loading branch information
edward-burn authored Jan 17, 2025
2 parents d1afe6f + 4a48573 commit 72be6c4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
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.0
Version: 0.1.1
Authors@R: c(
person("Edward", "Burn", , "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-9286-1128")),
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ knitr::opts_chunk$set(
# PhenotypeR <img src="man/figures/logo.png" align="right" height="180"/>

<!-- badges: start -->

[![CRAN status](https://www.r-pkg.org/badges/version/PhenotypeR)](https://CRAN.R-project.org/package=PhenotypeR)
[![R-CMD-check](https://github.com/ohdsi/PhenotypeR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ohdsi/PhenotypeR/actions/workflows/R-CMD-check.yaml)
[![Lifecycle:Experimental](https://img.shields.io/badge/Lifecycle-Experimental-339999)](https://lifecycle.r-lib.org/articles/stages.html#experimental)

Expand Down
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

<!-- badges: start -->

[![CRAN
status](https://www.r-pkg.org/badges/version/PhenotypeR)](https://CRAN.R-project.org/package=PhenotypeR)
[![R-CMD-check](https://github.com/ohdsi/PhenotypeR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ohdsi/PhenotypeR/actions/workflows/R-CMD-check.yaml)
[![Lifecycle:Experimental](https://img.shields.io/badge/Lifecycle-Experimental-339999)](https://lifecycle.r-lib.org/articles/stages.html#experimental)

Expand Down Expand Up @@ -57,9 +59,9 @@ library(CohortConstructor)
library(dplyr)

con <- DBI::dbConnect(duckdb::duckdb(dbdir = CDMConnector::eunomiaDir()))
cdm <- CDMConnector::cdm_from_con(con = con,
cdm_schema = "main",
write_schema = "main")
cdm <- CDMConnector::cdmFromCon(con = con,
cdmSchema = "main",
writeSchema = "main")

cdm$gibleed <- conceptCohort(cdm = cdm,
conceptSet = list(gibleed = 192671L),
Expand All @@ -71,21 +73,21 @@ result <- cdm$gibleed |>

``` r
summary(result)
#> A summarised_result object with 18179 rows, 49 different result_id, 1 different
#> cdm names, and 24 settings.
#> CDM names: Synthea synthetic health database.
#> Settings: package_name, package_version, result_type, timing, table_name,
#> cohort_definition_id, cdm_version, vocabulary_version,
#> analysis_outcome_washout, analysis_repeated_events, analysis_interval,
#> analysis_complete_database_intervals, denominator_age_group, denominator_sex,
#> denominator_days_prior_observation, denominator_start_date,
#> denominator_end_date, denominator_target_cohort_name, …, type, and analysis.
#> A summarised_result object with 22475 rows, 43 different result_id, 1 different
#> cdm names, and 26 settings.
#> CDM names: An OMOP CDM database.
#> Settings: result_type, package_name, package_version, group, strata,
#> additional, min_cell_count, analysis, analysis_complete_database_intervals,
#> analysis_full_contribution, analysis_outcome_washout, analysis_repeated_events,
#> analysis_type, cdm_version, cohort_definition_id, denominator_age_group,
#> denominator_days_prior_observation, denominator_end_date, …, type, and
#> vocabulary_version.
```

Once we have our results we can quickly view them in an interactive
application. This shiny app will be saved in a new directory and can be
further customised.

``` r
shinyDiagnostics(result = result)
shinyDiagnostics(result = result, directory = tempdir())
```
5 changes: 1 addition & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
## R CMD check results

0 errors | 0 warnings | 1 note

* This is a re-submission.
* Long-running tests now being skipped on cran.
This is a new release.

0 comments on commit 72be6c4

Please sign in to comment.