Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closes #1839 dummy function created #1866

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# admiral test

Hello :-)

# admiral 0.11.0

## New Features
Expand Down
23 changes: 23 additions & 0 deletions R/my_first_fcn.R
Original file line number Diff line number Diff line change
@@ -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!")
}
}
5 changes: 5 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
9 changes: 5 additions & 4 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pandoc: 2.14.0.3
pandoc: 2.19.2
pkgdown: 2.0.6
pkgdown_sha: ~
articles:
Expand All @@ -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

20 changes: 9 additions & 11 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ADEX
ADJAE
ADLB
ADLBHY
adlbhy
ADMH
ADNCA
ADPC
Expand All @@ -26,7 +25,6 @@ ARRLT
ASEQ
AST
ASTDTM
aspartate
ATC
ATOXGR
AVAL
Expand All @@ -35,13 +33,13 @@ Alanine
Analyte
Aspartate
BDS
BILI
BLQ
BMI
BOR
Basetype
Bazett
Bazett's
BILI
Biologics
CDISC
COVID
Expand All @@ -55,9 +53,8 @@ CTCAEv
CVD
Chol
Creatinine
D'Agostino
DILI
DIABP
DILI
DT
DTC
DTF
Expand All @@ -76,6 +73,7 @@ Framingham
Fridericia
Fridericia's
Fujimoto
GDS
GGT
GSK
Gehan
Expand All @@ -84,6 +82,7 @@ GxP
HDL
Haptoglobin
Hoffmann
Hy's
Hypercalcemia
Hyperkalemia
Hypermagnesemia
Expand All @@ -96,7 +95,6 @@ Hypokalemia
Hypomagnesemia
Hyponatremia
Hypophosphatemia
Hy's
IG
INR
LLC
Expand Down Expand Up @@ -132,7 +130,6 @@ Pharmacokinetics
Pre
QD
QID
Quosures
README
SCE
SCN
Expand Down Expand Up @@ -161,6 +158,7 @@ Takahira
Timepoint
ULN
USUBJID
USUBJIDs
VAD
WBC
XXXXXXXX
Expand All @@ -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
Expand Down Expand Up @@ -210,7 +211,6 @@ findable
fmt
framingham
funder
GDS
groupwise
hms
https
Expand All @@ -222,7 +222,6 @@ mmHg
mmol
modularized
msec
nolint
occds
onwards
parttime
Expand All @@ -238,7 +237,6 @@ rlang
roche
roxygen
scalable
str
submittable
subperiod
subperiods
Expand All @@ -254,6 +252,6 @@ tte
ungrouped
usethis
www
xULN
xportr
xpt
xULN
31 changes: 31 additions & 0 deletions man/hello_admiral.Rd

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

22 changes: 22 additions & 0 deletions renv/settings.json
Original file line number Diff line number Diff line change
@@ -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
}
13 changes: 13 additions & 0 deletions tests/testthat/test-my_first_fcn.R
Original file line number Diff line number Diff line change
@@ -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"
)
})