Skip to content

Commit

Permalink
#107 cmd checks
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar-manukyan committed Dec 2, 2024
1 parent 6e308e1 commit 091dc95
Show file tree
Hide file tree
Showing 12 changed files with 91 additions and 8 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ Suggests:
spelling,
testthat (>= 3.1.7),
DT,
readr
readr,
withr
VignetteBuilder: knitr
Config/testthat/edition: 3
Config/testthat/parallel: true
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export(generate_code)
export(generate_oak_id_vars)
export(hardcode_ct)
export(hardcode_no_ct)
export(is_character)
export(is_numeric)
export(oak_id_vars)
export(problems)
export(read_ct_spec)
Expand Down
5 changes: 2 additions & 3 deletions R/generate_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ is_numeric <- function(var_in) {
#'
#' @param var_in The variable to check.
#'
#' @return
#' @return Logical indicating if the variable is character.
#' @export
#'
is_character <- function(var_in) {
Expand Down Expand Up @@ -248,10 +248,9 @@ remove_last_pipe <- function(code_blocks) {
#' @param spec The specification data frame.
#' @param domain The SDTM domain to get the specification for.
#'
#' @return
#' @return A tibble with the specification for the domain.
#' @keywords internal
#'
#' @examples
get_domain_spec <- function(spec, domain) {
expected_columns <- c(
"raw_dataset",
Expand Down
4 changes: 3 additions & 1 deletion R/globals.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
utils::globalVariables(c(
"USUBJID", "VISIT", "dom_dt", "dom_tm", "ref_dt",
"ref_tm"
"ref_tm", "target_sdtm_domain", "target_sdtm_variable",
"mapping_algorithm", "entity_sub_algorithm", "entity_sub_algorithm",
"entity_sub_algorithm_temp", "condition_add_raw_dat", "raw_dataset"
))
16 changes: 16 additions & 0 deletions man/cm_template_prefix.Rd

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

2 changes: 1 addition & 1 deletion man/expected_columns.Rd

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

1 change: 0 additions & 1 deletion man/generate_code.Rd

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

3 changes: 3 additions & 0 deletions man/get_domain_spec.Rd

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

17 changes: 17 additions & 0 deletions man/is_character.Rd

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

17 changes: 17 additions & 0 deletions man/is_numeric.Rd

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

28 changes: 28 additions & 0 deletions man/parse_into_c_call.Rd

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

1 change: 0 additions & 1 deletion man/read_spec.Rd

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

0 comments on commit 091dc95

Please sign in to comment.