{"action":"created","issue":{"url":"https://api.github.com/repos/trinker/pacman/issues/63","labels_url":"https://api.github.com/repos/trinker/pacman/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/trinker/pacman/issues/63/comments","events_url":"https://api.github.com/repos/trinker/pacman/issues/63/events","html_url":"https://github.com/trinker/pacman/issues/63","id":58478046,"number":63,"title":"Suggested check for pacman install","user":{"login":"trinker","id":1763278,"avatar_url":"https://avatars.githubusercontent.com/u/1763278?v=3","gravatar_id":"","url":"https://api.github.com/users/trinker","html_url":"https://github.com/trinker","followers_url":"https://api.github.com/users/trinker/followers","following_url":"https://api.github.com/users/trinker/following{/other_user}","gists_url":"https://api.github.com/users/trinker/gists{/gist_id}","starred_url":"https://api.github.com/users/trinker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinker/subscriptions","organizations_url":"https://api.github.com/users/trinker/orgs","repos_url":"https://api.github.com/users/trinker/repos","events_url":"https://api.github.com/users/trinker/events{/privacy}","received_events_url":"https://api.github.com/users/trinker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/trinker/pacman/labels/Discussion","name":"Discussion","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-21T22:32:40Z","updated_at":"2015-02-25T16:22:47Z","closed_at":null,"body":"Someone who uses **pacman**'s `p_load` in a script is doing so for longer terms sustainability (i.e., they can just run the script).  This of course requires someone has **pacman** installed.  I have two possible means we could suggest doing this for people (the line before using `p_load` in a long term script).  I think we'll want to be consistent in our uses online (TalkStats, StackOverflow, blogging, etc.).  Do you like one over the other?  Additional options?\r\n\r\n```r\r\nif (!require(\"pacman\")) install.packages(\"pacman\")\r\nif (!\"pacman\" %in% dir(.libPaths())) install.packages(\"pacman\")\r\n```\r\n\r\nI like the first because it's less obscure and shorter to me.  "},"comment":{"url":"https://api.github.com/repos/trinker/pacman/issues/comments/75991459","html_url":"https://github.com/trinker/pacman/issues/63#issuecomment-75991459","issue_url":"https://api.github.com/repos/trinker/pacman/issues/63","id":75991459,"user":{"login":"Dasonk","id":549743,"avatar_url":"https://avatars.githubusercontent.com/u/549743?v=3","gravatar_id":"","url":"https://api.github.com/users/Dasonk","html_url":"https://github.com/Dasonk","followers_url":"https://api.github.com/users/Dasonk/followers","following_url":"https://api.github.com/users/Dasonk/following{/other_user}","gists_url":"https://api.github.com/users/Dasonk/gists{/gist_id}","starred_url":"https://api.github.com/users/Dasonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dasonk/subscriptions","organizations_url":"https://api.github.com/users/Dasonk/orgs","repos_url":"https://api.github.com/users/Dasonk/repos","events_url":"https://api.github.com/users/Dasonk/events{/privacy}","received_events_url":"https://api.github.com/users/Dasonk/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T16:22:47Z","updated_at":"2015-02-25T16:22:47Z","body":"The whole point is to bootstrap the process of getting pacman on the system and loaded so I'm not sure why we would want to only load the namespace if we're just going to load the package anyways.\r\n\r\n    if (!require(\"pacman\")) install.packages(\"pacman\"); library(\"pacman\")\r\n\r\nWe probably need to add that additional call to load pacman after we install it.  We probably could/should make something like p_boot which exports these commands as text to make it easy to copy/paste to the top of a script."}}