tests/testthat/check_loging.R

(calls <- sys.calls())
commands <- sapply(calls, function(x) {
  as.character(x)[1]
})
commands
index <- grep("source(?!_)", commands, perl=TRUE)
index
as.character(calls[[max(index)]])[2]

get_file_name()
shug0131/cctu documentation built on Nov. 10, 2023, 12:03 p.m.