Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
^pkgdown$
^_pkgdown\.yml$
^.github$
^.lintr$
^.lintr.R$
^docs$
^Meta$
^codecov\.yml$
Expand Down
76 changes: 0 additions & 76 deletions .devcontainer/4.1/devcontainer.json

This file was deleted.

76 changes: 0 additions & 76 deletions .devcontainer/4.2/devcontainer.json

This file was deleted.

76 changes: 0 additions & 76 deletions .devcontainer/devcontainer.json

This file was deleted.

11 changes: 0 additions & 11 deletions .devcontainer/postCreateCommand.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .devcontainer/rstudio-prefs.json

This file was deleted.

5 changes: 0 additions & 5 deletions .devcontainer/rstudio.sh

This file was deleted.

1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# Code owners are automatically requested for review when someone opens a pull request
# that modifies code that they own. In this instance, cicdguy will be notified of any
# changes made the files inside the .github/workflows directory.
.github/workflows/* @cicdguy
13 changes: 0 additions & 13 deletions .lintr

This file was deleted.

15 changes: 15 additions & 0 deletions .lintr.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# source in temporary environment to avoid changing the global environment
temp_env <- new.env(parent = globalenv())

source(system.file("lintr/linters.R", package = "admiraldev"), local = temp_env)

linters <- temp_env$admiral_linters()

# remove temporary environment to avoid lintr warning regarding "unused settings"
rm(temp_env)

exclusions <- list(
"R/data.R" = Inf,
"inst" = list(undesirable_function_linter = Inf),
"vignettes" = list(undesirable_function_linter = Inf)
)
23 changes: 14 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ Type: Package
Package: admiraltemplate
Title: ADaM in R Asset Library - Extension Package for `<<INSERT TA>>`
Version: 0.1.0
Authors@R:
person("Open", "Source", , "admiraltemplate@pharmaverse.com", role = c("aut", "cre"))
Authors@R: c(
person("Open", "Source", , "admiraltemplate@pharmaverse.com", role = c("aut", "cre")),
person("Company", role = c("cph", "fnd"))
)
Description: A toolbox for programming Clinical Data Standards Interchange
Consortium (CDISC) compliant Analysis Data Model (ADaM) datasets in R.
ADaM datasets are a mandatory part of any New Drug or Biologics
Expand All @@ -19,9 +21,9 @@ URL: https://pharmaverse.github.io/admiraltemplate,
Depends:
R (>= 4.1)
Imports:
admiral (>= 1.0.0),
admiraldev (>= 1.0.0),
dplyr (>= 1.0.5),
admiraldev (>= 1.4.0),
cli (>= 3.6.2),
dplyr (>= 1.1.1),
hms (>= 0.5.3),
lifecycle (>= 0.1.0),
lubridate (>= 1.7.4),
Expand All @@ -34,20 +36,23 @@ Imports:
Suggests:
diffdf,
DT,
here,
htmltools,
knitr,
methods,
pharmaversesdtm (>= 0.2.0),
pharmaversesdtm (>= 1.0.0),
reactable,
readxl,
rmarkdown,
testthat (>= 3.0.0),
tibble
tibble,
withr
VignetteBuilder:
knitr
Config/testthat/edition: 3
Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Roxygen: list(markdown = TRUE, roclets = c("collate", "namespace",
"admiraldev::rdx_roclet"))
RoxygenNote: 7.3.3
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ recommend that a file or class name and description of purpose be included on
the same "printed page" as the copyright notice for easier identification within
third-party archives.

Copyright `<<INSERT YEAR>>` `<<INSERT CO-DEVELOPMENT PARTNER COMPANIES AS LICENSE HOLDERS>>`
Copyright `Year: <<INSERT YEAR>>` `License Holders: <<INSERT CO-DEVELOPMENT PARTNER COMPANIES AS LICENSE HOLDERS>>`

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
11 changes: 8 additions & 3 deletions R/my_first_fcn.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
#'
#' Says hello admiral
#'
#' @param hw TRUE or FALSE
#' @param hw Boolean determining whether a hello message is returned.
#'
#' @permitted [boolean]
#'
#' @details In the roxygen documentation you will find tags for family and keywords.
#' This is to create organized sections for the Reference tab on the pkgdown website.
#' You can modify the `_pkgdown.yml` as necessary to create appropriate sections as necessary.
#' Under `./man/roxygen/meta.R`, you will find where to store these family/keywords.
#' You will also find custom permitted text under `./man/roxygen/rdx_meta.R` to
#' standardize argument text.
#'
#' @return Happy Message
#' @return A message
#'
#' @family der_adxx
#'
Expand All @@ -18,11 +22,12 @@
#' @export
#'
#' @examples
#' hello_admiral()
#' hello_admiral(hw = FALSE)
hello_admiral <- function(hw = TRUE) {
if (hw) {
message("Welcome to the admiral family!")

Check warning on line 29 in R/my_first_fcn.R

View workflow job for this annotation

GitHub Actions / Lint / Lint

file=R/my_first_fcn.R,line=29,col=5,[undesirable_function_linter] Avoid undesirable function "message". As an alternative, please use cli_inform() from the {cli} package.
} else {
message("Welcome to the admiral family!")
message("<crickets>")

Check warning on line 31 in R/my_first_fcn.R

View workflow job for this annotation

GitHub Actions / Lint / Lint

file=R/my_first_fcn.R,line=31,col=5,[undesirable_function_linter] Avoid undesirable function "message". As an alternative, please use cli_inform() from the {cli} package.
}
}
Loading
Loading