{"action":"created","issue":{"url":"https://api.github.com/repos/eddelbuettel/littler/issues/41","repository_url":"https://api.github.com/repos/eddelbuettel/littler","labels_url":"https://api.github.com/repos/eddelbuettel/littler/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/eddelbuettel/littler/issues/41/comments","events_url":"https://api.github.com/repos/eddelbuettel/littler/issues/41/events","html_url":"https://github.com/eddelbuettel/littler/issues/41","id":169707361,"number":41,"title":"Use littler to find and run an R script with arguments","user":{"login":"1beb","id":421859,"avatar_url":"https://avatars.githubusercontent.com/u/421859?v=3","gravatar_id":"","url":"https://api.github.com/users/1beb","html_url":"https://github.com/1beb","followers_url":"https://api.github.com/users/1beb/followers","following_url":"https://api.github.com/users/1beb/following{/other_user}","gists_url":"https://api.github.com/users/1beb/gists{/gist_id}","starred_url":"https://api.github.com/users/1beb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1beb/subscriptions","organizations_url":"https://api.github.com/users/1beb/orgs","repos_url":"https://api.github.com/users/1beb/repos","events_url":"https://api.github.com/users/1beb/events{/privacy}","received_events_url":"https://api.github.com/users/1beb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-05T22:21:19Z","updated_at":"2016-08-06T02:00:02Z","closed_at":null,"body":"Lets' say I have a package installed, within that package I have a script file that I need to run with arguments, but I don't always know where its installed.\r\n\r\nI'd like to feed the results of `R -e 'system.find(\"scripts\",\"file.r\",package=\"mypackage\")'` to `Rscript` such that it runs like: \r\n\r\n```\r\nRscript result arg1 arg2 arg3 arg4 \r\n```\r\n\r\nIs that possible with littler?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eddelbuettel/littler/issues/comments/238000024","html_url":"https://github.com/eddelbuettel/littler/issues/41#issuecomment-238000024","issue_url":"https://api.github.com/repos/eddelbuettel/littler/issues/41","id":238000024,"user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T02:00:01Z","updated_at":"2016-08-06T02:00:01Z","body":"Looks good!  Regarding your questions:\r\n\r\n> The only thing I'm not sure about is that if the system.file() returns nothing, I think it should be an error for the user but I'm not sure how to raise the error. Is it just stop? \r\n\r\nPretty much. When `system.file()` cannot find the file it returns `\"\"`` which we can (and should) test for.\r\n\r\n>  I'm also not sure how I should invoke the script itself, I'm just using RScript below.\r\n\r\nStandard Unix 'shebang' (Google it!) style -- `#!/usr/bin/e`, or if you like the indirection `#!/usr/bin/env r`.  If you're on Windoze, none of that works."}}
{"actor":{"display_login":"eddelbuettel"}}