tests/testthat/test-functions.R

test_that("test functions.R is correctly copied", {
  skip("manual test")
  fileInst <- file.path(here::here(), "inst", "functions.R")
  fileR <- file.path(here::here(), "R", "functions.R")

  functionsInst <- readLines(fileInst)
  functionsR <- readLines(fileR)

  expect_identical(functionsInst, functionsR)

  # code to copy
  #file.copy(from = here::here("R", "functions.R"), to = here::here("inst", "functions.R"), overwrite = TRUE)
})

Try the OmopViewer package in your browser

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

OmopViewer documentation built on April 15, 2025, 5:08 p.m.