{"action":"closed","issue":{"url":"https://api.github.com/repos/trevorld/argparse/issues/10","labels_url":"https://api.github.com/repos/trevorld/argparse/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/trevorld/argparse/issues/10/comments","events_url":"https://api.github.com/repos/trevorld/argparse/issues/10/events","html_url":"https://github.com/trevorld/argparse/issues/10","id":91680300,"number":10,"title":"\"Unclosed string\" error for large number of args","user":{"login":"tpospisi","id":8901856,"avatar_url":"https://avatars.githubusercontent.com/u/8901856?v=3","gravatar_id":"","url":"https://api.github.com/users/tpospisi","html_url":"https://github.com/tpospisi","followers_url":"https://api.github.com/users/tpospisi/followers","following_url":"https://api.github.com/users/tpospisi/following{/other_user}","gists_url":"https://api.github.com/users/tpospisi/gists{/gist_id}","starred_url":"https://api.github.com/users/tpospisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpospisi/subscriptions","organizations_url":"https://api.github.com/users/tpospisi/orgs","repos_url":"https://api.github.com/users/tpospisi/repos","events_url":"https://api.github.com/users/tpospisi/events{/privacy}","received_events_url":"https://api.github.com/users/tpospisi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-29T03:07:44Z","updated_at":"2015-07-01T18:12:33Z","closed_at":"2015-07-01T18:12:33Z","body":"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\r\n\r\n```r\r\nparser <- ArgumentParser()\r\nparser$add_argument(\"--lotsofstuff\", type = \"character\", nargs = \"+\")\r\nparser$parse_args(c(\"--lotsofstuff\", rep(\"stuff\", 100)))  # works\r\nparser$parse_args(c(\"--lotsofstuff\", rep(\"stuff\", 1000))) # doesn't work\r\nparser$parse_args(c(\"--lotsofstuff\", rep(\"stuff\", 898))) # first error\r\nparser$parse_args(c(\"--lotsofstuff\", rep(\"stuf\", 1000))) # \"stuf\" vs \"stuff\"\r\n```"}}