BIBLIOGRAPHY
관련노트
리눅스 R언어 패키지 설치 - 우분투
sudo apt install r-base r-base-dev -y
sudo -i R
> install.packages("ggplot2")
- [2025-02-12 Wed 15:52]
패키지는 우분투 패키지를 설치하는게 편하다
다 설치해라.
sudo apt-get install r-cran-knitr r-cran-rmarkdown r-mathlib r-cran-mathjaxr r-cran-pracma r-cran-animation r-cran-dplyr r-cran-tidyr r-cran-collapse r-cran-purrr r-cran-ggplot2 r-cran-data.table r-cran-rdflib r-cran-stringr
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")
DONE #콰르토 관련하여 필요한 패키지
그냥 우분투 패키지로 설치해버려라.
그리고 quarto 최신 버전 (현재 1.6.40) 설치했다. 해결
sudo apt-get install r-cran-knitr r-cran-rmarkdown r-mathlib r-cran-mathjaxr r-cran-pracma r-cran-animation r-cran-dplyr r-cran-tidyr r-cran-collapse r-cran-purrr r-cran-ggplot2 r-cran-data.table r-cran-rdflib r-cran-stringr
sudo -i R
> install.packages("opendatatoronto")
> install.packages("leaflet")
@user 다음 문제를 해결하려면?
The knitr package is not available in this R installation. Install with install.packages(“knitr”) The rmarkdown package is not available in this R installation. Install with install.packages(“rmarkdown”)
@assistant 해당 문제를 해결하려면 R에서 knitr=와 =rmarkdown
패키지를 설치해야 합니다. 다음 명령어를 R 콘솔에서 실행하세요:
,#+begin_src r install.packages(“knitr”) install.packages(“rmarkdown”) #+end_src
이렇게 하면 두 패키지가 설치되어 문제가 해결됩니다.
Citations: [1] https://modernity.tistory.com/entry/knitr-%EC%84%A4%EC%B9%98-UbuntuStudio1804-%ED%99%98%EA%B2%BD [2] https://bookdown.org/sulgi/r4ds/rmarkdown.html [3] https://blog.zarathu.com/posts/2019-01-03-rmarkdown/ [4] https://r2bit.com/book_analytics/r-knitr.html [5] https://r2bit.com/book_tm/install-setup.html
@user