{ "metadata": { "kernelspec": { "codemirror_mode": "R", "display_name": "R", "language": "R", "name": "ir" }, "name": "", "signature": "sha256:769b53de9bc90dc3041db26edc113bb1a72abdd9c76947f292e60f3eefa53f70" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Basic operations" ] }, { "cell_type": "code", "collapsed": false, "input": [ "print(\"Hello world! Love, R in IPython.\")" ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "code", "collapsed": false, "input": [ "a = 1:78\n", "a ^ 2" ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Plotting works too:" ] }, { "cell_type": "code", "collapsed": false, "input": [ "x = seq(0, 2*pi, length.out=50)\n", "plot(x, sin(x))" ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "No tab completion yet - come and implement it!" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Rich display" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "There is a separate `IRdisplay` package with the display API - it will be possible to use the same function calls with `%%R` magics from the IPython kernel.\n", "\n", "The plotting example above uses `display_png`." ] }, { "cell_type": "code", "collapsed": false, "input": [ "library(IRdisplay)\n", "\n", "display_html('Repo: takluyver/IRkernel