Linux(Ubuntu) 下安装最新版的R 、RStudio 以及R包
由于Ubuntu20以下版本默认安装的R版本不是最新的(Ubuntu22默认安装4.1.x版本),而且单纯安装r-base会导致安装R包的时候缺少依赖,所以选择使用官网建议的安装方式安装:
1.R的安装直接进CRAN上,选择
再选择你的系统版本,我这里是Ubuntu,点击进去,里面就有安装R的命令,在终端以root权限逐条运行即可。
The Comprehensive R Archive Networkhttps://cran.r-project.org/2.Rstudio的安装也是直接进入官网选择相应的版本,下载安装包,下载完成之后用命令行或直接双击安装:
Download the RStudio IDE - RStudioRStudio is a set of integrated tools designed to help you be more productive with R. It includes a console, syntax-highlighting editor that supports direct code execution, and a variety of robust tools for plotting, viewing history, debugging and managing your workspace.https://www.rstudio.com/products/rstudio/download/#download3.有的R包依赖rjava,可使用以下命令安装:
sudo apt-get install r-cran-rjava
4.装好后的Rstudio:
Paglim: 想要后面的答案
你82: 导入的数据长什么样
GUNDAM_EXIA_: 喜大普奔 全网各种方法断续试了四个月,终于成功了
GiantPlum: 后面的自己写吧
weixin_57757206: 有第五章答案吗