Skip to content

Commit

Permalink
#1839 test implementation 2
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloChaika committed Apr 17, 2023
1 parent 211409b commit 5aaf2e7
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 10 deletions.
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
8 changes: 4 additions & 4 deletions R/my_first_fcn.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#' @examples
#' hello_admiral(hw = FALSE)
#'
hello_admiral <- function (hw = TRUE) {
hello_admiral <- function(hw = TRUE) {
if (hw) {
message ("Welcome to the admiral family!") }
else {
message ("Welcome to the admiral family!")
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

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
}
4 changes: 2 additions & 2 deletions R/test-my_first_fcn.R → tests/testthat/test-my_first_fcn.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
test_that ("hello admiral greets without hw", {
test_that("hello admiral greets without hw", {
expect_message(
hello_admiral(),
"^Welcome to the admiral family!\\n"
)
})

test_that ("hello admiral greets with hw", {
test_that("hello admiral greets with hw", {
expect_message(
hello_admiral(TRUE),
"^Welcome to the admiral family!\\n"
Expand Down

0 comments on commit 5aaf2e7

Please sign in to comment.