linux 中非root用户安装R
001、下载R安装包:官网
[liujiaxin02@PC1 r_package]$ wget https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-4/R-4.2.2.tar.gz --no-check-certificate [liujiaxin02@PC1 r_package]$ ls R-4.2.2.tar.gz
002、配置
[liujiaxin02@PC1 r_package]$ tar -xzvf R-4.2.2.tar.gz [liujiaxin02@PC1 r_package]$ cd R-4.2.2/ [liujiaxin02@PC1 R-4.2.2]$ ./configure --prefix=/home/liujiaxin02/r_dir
003、编译
[liujiaxin02@PC1 R-4.2.2]$ make
004、安装
[liujiaxin02@PC1 R-4.2.2]$ make install
005、测试R命令
[liujiaxin02@PC1 R-4.2.2]$ ls bin config.status doc lib Makeconf Makefile.in Makefrag.m share tests ChangeLog configure etc library Makeconf.in Makefrag.cc modules src tools config.log configure.ac include libtool Makefile Makefrag.cc_lo po stamp-java VERSION config.site COPYING INSTALL m4 Makefile.fw Makefrag.cxx README SVN-REVISION VERSION-NICK [liujiaxin02@PC1 R-4.2.2]$ cd bin [liujiaxin02@PC1 bin]$ ls BATCH check config INSTALL libtool mkinstalldirs R Rd2pdf Rdiff Rprof rtags Stangle build COMPILE exec javareconf LINK pager Rcmd Rdconv REMOVE Rscript SHLIB Sweave [liujiaxin02@PC1 bin]$ ./R R version 4.2.2 (2022-10-31) -- "Innocent and Trusting" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
分类:
R语言
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2022-01-14 linux 系统中awk命令实现统计每行数据的最大值、最小值
2022-01-14 linux awk命令实现统计每行数据的总和、平均值
2022-01-14 linux awk命令实现输出每一列数据的最大值、最小值
2022-01-14 linux awk命令实现对数据的每一列进行求和、求平均
2022-01-14 linux中bc命令
2022-01-14 linux中date命令获取日期信息
2022-01-14 linux sed + r实现在文件指定位置插入文件