当前位置:网站首页>Using R language in jupyter notebook
Using R language in jupyter notebook
2022-06-25 15:10:00 【A window full of stars and milky way】
I was not going to study R Linguistic , After all, I learned python, Has been able to meet most of the needs . But recently, I applied to the National People's Congress as an on-the-job graduate student in statistics , The teacher said that later papers must use R Language to write .( ̄▽ ̄)~*
Then learn . Because I used it all the time jupyter notebook To write an analysis report , So I want to use jupyter Write R, This is very convenient . I'm glad to be able to jupyter Use in R, But it's hard to find tutorials online , Fortunately, after turning to the official website, I finally got it done , Record the method here . For future reference .(*^▽^*)
R Installation
R There are many online tutorials for the installation of , I won't go over it , Pretty simple . Go directly to the official website to download the file. The next step is just the spark and lightning along the way .
Download address :R Official website download address
Rstudio Installation
After all jupyter It is often used for presentation reports , It is not suitable for writing engineering programs . and R Of IDE Or recommendation? Rstudio Of , Free version. , Can meet most of the needs .
Download address :Rstudio Download address
relation jupyter notebook
If you do not install jupyter notebook, You need to install . I recommend using it directly anaconda, It comes with jupyter notebook And the environment configuration has been done for you , Bring their own python
It's equivalent to the last R and python Both can be used. .
First let's open up R The command line , If you don't know, you can open it directly Rsudio, In the sitting corner console The following commands are written in the :
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')The above code will be executed automatically in two steps , After the execution , Enter one of the following codes :
# Install only under the current user
IRkernel::installspec()
# Or install it under the system
IRkernel::installspec(user = FALSE) Wait for execution to complete , open jupyter You can create a new R Of notebook 了 . 
Okay ~ It's that simple , Then you can write happily R 了

边栏推荐
- 定位position(5种方式)
- @Font face fonts only work on their own domain - @font-face fonts only work on their own domain
- 【Try to Hack】vulhub靶场搭建
- How to package rpm
- Compile Caffe's project using cmake
- JS capture, target, bubble phase
- Function of getinstance() method
- One question per day, a classic simulation question
- Work of the first week
- Business layer - upper and lower computer communication protocol
猜你喜欢
随机推荐
High precision addition
System Verilog - data type
QT source code online view
Learning notes on February 5, 2022 (C language)
Daily question, Caesar code,
dev/mapper的解释
开餐馆
Is it safe to open a stock account online?
从0到1完全掌握 XSS
Stack and queue
QT opens the print dialog box in a text editor
分饼干问题
Compile Caffe's project using cmake
Breakpad usage and DMP analysis
semget No space left on device
Vs2019 scanf error
Source code analysis of zeromq lockless queue
(translation) json-rpc 2.0 specification (Chinese version)
p1408
Fishing detection software









