tests/testthat/test-argparser.R

withr::with_output_sink("test-argparser.Rout", {
test_that("argparse", {
  params_def <- data.frame(name =".param", type ="s", short = "-p", long=NA, default=NA, domain=NA, description="")
  parser <- irace:::CommandArgsParser$new("-p 'something something'", params_def)
  expect_length(parser$argv, 2L)
})
})

Try the irace package in your browser

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

irace documentation built on April 3, 2025, 10:03 p.m.