热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

如何用服务器运行R代码,服务器|Rstudio使用

服务器上Rstudio使用1.登录Rstudio浏览器输入:http:192.168.1.103:8787#192.168.1.103为服务器ip2.永久修改安装包默

服务器上Rstudio使用

1.登录Rstudio

浏览器输入:

http://192.168.1.103:8787 #192.168.1.103为服务器ip

2.永久修改安装包默认安装的路径

> .libPaths() #查看默认安装包位置

[1] "/usr/local/lib/R/site-library"

[2] "/usr/lib/R/site-library"

[3] "/usr/lib/R/library"

> .libPaths("/home/pengzw/R/x86_64-pc-linux-gnu-library/3.5") 修改默认安装路径

> .libPaths() #查看确认

[1] "/home/pengzw/R/x86_64-pc-linux-gnu-library/3.5"

[2] "/usr/local/lib/R/site-library"

[3] "/usr/lib/R/site-library"

[4] "/usr/lib/R/library"

3.镜像选择:貌似直接在global options里面换不了,使用命令

>chooseCRANmirror() # 如果安装不了,换镜像

Secure CRAN mirrors

1: 0-Cloud [https] 2: Algeria [https]

3: Australia (Canberra) [https] 4: Australia (Melbourne 1) [https]

5: Australia (Melbourne 2) [https] 6: Australia (Perth) [https]

7: Austria [https] 8: Belgium (Ghent) [https]

9: Brazil (PR) [https] 10: Brazil (RJ) [https]

11: Brazil (SP 1) [https] 12: Brazil (SP 2) [https]

13: Bulgaria [https] 14: Chile 1 [https]

15: Chile 2 [https] 16: China (Hong Kong) [https]

17: China (Guangzhou) [https] 18: China (Lanzhou) [https]

19: China (Shanghai 1) [https] 20: China (Shanghai 2) [https]

21: Colombia (Cali) [https] 22: Czech Republic [https]

23: Denmark [https] 24: East Asia [https]

25: Ecuador (Cuenca) [https] 26: Ecuador (Quito) [https]

27: Estonia [https] 28: France (Lyon 1) [https]

29: France (Lyon 2) [https] 30: France (Marseille) [https]

31: France (Montpellier) [https] 32: France (Paris 2) [https]

33: Germany (Erlangen) [https] 34: Germany (Göttingen) [https]

35: Germany (Münster) [https] 36: Greece [https]

37: Iceland [https] 38: Indonesia (Jakarta) [https]

39: Ireland [https] 40: Italy (Padua) [https]

41: Japan (Tokyo) [https] 42: Japan (Yonezawa) [https]

43: Korea (Busan) [https] 44: Korea (Gyeongsan-si) [https]

45: Korea (Seoul 1) [https] 46: Korea (Ulsan) [https]

47: Malaysia [https] 48: Mexico (Mexico City) [https]

49: Norway [https] 50: Philippines [https]

51: Serbia [https] 52: Spain (A Coruña) [https]

53: Spain (Madrid) [https] 54: Sweden [https]

55: Switzerland [https] 56: Turkey (Denizli) [https]

57: Turkey (Mersin) [https] 58: UK (Bristol) [https]

59: UK (London 1) [https] 60: USA (CA 1) [https]

61: USA (IA) [https] 62: USA (KS) [https]

63: USA (MI 1) [https] 64: USA (OR) [https]

65: USA (TN) [https] 66: USA (TX 1) [https]

67: Uruguay [https] 68: (other mirrors)

Selection: 20

4.bioconductor包的安装

例如DEseq2安装:直接去bioconductor查看安装命令

if (!requireNamespace("BiocManager", quietly = TRUE))

install.packages("BiocManager")

BiocManager::install("DESeq2", version = "3.8")

5.附可学习参考内容



推荐阅读
author-avatar
手机用户2502885997
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有