{"action":"opened","issue":{"url":"https://api.github.com/repos/PredictiveEcology/reproducible/issues/49","repository_url":"https://api.github.com/repos/PredictiveEcology/reproducible","labels_url":"https://api.github.com/repos/PredictiveEcology/reproducible/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/PredictiveEcology/reproducible/issues/49/comments","events_url":"https://api.github.com/repos/PredictiveEcology/reproducible/issues/49/events","html_url":"https://github.com/PredictiveEcology/reproducible/issues/49","id":353515225,"node_id":"MDU6SXNzdWUzNTM1MTUyMjU=","number":49,"title":"checkPaths should only be used for directories","user":{"login":"achubaty","id":3435577,"node_id":"MDQ6VXNlcjM0MzU1Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/3435577?v=4","gravatar_id":"","url":"https://api.github.com/users/achubaty","html_url":"https://github.com/achubaty","followers_url":"https://api.github.com/users/achubaty/followers","following_url":"https://api.github.com/users/achubaty/following{/other_user}","gists_url":"https://api.github.com/users/achubaty/gists{/gist_id}","starred_url":"https://api.github.com/users/achubaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achubaty/subscriptions","organizations_url":"https://api.github.com/users/achubaty/orgs","repos_url":"https://api.github.com/users/achubaty/repos","events_url":"https://api.github.com/users/achubaty/events{/privacy}","received_events_url":"https://api.github.com/users/achubaty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T19:11:22Z","updated_at":"2018-08-23T19:11:22Z","closed_at":null,"author_association":"COLLABORATOR","body":"This needs clarification in docs, as checking a path to a file will fail (because it's checking for the existence of a directory!).\r\n\r\nMaking this work for files will be tricky because we have no way of knowing if a path [that doesn't exist] is to a file or a directory...\r\n\r\n- `utils::file_test(\"-d\", path)` will check for existence and whether it's a directory\r\n- `utils::file_test(\"-f\", path)` will check for existence and whether it's a file\r\n\r\n"}}
{"actor":{"display_login":"achubaty"}}