tests/test_script_file.R

library(gtools)

# For debugging conveneince
cmdArgs <- commandArgs(trailingOnly = FALSE)
print(cmdArgs)

file <- script_file("warning")
cat("script_file:", file, "\n")
stopifnot(endsWith(file, "test_script_file.R"))

path <- script_path("warning")
cat("script_path:", path, "\n")
# stopifnot(endsWith(path, "tests"))

# save.image("test_script_file.Rda")

Try the gtools package in your browser

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

gtools documentation built on Nov. 20, 2023, 5:07 p.m.