免root在手机上安装Termux,创建linux环境并安装R

step1: xx网站注册账号,挂VPN

[https://letslook.net/super/message](https://letslook.net/super/message)

step2:下载Google Play, 安装termux

step3:设置镜像源

sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux stable main@' $PREFIX/etc/apt/sources.list
apt update && apt upgrade

查看源文件

vi  $PREFIX/etc/apt/sources.list

安装更新源和基础包

pkg update && pkg upgrade
pkg install vim curl wget git unzip unrar tar

挂载QQ接收文件目录软链接,方便日后QQ传文件直接打开使用

ln -s /data/data/com.termux/files/home/storage/shared/tencent/QQfile_recv QQ

step4:安装基础R

pkg install r-base

更改R镜像源为清华镜像

file.edit("./Rprofile")

然后写入到Rprofile文件中

options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")) #对应清华源 
options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/")#中科大源

运行R

R

step5:一步安装ubuntu脚本,需挂VPN

pkg install wget openssl-tool proot -y && hash -r && wget https://raw.githubusercontent.com/DyingLight12/Android_Learning/master/install_system.sh && bash install_system.sh#选1运行程序
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容