{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/devtools/issues/963","labels_url":"https://api.github.com/repos/hadley/devtools/issues/963/labels{/name}","comments_url":"https://api.github.com/repos/hadley/devtools/issues/963/comments","events_url":"https://api.github.com/repos/hadley/devtools/issues/963/events","html_url":"https://github.com/hadley/devtools/issues/963","id":113939172,"number":963,"title":"load_all(\"PackageName\") fails","user":{"login":"kenahoo","id":111939,"avatar_url":"https://avatars.githubusercontent.com/u/111939?v=3","gravatar_id":"","url":"https://api.github.com/users/kenahoo","html_url":"https://github.com/kenahoo","followers_url":"https://api.github.com/users/kenahoo/followers","following_url":"https://api.github.com/users/kenahoo/following{/other_user}","gists_url":"https://api.github.com/users/kenahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kenahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenahoo/subscriptions","organizations_url":"https://api.github.com/users/kenahoo/orgs","repos_url":"https://api.github.com/users/kenahoo/repos","events_url":"https://api.github.com/users/kenahoo/events{/privacy}","received_events_url":"https://api.github.com/users/kenahoo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-28T22:27:25Z","updated_at":"2015-10-29T15:19:50Z","closed_at":"2015-10-29T12:56:04Z","body":"This fails:\r\n\r\n```\r\n> load_all(\"PackageName\")\r\nError: Can't find directory PackageName\r\n```\r\n\r\nThe `load_all` function says it can accept a \"package description, can be path or package name. See `as.package` for more information.\"\r\n\r\n`as.package` says it can accept a \"path\" or \"package object\", but doesn't say how to create a package object.  It seems to be literally looking for something of class `\"package\"`, but blessing a name into that package doesn't help:\r\n\r\n```\r\n> load_all(structure(\"PackageName\", class=\"package\"))\r\nError in pkg$package : $ operator is invalid for atomic vectors\r\n```\r\n\r\nWhat's the proper way to do this?\r\n\r\nI'm using devtools 1.9.1 on R 3.2.2."},"comment":{"url":"https://api.github.com/repos/hadley/devtools/issues/comments/152212110","html_url":"https://github.com/hadley/devtools/issues/963#issuecomment-152212110","issue_url":"https://api.github.com/repos/hadley/devtools/issues/963","id":152212110,"user":{"login":"kenahoo","id":111939,"avatar_url":"https://avatars.githubusercontent.com/u/111939?v=3","gravatar_id":"","url":"https://api.github.com/users/kenahoo","html_url":"https://github.com/kenahoo","followers_url":"https://api.github.com/users/kenahoo/followers","following_url":"https://api.github.com/users/kenahoo/following{/other_user}","gists_url":"https://api.github.com/users/kenahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kenahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenahoo/subscriptions","organizations_url":"https://api.github.com/users/kenahoo/orgs","repos_url":"https://api.github.com/users/kenahoo/repos","events_url":"https://api.github.com/users/kenahoo/events{/privacy}","received_events_url":"https://api.github.com/users/kenahoo/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T15:19:50Z","updated_at":"2015-10-29T15:19:50Z","body":"Given all that, I think there's still a bug here - `load_all` says it can take a package name, so that's a doc bug;  and if it really can only take a path string, then the code that's looking for a `package` object is also a code bug that should be removed."}}