inst/extdata/example_project/R/utils.R

# utility function

utility_example <- function(x = TRUE) {
  if (x) {
    if(!x){
    "not run"
    }
    "example_utility_function"
  } else{
    "something_else"
  }
}

utility_example2 <- function(){

  "function without a test"
}

# Bare code - not a function
x = 15
if(x == 20) {
  x <- "impossible"
} else {
  x <- "Hello World"
}

Try the assertHE package in your browser

Any scripts or data that you put into this service are public.

assertHE documentation built on June 8, 2025, 10:08 a.m.