Skip to content

Commit 1f12cb9

Browse files
Giulio TeseiGiulio Tesei
Giulio Tesei
authored and
Giulio Tesei
committed
update
1 parent fef13b1 commit 1f12cb9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

lectures/least_squares.ipynb

+27
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,33 @@
524524
"metadata": {},
525525
"source": [
526526
"## Interfacing Python and [R](https://www.r-project.org/about.html)\n",
527+
"\n",
528+
"This part of the Notebook requires the packages r-essentials and rpy2. To install them, issue the following commands in the terminal\n",
529+
"\n",
530+
"```bash\n",
531+
"source activate LUcompute\n",
532+
"conda install -c conda-forge r-essentials\n",
533+
"conda install -c conda-forge rpy2\n",
534+
"```\n",
535+
"\n",
536+
"It is also possible to install rpy2 using pip"
537+
]
538+
},
539+
{
540+
"cell_type": "code",
541+
"execution_count": null,
542+
"metadata": {},
543+
"outputs": [],
544+
"source": [
545+
"!pip install rpy2"
546+
]
547+
},
548+
{
549+
"cell_type": "code",
550+
"execution_count": null,
551+
"metadata": {},
552+
"outputs": [],
553+
"source": [
527554
"We load the extension [rpy2](https://rpy2.readthedocs.io/en/version_2.8.x/)"
528555
]
529556
},

0 commit comments

Comments
 (0)