Skip to content

Commit f4536fb

Browse files
authored
Merge pull request #257 from OHDSI/develop
Release v3.5.2
2 parents a93992b + f2a850c commit f4536fb

119 files changed

Lines changed: 533 additions & 445 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ deploy.sh
1313
compare_versions
1414
_pkgdown.yml
1515
nbactions.xml
16+
^CRAN-SUBMISSION$
17+
^cran-comments\.md$

CRAN-SUBMISSION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Version: 3.5.2
2+
Date: 2024-04-30 18:12:58 UTC
3+
SHA: fe1f8048024d84e8079e872e60c4623c9d0c5c5f

DESCRIPTION

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
Package: FeatureExtraction
22
Type: Package
33
Title: Generating Features for a Cohort
4-
Version: 3.5.1
5-
Date: 2024-04-22
4+
Version: 3.5.2
5+
Date: 2024-05-01
66
Authors@R: c(
77
person("Martijn", "Schuemie", , "schuemie@ohdsi.org", role = c("aut")),
88
person("Marc", "Suchard", role = c("aut")),
99
person("Patrick", "Ryan", role = c("aut")),
1010
person("Jenna", "Reps", role = c("aut")),
11-
person("Anthony", "Sena", , "sena@ohdsi.org", role = c("aut", "cre")),
12-
person("Ger", "Inberg", role = c("aut"))
11+
person("Anthony", "Sena", , "sena@ohdsi.org", role = c("aut")),
12+
person("Ger", "Inberg", , "g.inberg@erasmusmc.nl", role = c("aut", "cre")),
13+
person("Observational Health Data Science and Informatics", role = c("cph"))
1314
)
14-
Maintainer: Anthony Sena <sena@ohdsi.org>
15-
Description: An R package for generating features (covariates) for a cohort using data in the Common Data Model.
15+
Maintainer: Ger Inberg <g.inberg@erasmusmc.nl>
16+
Description: An R interface for generating features for a cohort using data in the Common Data Model. Features can be constructed using default or custom made feature definitions. Furthermore it's possible to aggregate features and get the summary statistics.
1617
Depends:
1718
R (>= 3.2.2),
1819
DatabaseConnector (>= 3.0.0),
@@ -35,10 +36,10 @@ Suggests:
3536
testthat,
3637
knitr,
3738
rmarkdown,
38-
Eunomia,
39-
withr
40-
Remotes:
41-
ohdsi/Eunomia
39+
Eunomia (>= 2.0.0),
40+
withr,
41+
curl,
42+
httr
4243
License: Apache License 2.0
4344
VignetteBuilder: knitr
4445
URL: https://github.com/OHDSI/FeatureExtraction

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export(createDefaultCovariateSettings)
1313
export(createDefaultTemporalCovariateSettings)
1414
export(createDetailedCovariateSettings)
1515
export(createDetailedTemporalCovariateSettings)
16+
export(createEmptyCovariateData)
1617
export(createTable1)
1718
export(createTable1CovariateSettings)
1819
export(createTemporalCovariateSettings)

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
FeatureExtraction 3.5.2
2+
=======================
3+
4+
- Move FeatureExtraction to CRAN (#104)
5+
16
FeatureExtraction 3.5.1
27
=======================
38

R/Aggregation.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#' An object of class \code{covariateData}.
2525
#'
2626
#' @examples
27-
#' \dontrun{
28-
#' covariateData <- FeatureExtraction:::createEmptyCovariateData(
27+
#' \donttest{
28+
#' covariateData <- FeatureExtraction::createEmptyCovariateData(
2929
#' cohortIds = 1,
3030
#' aggregated = FALSE,
3131
#' temporal = FALSE

R/CompareCohorts.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#' of mean.
3333
#'
3434
#' @examples
35-
#' \dontrun{
35+
#' \donttest{
3636
#' binaryCovDataFile <- system.file("testdata/binaryCovariateData.zip",
3737
#' package = "FeatureExtraction"
3838
#' )

R/CovariateData.R

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ setClass("CovariateData", contains = "Andromeda")
5252
#' @details
5353
#' The data will be written to a set of files in the folder specified by the user.
5454
#'
55+
#' @return No return value, called for side effects.
56+
#'
5557
#' @examples
56-
#' \dontrun{
57-
#' covariateData <- FeatureExtraction:::createEmptyCovariateData(
58+
#' \donttest{
59+
#' covariateData <- FeatureExtraction::createEmptyCovariateData(
5860
#' cohortIds = 1,
5961
#' aggregated = FALSE,
6062
#' temporal = FALSE
@@ -96,7 +98,7 @@ saveCovariateData <- function(covariateData, file) {
9698
#' An object of class \code{CovariateData}.
9799
#'
98100
#' @examples
99-
#' \dontrun{
101+
#' \donttest{
100102
#' binaryCovDataFile <- system.file("testdata/binaryCovariateData.zip",
101103
#' package = "FeatureExtraction"
102104
#' )
@@ -183,7 +185,7 @@ print.summary.CovariateData <- function(x, ...) {
183185
#' A logical value.
184186
#'
185187
#' @examples
186-
#' \dontrun{
188+
#' \donttest{
187189
#' binaryCovDataFile <- system.file("testdata/binaryCovariateData.zip",
188190
#' package = "FeatureExtraction"
189191
#' )
@@ -204,8 +206,8 @@ isCovariateData <- function(x) {
204206
#' A logical value.
205207
#'
206208
#' @examples
207-
#' \dontrun{
208-
#' covariateData <- FeatureExtraction:::createEmptyCovariateData(
209+
#' \donttest{
210+
#' covariateData <- FeatureExtraction::createEmptyCovariateData(
209211
#' cohortIds = 1,
210212
#' aggregated = FALSE,
211213
#' temporal = FALSE
@@ -232,8 +234,8 @@ isAggregatedCovariateData <- function(x) {
232234
#' A logical value.
233235
#'
234236
#' @examples
235-
#' \dontrun{
236-
#' covariateData <- FeatureExtraction:::createEmptyCovariateData(
237+
#' \donttest{
238+
#' covariateData <- FeatureExtraction::createEmptyCovariateData(
237239
#' cohortIds = 1,
238240
#' aggregated = FALSE,
239241
#' temporal = FALSE
@@ -259,17 +261,19 @@ isTemporalCovariateData <- function(x) {
259261
#' @param temporal if the data is temporary
260262
#'
261263
#' @examples
262-
#' \dontrun{
263-
#' covariateData <- FeatureExtraction:::createEmptyCovariateData(
264+
#' \donttest{
265+
#' covariateData <- FeatureExtraction::createEmptyCovariateData(
264266
#' cohortIds = 1,
265267
#' aggregated = FALSE,
266268
#' temporal = FALSE
267269
#' )
268270
#' }
269-
#' @return the empty CovariateData object
271+
#' @return an empty object of class \code{CovariateData}
270272
#'
273+
#' @export
271274
createEmptyCovariateData <- function(cohortIds, aggregated, temporal) {
272275
dummy <- tibble(
276+
cohortDefinitionId = 1,
273277
covariateId = 1,
274278
covariateValue = 1
275279
)

R/DetailedCovariateSettings.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#' An object of type \code{covariateSettings}, to be used in other functions.
3030
#'
3131
#' @examples
32-
#' \dontrun{
32+
#' \donttest{
3333
#' analysisDetails <- createAnalysisDetails(
3434
#' analysisId = 1,
3535
#' sqlFileName = "DemographicsGender.sql",
@@ -78,7 +78,7 @@ createDetailedCovariateSettings <- function(analyses = list()) {
7878
#' An object of type \code{covariateSettings}, to be used in other functions.
7979
#'
8080
#' @examples
81-
#' \dontrun{
81+
#' \donttest{
8282
#' analysisDetails <- createAnalysisDetails(
8383
#' analysisId = 1,
8484
#' sqlFileName = "DemographicsGender.sql",
@@ -193,7 +193,7 @@ createAnalysisDetails <- function(analysisId,
193193
#' An object of type \code{covariateSettings}, to be used in other functions.
194194
#'
195195
#' @examples
196-
#' \dontrun{
196+
#' \donttest{
197197
#' covSettings <- createDefaultCovariateSettings()
198198
#' detailedSettings <- convertPrespecSettingsToDetailedSettings(covariateSettings = covSettings)
199199
#' }
@@ -225,7 +225,7 @@ convertPrespecSettingsToDetailedSettings <- function(covariateSettings) {
225225
#' An object of type \code{covariateSettings}, to be used in other functions.
226226
#'
227227
#' @examples
228-
#' \dontrun{
228+
#' \donttest{
229229
#' covSettings <- createDefaultCovariateSettings(
230230
#' includedCovariateConceptIds = c(1),
231231
#' addDescendantsToInclude = FALSE,
@@ -273,7 +273,7 @@ createDefaultCovariateSettings <- function(includedCovariateConceptIds = c(),
273273
#' An object of type \code{covariateSettings}, to be used in other functions.
274274
#'
275275
#' @examples
276-
#' \dontrun{
276+
#' \donttest{
277277
#' covSettings <- createDefaultTemporalCovariateSettings(
278278
#' includedCovariateConceptIds = c(1),
279279
#' addDescendantsToInclude = FALSE,

R/GetCovariates.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
#' Returns an object of type \code{covariateData}, containing information on the covariates.
6868
#'
6969
#' @examples
70-
#' \dontrun{
70+
#' \donttest{
7171
#' eunomiaConnectionDetails <- Eunomia::getEunomiaConnectionDetails()
7272
#' covSettings <- createDefaultCovariateSettings()
7373
#' Eunomia::createCohorts(

0 commit comments

Comments
 (0)