diff --git a/NAMESPACE b/NAMESPACE index 3a11e1f716..b9e7451bb7 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -140,6 +140,7 @@ export(get_many_to_one_dataset) export(get_not_mapped) export(get_one_to_many_dataset) export(get_summary_records) +export(hello_admiral) export(impute_dtc_dt) export(impute_dtc_dtm) export(lastalive_censor) diff --git a/NEWS.md b/NEWS.md index 3875615549..dcb638e1b9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# admiral test + +Hello :-) + # admiral 0.11.0 ## New Features diff --git a/R/my_first_fcn.R b/R/my_first_fcn.R new file mode 100644 index 0000000000..c29cebe88e --- /dev/null +++ b/R/my_first_fcn.R @@ -0,0 +1,23 @@ +#' Derive Extension Example #' +#' Says hello admiral +#' +#' @param hw TRUE or FALSE +#' +#' @author Open Source +#' @details Something Something +#' +#' @return Happy Message +#' +#' @family der_adxx +#' @keywords der_adxx +#' @export +#' @examples +#' hello_admiral(hw = FALSE) +#' +hello_admiral <- function(hw = TRUE) { + if (hw) { + message("Welcome to the admiral family!") + } else { + message("Welcome to the admiral family!") + } +} diff --git a/_pkgdown.yml b/_pkgdown.yml index bf41840fc4..ccaa8654c3 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -17,6 +17,11 @@ news: reference: - title: Derivations for Adding Variables + +- subtitle: All hellos + contents: + - has_keyword("der_adxx") + - subtitle: All ADaMs contents: - has_keyword("der_gen") diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 9abc5c52eb..d2e67a16f4 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,4 +1,4 @@ -pandoc: 2.14.0.3 +pandoc: 2.19.2 pkgdown: 2.0.6 pkgdown_sha: ~ articles: @@ -19,7 +19,8 @@ articles: queries_dataset: queries_dataset.html questionnaires: questionnaires.html visits_periods: visits_periods.html -last_built: 2023-03-02T20:56Z +last_built: 2023-04-17T13:16Z urls: - reference: https://pharmaverse.github.io/admiral/cran-release/reference - article: https://pharmaverse.github.io/admiral/cran-release/articles + reference: https://pharmaverse.github.io/admiral/reference + article: https://pharmaverse.github.io/admiral/articles + diff --git a/inst/WORDLIST b/inst/WORDLIST index 6ab568f1ab..ed3a07b251 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -5,7 +5,6 @@ ADEX ADJAE ADLB ADLBHY -adlbhy ADMH ADNCA ADPC @@ -26,7 +25,6 @@ ARRLT ASEQ AST ASTDTM -aspartate ATC ATOXGR AVAL @@ -35,13 +33,13 @@ Alanine Analyte Aspartate BDS +BILI BLQ BMI BOR Basetype Bazett Bazett's -BILI Biologics CDISC COVID @@ -55,9 +53,8 @@ CTCAEv CVD Chol Creatinine -D'Agostino -DILI DIABP +DILI DT DTC DTF @@ -76,6 +73,7 @@ Framingham Fridericia Fridericia's Fujimoto +GDS GGT GSK Gehan @@ -84,6 +82,7 @@ GxP HDL Haptoglobin Hoffmann +Hy's Hypercalcemia Hyperkalemia Hypermagnesemia @@ -96,7 +95,6 @@ Hypokalemia Hypomagnesemia Hyponatremia Hypophosphatemia -Hy's IG INR LLC @@ -132,7 +130,6 @@ Pharmacokinetics Pre QD QID -Quosures README SCE SCN @@ -161,6 +158,7 @@ Takahira Timepoint ULN USUBJID +USUBJIDs VAD WBC XXXXXXXX @@ -169,17 +167,20 @@ adamig adeg adex adlb +adlbhy admiralci admiralxxx adpc adsl advs +adxx alanine aminotransferase analyte analytes analytics anticoagulation +aspartate atoxgr basetypes bds @@ -210,7 +211,6 @@ findable fmt framingham funder -GDS groupwise hms https @@ -222,7 +222,6 @@ mmHg mmol modularized msec -nolint occds onwards parttime @@ -238,7 +237,6 @@ rlang roche roxygen scalable -str submittable subperiod subperiods @@ -254,6 +252,6 @@ tte ungrouped usethis www +xULN xportr xpt -xULN diff --git a/man/hello_admiral.Rd b/man/hello_admiral.Rd new file mode 100644 index 0000000000..029e03982b --- /dev/null +++ b/man/hello_admiral.Rd @@ -0,0 +1,31 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/my_first_fcn.R +\name{hello_admiral} +\alias{hello_admiral} +\title{Derive Extension Example #' +Says hello admiral} +\usage{ +hello_admiral(hw = TRUE) +} +\arguments{ +\item{hw}{TRUE or FALSE} +} +\value{ +Happy Message +} +\description{ +Derive Extension Example #' +Says hello admiral +} +\details{ +Something Something +} +\examples{ +hello_admiral(hw = FALSE) + +} +\author{ +Open Source +} +\concept{der_adxx} +\keyword{der_adxx} diff --git a/renv/settings.json b/renv/settings.json new file mode 100644 index 0000000000..269f74fca1 --- /dev/null +++ b/renv/settings.json @@ -0,0 +1,22 @@ +{ + "bioconductor.version": [], + "external.libraries": [], + "ignored.packages": [ + "admiral", + "admiraldev", + "admiral.test", + "admiralci" + ], + "package.dependency.fields": [ + "Imports", + "Depends", + "LinkingTo" + ], + "r.version": [], + "snapshot.type": "custom", + "use.cache": true, + "vcs.ignore.cellar": true, + "vcs.ignore.library": true, + "vcs.ignore.local": true, + "vcs.manage.ignores": true +} diff --git a/tests/testthat/test-my_first_fcn.R b/tests/testthat/test-my_first_fcn.R new file mode 100644 index 0000000000..b1f7233e19 --- /dev/null +++ b/tests/testthat/test-my_first_fcn.R @@ -0,0 +1,13 @@ +test_that("hello admiral greets without hw", { + expect_message( + hello_admiral(), + "^Welcome to the admiral family!\\n" + ) +}) + +test_that("hello admiral greets with hw", { + expect_message( + hello_admiral(TRUE), + "^Welcome to the admiral family!\\n" + ) +})