Skip to content

Commit

Permalink
Closes #57: adding admiralmetabolic fns (#59)
Browse files Browse the repository at this point in the history
* #57 adding admiralmetabolic fns

* #57 update news and description

* #57 update description typo

* #57 Add data, wordlist, dependencies

* redoc

* Update admiraldiscovery-package.R

---------

Co-authored-by: Daniel Sjoberg <[email protected]>
  • Loading branch information
manciniedoardo and ddsjoberg authored Feb 6, 2025
1 parent 11f2730 commit 10c67cf
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Imports:
admiralonco (>= 1.1.0),
admiralophtha (>= 1.1.0),
admiralvaccine (>= 0.2.0),
admiralmetabolic (>= 0.1.0),
dplyr (>= 1.1.4),
glue (>= 1.7.0),
gt (>= 0.10.1),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# admiraldiscovery (development version)

* Added variables from the {admiralmetabolic} package to the variable listing. (#57, @manciniedoardo)

# admiraldiscovery 0.3.0

* Added variables from the {admiralpeds} package to the variable listing. (#51, @Fanny-Gautier)
Expand Down
2 changes: 1 addition & 1 deletion R/admiral_pkg_versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @examples
#' admiral_pkg_versions()
admiral_pkg_versions <- function() {
c("admiral", "admiralonco", "admiralophtha", "admiralvaccine") |>
c("admiral", "admiralonco", "admiralophtha", "admiralvaccine", "admiralmetabolic") |>
lapply(\(x) glue::glue("{x} v{packageVersion(x)}")) |>
unlist() |>
glue::glue_collapse(sep = ", ", last = ", and ")
Expand Down
1 change: 1 addition & 0 deletions R/admiraldiscovery-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ this_fn_is_not_used <- function() {
admiralonco::bor_cr
admiralophtha::admiralophtha_adbcva
admiralvaccine::derive_vars_params
admiralmetabolic::derive_param_waisthgt
}
4 changes: 2 additions & 2 deletions R/get_fns_with_keyword.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ NULL
#' @rdname get_keyword_fns
#' @export
get_admiral_deprecated <- function() {
c("admiral", "admiralonco", "admiralophtha", "admiralvaccine") |>
c("admiral", "admiralonco", "admiralophtha", "admiralvaccine", "admiralmetabolic") |>
lapply(
function(x) {
dplyr::tibble(
Expand All @@ -45,7 +45,7 @@ get_admiral_deprecated <- function() {
#' @rdname get_keyword_fns
#' @export
get_admiral_superseded <- function() {
c("admiral", "admiralonco", "admiralophtha", "admiralvaccine") |>
c("admiral", "admiralonco", "admiralophtha", "admiralvaccine", "admiralmetabolic") |>
lapply(
function(x) {
dplyr::tibble(
Expand Down
1 change: 1 addition & 0 deletions admiraldiscovery.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: 2f5ea07d-9ae2-41e5-b37b-6ff7627974a9

RestoreWorkspace: No
SaveWorkspace: No
Expand Down
Binary file modified data/discovery.rda
Binary file not shown.
1 change: 1 addition & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ admiralonco
admiralophtha
admiralpeds
admiralvaccine
admiralmetabolic
mayn
reactable
roxygen
Expand Down
2 changes: 2 additions & 0 deletions inst/admiral-lookup-book.csv
Original file line number Diff line number Diff line change
Expand Up @@ -422,3 +422,5 @@ ADMH,OCCDS,SMQ02SC,Derive scope of Standardized MedDRA Query 2,admiral,derive_va
ADMH,OCCDS,SMQ02SCN,Derive scope (N) of Standardized MedDRA Query 2,admiral,derive_vars_query,https://pharmaverse.github.io/admiral/reference/derive_vars_query.html,Template Example,https://github.com/pharmaverse/admiral/blob/main/inst/templates/ad_admh.R
ADMH,OCCDS,CQ04NAM,Derive name of Customized Query 4,admiral,derive_vars_query,https://pharmaverse.github.io/admiral/reference/derive_vars_query.html,Template Example,https://github.com/pharmaverse/admiral/blob/main/inst/templates/ad_admh.R
ADMH,OCCDS,CQ04CD,Derive code of Customized Query 4,admiral,derive_vars_query,https://pharmaverse.github.io/admiral/reference/derive_vars_query.html,Template Example,https://github.com/pharmaverse/admiral/blob/main/inst/templates/ad_admh.R
ADVS,BDS,"PARAMCD=""WSTCIR""",Derive Waist to Height Ratio,admiralmetabolic,derive_param_waisthgt,https://pharmaverse.github.io/admiralmetabolic/reference/derive_param_waisthgt.html,Template Example,https://github.com/pharmaverse/admiralmetabolic/blob/main/vignettes/advs.Rmd
ADVS,BDS,"PARAMCD=""WSTHIP""",Derive Waist to Hip Ratio,admiralmetabolic,derive_param_waisthip,https://pharmaverse.github.io/admiralmetabolic/reference/derive_param_waisthip.html,Template Example,https://github.com/pharmaverse/admiralmetabolic/blob/main/vignettes/advs.Rmd
2 changes: 1 addition & 1 deletion man/discovery.Rd

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

2 changes: 2 additions & 0 deletions staged_dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ upstream_repos:
host: https://github.com
- repo: pharmaverse/admiralvaccine
host: https://github.com
- repo: pharmaverse/admiralmetabolic
host: https://github.com

downstream_repos:

Expand Down

0 comments on commit 10c67cf

Please sign in to comment.