{"action":"created","issue":{"url":"https://api.github.com/repos/jeroenooms/opencpu/issues/113","labels_url":"https://api.github.com/repos/jeroenooms/opencpu/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/jeroenooms/opencpu/issues/113/comments","events_url":"https://api.github.com/repos/jeroenooms/opencpu/issues/113/events","html_url":"https://github.com/jeroenooms/opencpu/issues/113","id":45264924,"number":113,"title":"updating packages in /usr/lib/opencpu/library","user":{"login":"erikriverson","id":122208,"avatar_url":"https://avatars.githubusercontent.com/u/122208?v=3","gravatar_id":"","url":"https://api.github.com/users/erikriverson","html_url":"https://github.com/erikriverson","followers_url":"https://api.github.com/users/erikriverson/followers","following_url":"https://api.github.com/users/erikriverson/following{/other_user}","gists_url":"https://api.github.com/users/erikriverson/gists{/gist_id}","starred_url":"https://api.github.com/users/erikriverson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikriverson/subscriptions","organizations_url":"https://api.github.com/users/erikriverson/orgs","repos_url":"https://api.github.com/users/erikriverson/repos","events_url":"https://api.github.com/users/erikriverson/events{/privacy}","received_events_url":"https://api.github.com/users/erikriverson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-10-08T16:23:33Z","updated_at":"2015-01-21T04:33:04Z","closed_at":null,"body":"With the Ubuntu OpenCPU Cloud Server, are there any problems you see with admins keeping the packages in /usr/lib/opencpu/library up to date? \r\n\r\nWhen a function is called from the OpenCPU Github API, this is the value of .libPaths()\r\n\r\n[\r\n\t\"/tmp/ocpu-www-data/github_library/[[path_to_package]] \r\n\t\"/usr/lib/opencpu/library\",\r\n\t\"/usr/local/lib/R/site-library\",\r\n\t\"/usr/lib/R/site-library\",\r\n\t\"/usr/lib/R/library\"\r\n]\r\n\r\nConsider a package accessed through the OpenCPU Github API (Package A) that imports a package that happens to be contained in /usr/lib/opencpu/library (Package B), and Package B's version is too old to successfully install Package A. \r\n\r\nUsing install_github from the R console on the OpenCPU server machine works, since \"/usr/lib/opencpu/library\" is not in .libPaths() at that point. But then we lose the CI features with OpenCPU/Github webhook integration. \r\n"},"comment":{"url":"https://api.github.com/repos/jeroenooms/opencpu/issues/comments/70783141","html_url":"https://github.com/jeroenooms/opencpu/issues/113#issuecomment-70783141","issue_url":"https://api.github.com/repos/jeroenooms/opencpu/issues/113","id":70783141,"user":{"login":"jeroenooms","id":216319,"avatar_url":"https://avatars.githubusercontent.com/u/216319?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenooms","html_url":"https://github.com/jeroenooms","followers_url":"https://api.github.com/users/jeroenooms/followers","following_url":"https://api.github.com/users/jeroenooms/following{/other_user}","gists_url":"https://api.github.com/users/jeroenooms/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenooms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenooms/subscriptions","organizations_url":"https://api.github.com/users/jeroenooms/orgs","repos_url":"https://api.github.com/users/jeroenooms/repos","events_url":"https://api.github.com/users/jeroenooms/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenooms/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T04:33:04Z","updated_at":"2015-01-21T04:33:04Z","body":"The `/usr/lib/opencpu/library` directory contains R packages included with `opencpu-server` that are needed for the opencpu system itself to function. It is deliberately a separate frozen library to ensure that the system is stable and will not be affected by other packages installed or updated on the server.\r\n\r\nThe only way you should be updating this library is by updating the `opencpu-server` ubuntu package:\r\n\r\n    sudo apt-get update\r\n    sudo apt-get upgrade\r\n\r\nThe latest version of `opencpu-server` will contain the most recent versions of all R packages (including jsonlite 0.9.14)."}}