리눅스 R언어 패키지 설치

[2023-11-23 Thu 09:35]

 
sudo apt install r-base r-base-dev -y
sudo -i R
 
> install.packages("ggplot2")
 

Note: Using the R command without sudo creates a personal library for your user. To install packages available to every user on the system, run the R command as root by typing sudo -i R.

참고: sudo 없이 R 명령을 사용하면 사용자를 위한 개인 라이브러리가 만들어집니다. 시스템의 모든 사용자가 사용할 수 있는 패키지를 설치하려면 sudo -i R 을 입력하여 루트로 R 명령을 실행합니다.

R version 4.2.2 Patched (2022-11-10 r83330) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

Installing R Packages

The R community actively develops and maintains thousands of packages for specific tasks like data visualization, machine learning, statistical modeling, text mining, etc. Some of the most popular R packages include:

R 커뮤니티는 데이터 시각화, 기계 학습, 통계 모델링, 텍스트 마이닝 등과 같은 특정 작업을 위한 수천 개의 패키지를 적극적으로 개발하고 유지 관리합니다. 가장 인기 있는 R 패키지는 다음과 같습니다:

  • dplyr. This package provides practical and intuitive functions for summarizing, filtering, and transforming data.
  • tidyr. The tidyr package enables users to reshape and organize messy data into a tidy format.
  • purrr. Statisticians use the purrr functional programming package to improve flexibility and maintain consistency when working with functions and vectors.
  • ggplot2. ggplot2 is a versatile R package for creating and customizing visually appealing plots.
  • data.table. The high-performance data.table package is primarily used for data manipulation in large datasets.
  • stringr. The stringr package provides functions for streamlining string and text manipulation tasks.

Users can install R packages from within the R console by utilizing the install.packages("package_name") function.

For example, to install the ggplot2 package from the CRAN repository, access the R console and enter the following command:

install.packages("ggplot2")

[2023-11-23 Thu 09:41]

#둠이맥스 ESS 모듈 활용

[2024-10-09 Wed 12:34]

Related-Notes

References