{"action":"created","issue":{"url":"https://api.github.com/repos/r-lib/processx/issues/137","repository_url":"https://api.github.com/repos/r-lib/processx","labels_url":"https://api.github.com/repos/r-lib/processx/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/r-lib/processx/issues/137/comments","events_url":"https://api.github.com/repos/r-lib/processx/issues/137/events","html_url":"https://github.com/r-lib/processx/issues/137","id":341586902,"node_id":"MDU6SXNzdWUzNDE1ODY5MDI=","number":137,"title":"warn users run(args = ) cannot include spaces","user":{"login":"maxheld83","id":5372770,"node_id":"MDQ6VXNlcjUzNzI3NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/5372770?v=4","gravatar_id":"","url":"https://api.github.com/users/maxheld83","html_url":"https://github.com/maxheld83","followers_url":"https://api.github.com/users/maxheld83/followers","following_url":"https://api.github.com/users/maxheld83/following{/other_user}","gists_url":"https://api.github.com/users/maxheld83/gists{/gist_id}","starred_url":"https://api.github.com/users/maxheld83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxheld83/subscriptions","organizations_url":"https://api.github.com/users/maxheld83/orgs","repos_url":"https://api.github.com/users/maxheld83/repos","events_url":"https://api.github.com/users/maxheld83/events{/privacy}","received_events_url":"https://api.github.com/users/maxheld83/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-16T16:21:26Z","updated_at":"2018-07-16T17:21:43Z","closed_at":"2018-07-16T16:37:06Z","author_association":"NONE","body":"Let's say I want to run `ls -a -l`.\r\n\r\nObviously, this is not the same as `ls '-a -l'` (that errors out, because the flags are not treated as, well, flags).\r\n\r\nI ran myself into circles by doing something boneheaded like this:\r\n\r\n```\r\nprocessx::run(command = \"ls\", args = \"-a -l\", echo_cmd = TRUE)\r\n```\r\n\r\nwhich runs the command `Running ls '-a -l'` and deservedly fails.\r\n\r\nI (kinda, sorta?) understand why this was stupid on my part (probably the escaping by `base::shQuote()`).\r\n\r\nHowever, I got confused, because `system2()` *behaves differently*.\r\n\r\n```\r\nsystem2(command = \"ls\", args = '-a -l')\r\n```\r\n\r\nwill actually **work**!\r\n\r\nI understand this might be related to [this bug in system2](https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16127), and anyway, that processx is supposed to be better than this.\r\n\r\nStill, I wondered whether other people might also run into this, transitioning from `system2()` to `processx::run()`, and so might benefit from a warning in the docs.\r\n\r\nIf you agree, I'll try and add a short PR to that effect.\r\n\r\n\r\n\r\n\r\n\r\nI understand (maybe? a little?) why this behavior is necessary to \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/r-lib/processx/issues/comments/405321807","html_url":"https://github.com/r-lib/processx/issues/137#issuecomment-405321807","issue_url":"https://api.github.com/repos/r-lib/processx/issues/137","id":405321807,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTMyMTgwNw==","user":{"login":"maxheld83","id":5372770,"node_id":"MDQ6VXNlcjUzNzI3NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/5372770?v=4","gravatar_id":"","url":"https://api.github.com/users/maxheld83","html_url":"https://github.com/maxheld83","followers_url":"https://api.github.com/users/maxheld83/followers","following_url":"https://api.github.com/users/maxheld83/following{/other_user}","gists_url":"https://api.github.com/users/maxheld83/gists{/gist_id}","starred_url":"https://api.github.com/users/maxheld83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxheld83/subscriptions","organizations_url":"https://api.github.com/users/maxheld83/orgs","repos_url":"https://api.github.com/users/maxheld83/repos","events_url":"https://api.github.com/users/maxheld83/events{/privacy}","received_events_url":"https://api.github.com/users/maxheld83/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T17:21:43Z","updated_at":"2018-07-16T17:21:43Z","author_association":"NONE","body":"Sorry yeah I get that. My point was that system2() is behaving differently and this might be confusing for people."}}
{"actor":{"display_login":"maxheld83"}}