Skip to content

Commit

Permalink
Release 4.0.0 (Part 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisknoll authored Jul 19, 2024
2 parents d63136a + b8d1234 commit f1cdd1f
Show file tree
Hide file tree
Showing 36 changed files with 139 additions and 100 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/R_CMD_check_Hades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
if: ${{ github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch }}

steps:

Expand Down Expand Up @@ -194,3 +194,9 @@ jobs:
run: |
curl --data "build=true" -X POST https://registry.hub.docker.com/u/ohdsi/broadsea-methodslibrary/trigger/f0b51cec-4027-4781-9383-4b38b42dd4f5/
- name: Synchronize main
if: ${{ env.new_version != '' }}
run: |
git update-ref refs/heads/main ${{ env.new_version }}
git push origin +main
16 changes: 8 additions & 8 deletions R/Classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ IncidenceDesign <- R6::R6Class("IncidenceDesign",
.studyWindow=NA
),
active = list(
#' @field cohortDefs A list of cohort definitions. Must be a list of class "CohortDefinition"
#' @field cohortDefs A list of cohort definitions. Must be a list of \link[=CohortDefinition]{CohortDefinition}
cohortDefs = function(cohortDefs) {
if (missing(cohortDefs)) {
private$.cohortDefs
Expand All @@ -69,7 +69,7 @@ IncidenceDesign <- R6::R6Class("IncidenceDesign",
self
}
},
#' @field targetDefs A list of cohort references to be used as target cohorts. Must be a list of class "CohortReference"
#' @field targetDefs A list of cohort references to be used as target cohorts. Must be a list of \link[=CohortReference]{CohortReference}
targetDefs = function(targetDefs) {
if (missing(targetDefs)) {
private$.targetDefs
Expand All @@ -80,7 +80,7 @@ IncidenceDesign <- R6::R6Class("IncidenceDesign",
self
}
},
#' @field outcomeDefs A list of cohort references to be used as target cohorts. Must be a list of class "CohortReference"
#' @field outcomeDefs A list of outcome definitions. Must be a list of \link[=Outcome]{Outcome}
outcomeDefs = function(outcomeDefs) {
if (missing(outcomeDefs)) {
private$.outcomeDefs
Expand All @@ -91,7 +91,7 @@ IncidenceDesign <- R6::R6Class("IncidenceDesign",
self
}
},
#' @field timeAtRiskDefs A list of cohort references to be used as target cohorts. Must be a list of class "CohortReference"
#' @field timeAtRiskDefs A list of time-at-risk definitions. Must be a list of \link[=TimeAtRisk]{TimeAtRisk}
timeAtRiskDefs = function(timeAtRiskDefs) {
if (missing(timeAtRiskDefs)) {
private$.timeAtRiskDefs
Expand All @@ -102,7 +102,7 @@ IncidenceDesign <- R6::R6Class("IncidenceDesign",
self
}
},
#' @field analysisList A list of cohort references to be used as target cohorts. Must be a list of class "CohortReference"
#' @field analysisList A list of analyses, containing the T-O-TAR combinations to perform. Must be a list of \link[=IncidenceAnalysis]{IncidenceAnalysis}
analysisList = function(analysisList) {
if (missing(analysisList)) {
private$.analysisList
Expand All @@ -113,7 +113,7 @@ IncidenceDesign <- R6::R6Class("IncidenceDesign",
self
}
},
#' @field subgroups A list of cohort references to be used as target cohorts. Must be a list of class "CohortReference"
#' @field subgroups A list of subgroups. Must be a list of \link[=CohortSubgroup]{CohortSubgroup}
subgroups = function(subgroups) {
if (missing(subgroups)) {
private$.subgroups
Expand All @@ -124,7 +124,7 @@ IncidenceDesign <- R6::R6Class("IncidenceDesign",
self
}
},
#' @field strataSettings The strata settings for this design. Must be a class "StrataSettings"
#' @field strataSettings The strata settings for this design. Must be a class \link[=StrataSettings]{StrataSettings}
strataSettings = function(strataSettings) {
if (missing(strataSettings)) {
private$.strataSettings
Expand All @@ -135,7 +135,7 @@ IncidenceDesign <- R6::R6Class("IncidenceDesign",
self
}
},
#' @field studyWindow a study window for this design. Must be a list of class "DateRange"
#' @field studyWindow a study window for this design. Must be a list of class \link[=DateRange]{DateRange}
studyWindow = function(studyWindow) {
if (missing(studyWindow)) {
private$.studyWindow
Expand Down
21 changes: 21 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,24 @@ navbar:
hades:
text: hadesLogo
href: https://ohdsi.github.io/Hades

reference:
- title: "R6 Classes"
- contents:
- CohortDefinition
- CohortReference
- CohortSubgroup
- DateRange
- IncidenceAnalysis
- IncidenceDesign
- Outcome
- StrataSettings
- TimeAtRisk
- title: "R6 Class Factory Functions"
- contents:
- starts_with("create")
- title: "Other Functions"
- contents:
- starts_with("build")
- starts_with("execute")
- starts_with("get")
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/using-cohortincidence.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ pkgdown: 2.0.9
pkgdown_sha: ~
articles:
using-cohortincidence: using-cohortincidence.html
last_built: 2024-07-08T17:23Z
last_built: 2024-07-19T13:34Z

2 changes: 1 addition & 1 deletion docs/reference/CohortDefinition.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CohortIncidence-package.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CohortReference.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CohortSubgroup.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/DateRange.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/IncidenceAnalysis.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions docs/reference/IncidenceDesign.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/Outcome.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/StrataSettings.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/TimeAtRisk.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/buildOptions.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/buildQuery.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/createCohortRef.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/createCohortSubgroup.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/createDateRange.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/createIncidenceAnalysis.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/createIncidenceDesign.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/createOutcomeDef.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f1cdd1f

Please sign in to comment.