{"action":"created","issue":{"url":"https://api.github.com/repos/emacs-ess/ESS/issues/299","repository_url":"https://api.github.com/repos/emacs-ess/ESS","labels_url":"https://api.github.com/repos/emacs-ess/ESS/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/emacs-ess/ESS/issues/299/comments","events_url":"https://api.github.com/repos/emacs-ess/ESS/issues/299/events","html_url":"https://github.com/emacs-ess/ESS/issues/299","id":138680877,"number":299,"title":"make `ess-load-library` generic","user":{"login":"tpapp","id":84122,"avatar_url":"https://avatars.githubusercontent.com/u/84122?v=3","gravatar_id":"","url":"https://api.github.com/users/tpapp","html_url":"https://github.com/tpapp","followers_url":"https://api.github.com/users/tpapp/followers","following_url":"https://api.github.com/users/tpapp/following{/other_user}","gists_url":"https://api.github.com/users/tpapp/gists{/gist_id}","starred_url":"https://api.github.com/users/tpapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpapp/subscriptions","organizations_url":"https://api.github.com/users/tpapp/orgs","repos_url":"https://api.github.com/users/tpapp/repos","events_url":"https://api.github.com/users/tpapp/events{/privacy}","received_events_url":"https://api.github.com/users/tpapp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-05T13:47:08Z","updated_at":"2016-03-06T07:49:37Z","closed_at":null,"body":"If possible, it would be nice to make `ess-load-library` generic, so that I could define it for Julia. Currently it checks `ess-dialect` and aborts if it is not R.\r\n\r\nI understand that something more complicated than a simple string expansion (like `ess-setwd-command` for `ess-set-directory`) would be required. Possibly `ess-load-library` could call a `ess-load-library-function` when not `nil`. If would be happy to submit a PR, but not sure how to organize the code, since prompting with completion assumes a list of packages (eg if it is nil, there could be no completion for some dialects). A separate function could govern completion, but maybe that is getting to be too complicated.\r\n\r\nIn Julia, I would use `Base.reload`, with the assumption that one uses this feature during interactive development."},"comment":{"url":"https://api.github.com/repos/emacs-ess/ESS/issues/comments/192823961","html_url":"https://github.com/emacs-ess/ESS/issues/299#issuecomment-192823961","issue_url":"https://api.github.com/repos/emacs-ess/ESS/issues/299","id":192823961,"user":{"login":"tpapp","id":84122,"avatar_url":"https://avatars.githubusercontent.com/u/84122?v=3","gravatar_id":"","url":"https://api.github.com/users/tpapp","html_url":"https://github.com/tpapp","followers_url":"https://api.github.com/users/tpapp/followers","following_url":"https://api.github.com/users/tpapp/following{/other_user}","gists_url":"https://api.github.com/users/tpapp/gists{/gist_id}","starred_url":"https://api.github.com/users/tpapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpapp/subscriptions","organizations_url":"https://api.github.com/users/tpapp/orgs","repos_url":"https://api.github.com/users/tpapp/repos","events_url":"https://api.github.com/users/tpapp/events{/privacy}","received_events_url":"https://api.github.com/users/tpapp/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T07:49:37Z","updated_at":"2016-03-06T07:49:37Z","body":"@vspinu, the following would list all packages:\r\n```julia\r\ncollect(keys(Pkg.installed()))\r\n```\r\nas an array of strings.\r\n\r\n`Pkg.add(package_name_as_string)` would install a package (that is registered, installing from a git repo is different but I doubt we need special support for that).\r\n\r\nIf you can add these for Julia that would be fine, but if you prefer I would be happy to submit PRs once the hooks are in place."}}