R 설치하기
R: The R Project for Statistical Computing
www.r-project.org
1. 위 링크로 들어간다. (나는 4.0.0 version과 3.6.3 version을 주로 사용해서 그 기준 작성)
2. Getting Started 문단의 파란 글씨 'download R' 클릭
3. 스크롤 쭉 내려 Korea 의 세 개 중 하나 클릭 (나는 첫 번째만 작동해서 그걸로 했다.)
4. 'Download R for Windows' 클릭
5. 'Base' 클릭
6. 아래에서부터 세 번째 줄, 'Previous releases' 클릭
7. R 4.0.0 과 R 3.6.3 클릭 후 설치
(두 가지를 설치해 두면 추후 R studio에서 자유롭게 오가며 작업할 수 있다.)
R studio 설치하기
https://posit.co/download/rstudio-desktop/
RStudio Desktop - Posit
Used by millions of people weekly, the RStudio integrated development environment (IDE) is a set of tools built to help you be more productive with R and Python. It includes a console, syntax-highlighting editor that supports direct code execution. It also
posit.co
1. 위 링크 클릭
2. 컴퓨터 환경에 맞는 파일 다운받은 후 설치
3. 설치 후 Tools - global options 에서
1) R version 64 bit로 설정
2) working directory 설정 (주로 작업하고, r파일을 저장할 경로를 입력하면 된다.)
3) appearannce - font size 설정
4) code - > saving -> 'default text encoding' : UTF-8 로 설정 (한글 깨짐 방지)
R tools 설치
Using Rtools4 on Windows (r-project.org)
Using Rtools4 on Windows
For R versions R-4.0.0 to to R-4.1.3, R for Windows uses a toolchain bundle called Rtools 4.0. This version of Rtools is based on msys2, which makes easier to build and maintain R itself as well as the system libraries needed by R packages on Windows. The
cran.r-project.org
1. 위 링크로 이동
2. 3번째 문단 'Older editions' 클릭 (R 3.6.3과 version을 맞춰야 한다.)
3. Rtools35.exe 다운
R이 버전이나 패키지 업데이트 문제로 오류가 꽤 나기 때문에
설치하는 법이나 기본 셋팅법을 여러 번 익혀 두면 침착하게 대응하는데 도움이 된다.
'R > 개념 공부' 카테고리의 다른 글
[R] data.table package (wrangling) (0) | 2023.01.16 |
---|
댓글