|
40 | 40 | }, |
41 | 41 | { |
42 | 42 | "cell_type": "code", |
43 | | - "execution_count": 4, |
| 43 | + "execution_count": 3, |
44 | 44 | "metadata": { |
45 | 45 | "collapsed": false |
46 | 46 | }, |
|
75 | 75 | }, |
76 | 76 | { |
77 | 77 | "cell_type": "code", |
78 | | - "execution_count": 5, |
| 78 | + "execution_count": 4, |
79 | 79 | "metadata": { |
80 | 80 | "collapsed": false |
81 | 81 | }, |
|
87 | 87 | " Le volume dans le lecteur D s'appelle DATA\n", |
88 | 88 | " Le num‚ro de s‚rie du volume est 10BD-2ADB\n", |
89 | 89 | "\n", |
90 | | - " R‚pertoire de D:\\WinPython\\basedir34\\build\\winpython-3.4.4.amd64\\tools\n", |
| 90 | + " R‚pertoire de D:\\result_tests\\winpython-3.5.1.amd64\\tools\n", |
91 | 91 | "\n", |
92 | | - "01/01/2016 16:11 65ÿ380ÿ480 R-3.2.3-win.exe\n", |
| 92 | + "03/01/2016 12:19 65ÿ380ÿ480 R-3.2.3-win.exe\n", |
93 | 93 | " 1 fichier(s) 65ÿ380ÿ480 octets\n", |
94 | | - " 0 R‚p(s) 134ÿ347ÿ685ÿ888 octets libres\n" |
| 94 | + " 0 R‚p(s) 133ÿ833ÿ940ÿ992 octets libres\n" |
95 | 95 | ] |
96 | 96 | } |
97 | 97 | ], |
|
102 | 102 | }, |
103 | 103 | { |
104 | 104 | "cell_type": "code", |
105 | | - "execution_count": 6, |
| 105 | + "execution_count": 5, |
106 | 106 | "metadata": { |
107 | 107 | "collapsed": false |
108 | 108 | }, |
|
113 | 113 | "text": [ |
114 | 114 | " MD5 SHA-1 \n", |
115 | 115 | "-------------------------------- ----------------------------------------\n", |
116 | | - "5572ce407831ce9156485d4f896ad616 b86077268e4aa5498482f4514202009009ddf947 D:\\WinPython\\basedir34\\build\\winpython-3.4.4.amd64\\python-3.4.4.amd64\\..\\tools\\R-3.2.3-win.exe\n" |
| 116 | + "5572ce407831ce9156485d4f896ad616 b86077268e4aa5498482f4514202009009ddf947 D:\\result_tests\\winpython-3.5.1.amd64\\python-3.5.1.amd64\\..\\tools\\R-3.2.3-win.exe\n" |
117 | 117 | ] |
118 | 118 | } |
119 | 119 | ], |
|
132 | 132 | }, |
133 | 133 | { |
134 | 134 | "cell_type": "code", |
135 | | - "execution_count": 7, |
| 135 | + "execution_count": 6, |
136 | 136 | "metadata": { |
137 | 137 | "collapsed": false |
138 | 138 | }, |
|
175 | 175 | }, |
176 | 176 | { |
177 | 177 | "cell_type": "code", |
178 | | - "execution_count": 12, |
| 178 | + "execution_count": 7, |
179 | 179 | "metadata": { |
180 | 180 | "collapsed": false |
181 | 181 | }, |
|
195 | 195 | "# let's create a R init script\n", |
196 | 196 | "# in manual command line, you can use repos = c('http://irkernel.github.io/', getOption('repos'))\n", |
197 | 197 | "r_initialization = r\"\"\"\n", |
198 | | - "install.packages(c('rzmq','repr','IRkernel','IRdisplay'), repos = c('http://irkernel.github.io/', repos=\"http://cran.rstudio.com/\"))\n", |
199 | | - "library('rzmq');library('repr');library('IRkernel');library('IRdisplay')\n", |
| 198 | + "install.packages(c('rzmq','repr','IRkernel','IRdisplay'), repos = c('http://irkernel.github.io/', repos='http://cran.rstudio.com/'))\n", |
| 199 | + "library('rzmq')\n", |
| 200 | + "library('repr')\n", |
| 201 | + "library('IRkernel')\n", |
| 202 | + "library('IRdisplay')\n", |
200 | 203 | "IRkernel::installspec()\n", |
201 | 204 | "\"\"\"\n", |
202 | 205 | "r_initialization_r = os.path.normpath(os.environ[\"WINPYDIR\"]+\"\\\\..\\\\scripts\\\\R_initialization.r\")\n", |
|
210 | 213 | }, |
211 | 214 | { |
212 | 215 | "cell_type": "code", |
213 | | - "execution_count": 13, |
| 216 | + "execution_count": 8, |
214 | 217 | "metadata": { |
215 | 218 | "collapsed": false |
216 | 219 | }, |
|
223 | 226 | }, |
224 | 227 | { |
225 | 228 | "cell_type": "code", |
226 | | - "execution_count": 17, |
| 229 | + "execution_count": 9, |
227 | 230 | "metadata": { |
228 | 231 | "collapsed": false |
229 | 232 | }, |
|
232 | 235 | "name": "stdout", |
233 | 236 | "output_type": "stream", |
234 | 237 | "text": [ |
235 | | - "patching D:\\WinPython\\basedir34\\build\\winpython-3.4.4.amd64\\settings\\kernels\\ir\\kernel.json from D:/WinPython/basedir34/build/winpython-3.4.4.amd64 to {prefix}/..\n", |
236 | | - "None\n" |
| 238 | + "patching D:\\result_tests\\winpython-3.5.1.amd64\\settings\\kernels\\ir\\kernel.json from D:/result_tests/winpython-3.5.1.amd64 to {prefix}/..\n" |
237 | 239 | ] |
238 | 240 | } |
239 | 241 | ], |
|
258 | 260 | }, |
259 | 261 | { |
260 | 262 | "cell_type": "code", |
261 | | - "execution_count": 18, |
| 263 | + "execution_count": 10, |
262 | 264 | "metadata": { |
263 | 265 | "collapsed": false |
264 | 266 | }, |
|
268 | 270 | "\n", |
269 | 271 | "#vitals: 'dplyr', 'R.utils', 'nycflights13'\n", |
270 | 272 | "# installation takes 2 minutes\n", |
271 | | - "%R install.packages(c('dplyr','R.utils', 'nycflights13'), repos='http://cran.rstudio.com/') \n", |
272 | | - "\n", |
273 | | - "# essentials: 'tidyr', 'shiny', 'ggplot2', 'caret' , 'nnet' \n", |
274 | | - "#%R install.packages(c('tidyr', 'ggplot2', 'shiny','caret' , 'nnet'), repos='https://cran.rstudio.com/') \n" |
| 273 | + "%R install.packages(c('dplyr','R.utils', 'nycflights13'), repos='http://cran.rstudio.com/') " |
275 | 274 | ] |
276 | 275 | }, |
277 | 276 | { |
|
283 | 282 | }, |
284 | 283 | { |
285 | 284 | "cell_type": "code", |
286 | | - "execution_count": 20, |
| 285 | + "execution_count": 11, |
287 | 286 | "metadata": { |
288 | 287 | "collapsed": false |
289 | 288 | }, |
|
303 | 302 | }, |
304 | 303 | { |
305 | 304 | "cell_type": "code", |
306 | | - "execution_count": 21, |
| 305 | + "execution_count": 12, |
307 | 306 | "metadata": { |
308 | 307 | "collapsed": false |
309 | 308 | }, |
310 | 309 | "outputs": [], |
311 | 310 | "source": [ |
312 | 311 | "%%R\n", |
313 | 312 | "library('dplyr')\n", |
314 | | - "library('nycflights13') " |
| 313 | + "library('nycflights13') \n", |
| 314 | + "write.csv(flights, \"flights.csv\")" |
315 | 315 | ] |
316 | 316 | }, |
317 | 317 | { |
318 | 318 | "cell_type": "code", |
319 | | - "execution_count": 22, |
| 319 | + "execution_count": 13, |
320 | 320 | "metadata": { |
321 | 321 | "collapsed": false |
322 | 322 | }, |
|
484 | 484 | "6 1696 EWR ORD 150 719 5 54 " |
485 | 485 | ] |
486 | 486 | }, |
487 | | - "execution_count": 22, |
| 487 | + "execution_count": 13, |
488 | 488 | "metadata": {}, |
489 | 489 | "output_type": "execute_result" |
490 | 490 | } |
|
495 | 495 | }, |
496 | 496 | { |
497 | 497 | "cell_type": "code", |
498 | | - "execution_count": 23, |
| 498 | + "execution_count": 14, |
499 | 499 | "metadata": { |
500 | 500 | "collapsed": false |
501 | 501 | }, |
|
607 | 607 | "6 IAD " |
608 | 608 | ] |
609 | 609 | }, |
610 | | - "execution_count": 23, |
| 610 | + "execution_count": 14, |
611 | 611 | "metadata": {}, |
612 | 612 | "output_type": "execute_result" |
613 | 613 | } |
|
620 | 620 | "cell_type": "markdown", |
621 | 621 | "metadata": {}, |
622 | 622 | "source": [ |
623 | | - "### 5 - Relaunch Jupyter Notebook to get a R kernel option\n", |
| 623 | + "### 5 - Installing the very best of R pakages (optional, you will start to get a really big directory)\n" |
| 624 | + ] |
| 625 | + }, |
| 626 | + { |
| 627 | + "cell_type": "code", |
| 628 | + "execution_count": 15, |
| 629 | + "metadata": { |
| 630 | + "collapsed": true |
| 631 | + }, |
| 632 | + "outputs": [], |
| 633 | + "source": [ |
| 634 | + "# essentials: 'tidyr', 'shiny', 'ggplot2', 'caret' , 'nnet' \n", |
| 635 | + "# remaining of Hadley Wickahm \"stack\" (https://github.com/rstudio)\n", |
| 636 | + "%R install.packages(c('tidyr', 'ggplot2', 'shiny','caret' , 'nnet'), repos='https://cran.rstudio.com/') \n", |
| 637 | + "%R install.packages(c('knitr', 'purrr', 'readr', 'readxl'), repos='https://cran.rstudio.com/')\n", |
| 638 | + "%R install.packages(c('rvest', 'lubridate', 'ggvis'), repos='https://cran.rstudio.com/')\n", |
| 639 | + "\n", |
| 640 | + "# TRAINING = online training book http://r4ds.had.co.nz/ (or https://github.com/hadley/r4ds)" |
| 641 | + ] |
| 642 | + }, |
| 643 | + { |
| 644 | + "cell_type": "markdown", |
| 645 | + "metadata": {}, |
| 646 | + "source": [ |
| 647 | + "### 6 - Relaunch Jupyter Notebook to get a R kernel option\n", |
624 | 648 | "launch a new notebook of \"R\" type, and type in it:\n", |
625 | 649 | " \n", |
626 | 650 | "library('dplyr')\n", |
|
669 | 693 | "name": "python", |
670 | 694 | "nbconvert_exporter": "python", |
671 | 695 | "pygments_lexer": "ipython3", |
672 | | - "version": "3.4.4" |
| 696 | + "version": "3.5.1" |
673 | 697 | } |
674 | 698 | }, |
675 | 699 | "nbformat": 4, |
|
0 commit comments