Whenever I pass in a large number of arguments I hit the following error "Error in rjson::fromJSON(output) : unclosed string". Here's a minimal example
parser <- ArgumentParser()
parser$add_argument("--lotsofstuff", type = "character", nargs = "+")
parser$parse_args(c("--lotsofstuff", rep("stuff", 100))) # works
parser$parse_args(c("--lotsofstuff", rep("stuff", 1000))) # doesn't work
parser$parse_args(c("--lotsofstuff", rep("stuff", 898))) # first error
parser$parse_args(c("--lotsofstuff", rep("stuf", 1000))) # "stuf" vs "stuff"
Whenever I pass in a large number of arguments I hit the following error "Error in rjson::fromJSON(output) : unclosed string". Here's a minimal example