jupyter运行R
时间: 2023-09-25 13:14:40 浏览: 75
要在Jupyter中运行R,您需要按照以下步骤进行设置。
首先,打开R的命令行界面,并使用以下命令安装R包IRkernel:
```R
install.packages("devtools")
devtools::install_github('IRkernel/IRkernel')
```
然后,使用以下命令安装所需的基础包:
```R
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
```
运行完以上命令后,您会收到一个提示信息,显示IR内核已安装在指定位置:
```
Installed kernelspec ir in /home/your_username/.local/share/jupyter/kernels/ir
```
现在,您可以在Jupyter中选择R内核,并开始在笔记本中运行R代码了。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [「R高级」在jupyter notebook里运行R代码](https://blog.csdn.net/u012110870/article/details/102804599)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [如何在Jupyter中运行R语言(两种解决方案)](https://blog.csdn.net/The_Time_Runner/article/details/91439912)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文