Skip to content

Commit 77c5e8f

Browse files
author
stonebig
committed
rectify installing_R procedure
1 parent c250d13 commit 77c5e8f

File tree

2 files changed

+112
-50
lines changed

2 files changed

+112
-50
lines changed

docs/installing_R.ipynb

Lines changed: 56 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
{
4242
"cell_type": "code",
43-
"execution_count": 4,
43+
"execution_count": 3,
4444
"metadata": {
4545
"collapsed": false
4646
},
@@ -75,7 +75,7 @@
7575
},
7676
{
7777
"cell_type": "code",
78-
"execution_count": 5,
78+
"execution_count": 4,
7979
"metadata": {
8080
"collapsed": false
8181
},
@@ -87,11 +87,11 @@
8787
" Le volume dans le lecteur C n'a pas de nom.\n",
8888
" Le num‚ro de s‚rie du volume est 98F9-A53D\n",
8989
"\n",
90-
" R‚pertoire de C:\\WinPython\\$results\\winpython-64bit-3.4.4.4Qt5b1\\tools\n",
90+
" R‚pertoire de C:\\WinPython\\basedir35\\buildQt5\\winpython-64bit-3.5.2.3Qt5b2\\tools\n",
9191
"\n",
92-
"07/08/2016 18:27 73ÿ566ÿ547 R-3.3.1-win.exe\n",
92+
"04/10/2016 19:52 73ÿ566ÿ547 R-3.3.1-win.exe\n",
9393
" 1 fichier(s) 73ÿ566ÿ547 octets\n",
94-
" 0 R‚p(s) 102ÿ077ÿ554ÿ688 octets libres\n"
94+
" 0 R‚p(s) 30ÿ744ÿ125ÿ440 octets libres\n"
9595
]
9696
}
9797
],
@@ -102,7 +102,7 @@
102102
},
103103
{
104104
"cell_type": "code",
105-
"execution_count": 6,
105+
"execution_count": 5,
106106
"metadata": {
107107
"collapsed": false
108108
},
@@ -113,7 +113,7 @@
113113
"text": [
114114
" MD5 SHA-1 \n",
115115
"-------------------------------- ----------------------------------------\n",
116-
"104bfc769d27c3fd3c9294cc4f82e232 b1102b40c08914bada8f3240197ac960070c7db2 C:\\WinPython\\$results\\winpython-64bit-3.4.4.4Qt5b1\\scripts\\..\\python-3.4.4.amd64\\..\\tools\\R-3.3.1-win.exe\n"
116+
"104bfc769d27c3fd3c9294cc4f82e232 b1102b40c08914bada8f3240197ac960070c7db2 C:\\WinPython\\basedir35\\buildQt5\\winpython-64bit-3.5.2.3Qt5b2\\scripts\\..\\python-3.5.2.amd64\\..\\tools\\R-3.3.1-win.exe\n"
117117
]
118118
}
119119
],
@@ -132,7 +132,7 @@
132132
},
133133
{
134134
"cell_type": "code",
135-
"execution_count": 8,
135+
"execution_count": 6,
136136
"metadata": {
137137
"collapsed": false
138138
},
@@ -151,8 +151,9 @@
151151
"source": [
152152
"## During Installation (if you wan't to move the R installation after)\n",
153153
"\n",
154+
"Choose non default option \"Yes (customized startup\"\n",
154155
"\n",
155-
"Select \"Don't create a Start Menu Folder\"\n",
156+
"then after 3 screens, Select \"Don't create a Start Menu Folder\"\n",
156157
"\n",
157158
"Un-select \"Create a desktop icon\"\n",
158159
"\n",
@@ -175,7 +176,7 @@
175176
},
176177
{
177178
"cell_type": "code",
178-
"execution_count": 12,
179+
"execution_count": 7,
179180
"metadata": {
180181
"collapsed": false
181182
},
@@ -195,12 +196,14 @@
195196
"# let's create a R init script\n",
196197
"# in manual command line, you can use repos = c('http://irkernel.github.io/', getOption('repos'))\n",
197198
"r_initialization = r\"\"\"\n",
198-
"install.packages(c('repr', 'IRdisplay', 'pbdZMQ', 'devtools'), repos = c('http://cran.rstudio.com/', repos='http://cran.rstudio.com/'))\n",
199+
"install.packages(c('repr', 'IRdisplay', 'stringr', 'crayon', 'pbdZMQ', 'devtools'), repos = c('http://cran.rstudio.com/', 'http://cran.rstudio.com/'))\n",
199200
"devtools::install_github('IRkernel/IRkernel')\n",
200-
"library('rzmq')\n",
201+
"library('pbdZMQ')\n",
201202
"library('repr')\n",
202203
"library('IRkernel')\n",
203204
"library('IRdisplay')\n",
205+
"library('crayon')\n",
206+
"library('stringr')\n",
204207
"IRkernel::installspec()\n",
205208
"\"\"\"\n",
206209
"r_initialization_r = os.path.normpath(os.environ[\"WINPYDIR\"]+\"\\\\..\\\\scripts\\\\R_initialization.r\")\n",
@@ -214,7 +217,27 @@
214217
},
215218
{
216219
"cell_type": "code",
217-
"execution_count": 13,
220+
"execution_count": 2,
221+
"metadata": {
222+
"collapsed": false
223+
},
224+
"outputs": [
225+
{
226+
"name": "stdout",
227+
"output_type": "stream",
228+
"text": [
229+
"!start cmd /C %WINPYDIR%\\..\\scripts\\R_launcher.bat --no-restore --no-save C:\\WinPython\\basedir35\\buildQt5\\winpython-64bit-3.5.2.3Qt5b2\\scripts\\R_initialization.r\n"
230+
]
231+
}
232+
],
233+
"source": [
234+
"#check what we are going to do \n",
235+
"print (\"!start cmd /C %WINPYDIR%\\\\..\\\\scripts\\\\R_launcher.bat --no-restore --no-save \" + r_initialization_r)"
236+
]
237+
},
238+
{
239+
"cell_type": "code",
240+
"execution_count": null,
218241
"metadata": {
219242
"collapsed": false
220243
},
@@ -227,11 +250,19 @@
227250
},
228251
{
229252
"cell_type": "code",
230-
"execution_count": 14,
253+
"execution_count": 8,
231254
"metadata": {
232255
"collapsed": false
233256
},
234-
"outputs": [],
257+
"outputs": [
258+
{
259+
"name": "stdout",
260+
"output_type": "stream",
261+
"text": [
262+
"patching C:\\WinPython\\basedir35\\buildQt5\\winpython-64bit-3.5.2.3Qt5b2\\settings\\kernels\\ir\\kernel.json from C:/WinPython/basedir35/buildQt5/winpython-64bit-3.5.2.3Qt5b2 to {prefix}/..\n"
263+
]
264+
}
265+
],
235266
"source": [
236267
"# make RKernel a movable installation with the rest of WinPython \n",
237268
"from winpython import utils\n",
@@ -253,7 +284,7 @@
253284
},
254285
{
255286
"cell_type": "code",
256-
"execution_count": 1,
287+
"execution_count": 9,
257288
"metadata": {
258289
"collapsed": false
259290
},
@@ -275,7 +306,7 @@
275306
},
276307
{
277308
"cell_type": "code",
278-
"execution_count": 2,
309+
"execution_count": 10,
279310
"metadata": {
280311
"collapsed": false
281312
},
@@ -295,7 +326,7 @@
295326
},
296327
{
297328
"cell_type": "code",
298-
"execution_count": 3,
329+
"execution_count": 11,
299330
"metadata": {
300331
"collapsed": false
301332
},
@@ -309,7 +340,7 @@
309340
},
310341
{
311342
"cell_type": "code",
312-
"execution_count": 4,
343+
"execution_count": 12,
313344
"metadata": {
314345
"collapsed": false
315346
},
@@ -506,7 +537,7 @@
506537
"6 719.0 5.0 58.0 1.357016e+09 "
507538
]
508539
},
509-
"execution_count": 4,
540+
"execution_count": 12,
510541
"metadata": {},
511542
"output_type": "execute_result"
512543
}
@@ -517,7 +548,7 @@
517548
},
518549
{
519550
"cell_type": "code",
520-
"execution_count": 5,
551+
"execution_count": 13,
521552
"metadata": {
522553
"collapsed": false
523554
},
@@ -629,7 +660,7 @@
629660
"6 IAD "
630661
]
631662
},
632-
"execution_count": 5,
663+
"execution_count": 13,
633664
"metadata": {},
634665
"output_type": "execute_result"
635666
}
@@ -647,7 +678,7 @@
647678
},
648679
{
649680
"cell_type": "code",
650-
"execution_count": 6,
681+
"execution_count": 14,
651682
"metadata": {
652683
"collapsed": true
653684
},
@@ -673,7 +704,7 @@
673704
"\n",
674705
"library('nycflights13') \n",
675706
"\n",
676-
"head('flights')"
707+
"head(flights)"
677708
]
678709
},
679710
{
@@ -715,7 +746,7 @@
715746
"name": "python",
716747
"nbconvert_exporter": "python",
717748
"pygments_lexer": "ipython3",
718-
"version": "3.4.4"
749+
"version": "3.5.2"
719750
}
720751
},
721752
"nbformat": 4,

0 commit comments

Comments
 (0)