{"action":"closed","issue":{"url":"https://api.github.com/repos/PrairieLearn/PrairieLearn/issues/1009","repository_url":"https://api.github.com/repos/PrairieLearn/PrairieLearn","labels_url":"https://api.github.com/repos/PrairieLearn/PrairieLearn/issues/1009/labels{/name}","comments_url":"https://api.github.com/repos/PrairieLearn/PrairieLearn/issues/1009/comments","events_url":"https://api.github.com/repos/PrairieLearn/PrairieLearn/issues/1009/events","html_url":"https://github.com/PrairieLearn/PrairieLearn/issues/1009","id":293026191,"number":1009,"title":"Enable rpy2","user":{"login":"coatless","id":833642,"avatar_url":"https://avatars1.githubusercontent.com/u/833642?v=4","gravatar_id":"","url":"https://api.github.com/users/coatless","html_url":"https://github.com/coatless","followers_url":"https://api.github.com/users/coatless/followers","following_url":"https://api.github.com/users/coatless/following{/other_user}","gists_url":"https://api.github.com/users/coatless/gists{/gist_id}","starred_url":"https://api.github.com/users/coatless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coatless/subscriptions","organizations_url":"https://api.github.com/users/coatless/orgs","repos_url":"https://api.github.com/users/coatless/repos","events_url":"https://api.github.com/users/coatless/events{/privacy}","received_events_url":"https://api.github.com/users/coatless/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-31T04:18:20Z","updated_at":"2018-02-22T18:36:07Z","closed_at":"2018-02-22T18:36:07Z","author_association":"CONTRIBUTOR","body":"[rpy2](https://rpy2.bitbucket.io) is a way of calling _R_ code from _Python_ and receiving the results.\r\n\r\nThis would primarily be used in the `server.py`'s  `generate(data)` function to select existing _R_ data sets and create _R_ specific graphs (e.g. `ggplot2`) to be rendered dynamically to students.\r\n\r\nTo do:\r\n\r\n- [ ] Modify the [`Docker`](https://github.com/PrairieLearn/PrairieLearn/blob/master/Dockerfile)\r\n    - Add `R` (this gives R 3.4.3) after \r\n\r\nhttps://github.com/PrairieLearn/PrairieLearn/blob/8af3916e75d250e407bab7bf688820189c695572/Dockerfile#L17\r\n\r\n- [ ] Add to the [requirements.txt](https://github.com/PrairieLearn/PrairieLearn/blob/8af3916e75d250e407bab7bf688820189c695572/requirements.txt) file `rpy2==2.9.1`\r\n\r\n**Note:** I may need to add a call to `Rscript` to install a set of _R_ packages for the `ggplot2` call. \r\nc.f. https://rpy2.github.io/doc/latest/html/graphics.html#package-ggplot2\r\n\r\n\r\nThis should wait until #1008 is complete. Related to #970 (in the sense of bringing _R_ online). \r\n"}}
{"actor":{"display_login":"coatless"}}