Table of contents
2. R Language for IntelliJ plugin
4. Use Anaconda to create an R language virtual environment
2. Create R language virtual environment
1. R language
1. R official website
R: The R Project for Statistical Computing (r-project.org)https://www.r-project.org/
2. Introduction to R
R language is a programming language used for statistical computing and data analysis. It has rich data processing, statistical modeling and data visualization functions, and is widely used in data science, statistics, machine learning and other fields.
The R language has powerful data processing and manipulation capabilities, and can handle data of various types and sizes. It provides a wealth of statistical methods and models, including common machine learning and statistical methods such as linear regression, logistic regression, decision tree, and cluster analysis. In addition, the R language has rich visualization functions, which can create various types of charts and visual displays.
The R language has the support of the open source community, and there are a large number of open source packages and libraries available, which can expand the functions and application fields of R. In the R language community, you can find a wide variety of packages for data processing, statistical modeling, machine learning, natural language processing, and more.
The R language has an easy-to-learn and easy-to-use syntax that is friendly to beginners in statistics and data analysis. At the same time, R is also scalable and repeatable, enabling automated analysis processes and report generation.
2. Install R directly
1. Download
The Comprehensive R Archive Network (tsinghua.edu.cn)https://mirrors.tuna.tsinghua.edu.cn/CRAN/
2. Install
- Choose where to install
- custom components
- disable self-start
- menu folder name
Three, Pycharm uses R
1. Install PyCharm
Refer to the previous article:
2. R Language for IntelliJ plugin
- File - Settings
- plug-in
3. R setup
(automatic detection)
report error
Warning in (function (file = "", n = NULL, text = NULL, prompt = "?", keep.source = getOption("keep.source"), :
argument encoding="UTF-8" is ignored in MBCS locales
If it is an eyesore, it will be an eyesore, it does not affect, you can modify it:
Sys.setlocale(category = 'LC_ALL', locale = 'English_United States.1252')
If you modify it, remember to change it back after not using R, otherwise the system will report other errors (such as: notice garbled characters)
Sys.setlocale("LC_ALL","Chinese")
4. R package
Install
install.packages("hdf5r")
load
library(hdf5r)
After the package is loaded hdf5r
, the functions and methods provided by it can be used.
View installed packages
installed_packages <- installed.packages()
package_names <- rownames(installed_packages)
print installed package names
print(package_names)
4. Use Anaconda to create an R language virtual environment
1. Install Anaconda
Refer to the previous article:
win11 install Anaconda ( 2022.10 ) + pycharm (2022.3/2023.1.4) + configure virtual environment
2. Create R language virtual environment
conda create -n R4.1.3 r-base==4.1.3
conda activate R4.1.3
conda install r-seurat
library(Seurat)