0 jupyter notebook r - smart1004/ReadTheDocs GitHub Wiki

http://yahwang.tk/posts/27

R์„ ๋”ฐ๋กœ ์„ค์น˜ํ•œ ๊ฒฝ์šฐ

R์—์„œ ์‹คํ–‰ํ•ด์•ผํ•  ์ฝ”๋“œ๋Š” Rstudio๊ฐ€ ์•„๋‹Œ R ์ž์ฒด์—์„œ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค.

Windows 10 install.packages('devtools') devtools::install_github('IRkernel/IRkernel') IRkernel::installspec()

Python -m pip install --upgrade pip

Quoting from https://pip.pypa.io/en/stable/user_guide/#config-file

On Windows the configuration file is %APPDATA%\pip\pip.ini.

C:\Users\poscouser\AppData\Roaming\pip

C:\Users\poscouser\AppData\Roaming\Python\Python36\Scripts

py -m virtualenv C:\ProgramData\venv36_2

C:\ProgramData\venv36_2\Scripts\activate

C:\Program Files\R\R-3.5.1\bin\x64

R์„ ๋”ฐ๋กœ ์„ค์น˜ํ•œ ๊ฒฝ์šฐ

R์—์„œ ์‹คํ–‰ํ•ด์•ผํ•  ์ฝ”๋“œ๋Š” Rstudio๊ฐ€ ์•„๋‹Œ R ์ž์ฒด์—์„œ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค. https://irkernel.github.io/installation/

Windows 10

install.packages('devtools') #devtools::install_github('IRkernel/IRkernel') install.packages('IRkernel') # Donโ€™t forget step 2/2! IRkernel::installspec()


์ด๋Ÿด ๊ฒฝ์šฐ์—๋Š” ํ™˜๊ฒฝ๋ณ€์ˆ˜ PATH์— anaconda๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผ ํ•œ๋‹ค.

๋‚ด PC - ์šฐํด๋ฆญ - ์†์„ฑ - ๊ณ ๊ธ‰ ์‹œ์Šคํ…œ ์„ค์ • - ํ™˜๊ฒฝ ๋ณ€์ˆ˜ - ์‹œ์Šคํ…œ ๋ณ€์ˆ˜ ์ค‘ Path ํŽธ์ง‘

venv/ Anaconda(Miniconda) ์„ค์น˜ ๊ฒฝ๋กœ + @ ์ด 3๊ฐ€์ง€๋ฅผ ์ง€์ •ํ•ด์ค€๋‹ค.

C:\ProgramData\venv36_2\Scripts; C:\ProgramData\venv36_2\Lib\site-packages; C:\ProgramData\venv36_2\Lib; C:\ProgramData\venv36_2\Lib\site-packages\jupyter_client

C:\ProgramData\venv36_2\

IRkernel::installspec() [InstallKernelSpec] Installed kernelspec ir in C:\Users\poscouser\AppData\Roaming\jupyter\kernels\ir

(venv36_2) poscouser@POSCOPO-A3EK623 C:\Users\poscouser

cd C:\Program Files\R\R-3.5.1\bin\x64

(venv36_2) poscouser@POSCOPO-A3EK623 C:\Program Files\R\R-3.5.1\bin\x64

r