Linux系统下如何给R软件安装软件包

 时间:2024-10-14 23:36:16

1、在Linux终端窗口打开R:liyi@liyi:~ > R

2、运用install.packages()函数安装软件包,并且选择镜像,我选择了”中国厦门“作为镜像R version 3.0.2 (2013-09-25) -- "Fr足毂忍珩isbee Sailing"Copyright (C) 2013 The R Foundation for Statistical ComputingPlatform: 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 localeR 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.> install.packages("randomForest")

Linux系统下如何给R软件安装软件包

3、镜像选择好了以后,函数就在R软件自行下载相关依赖包配置环境:> install.packages("randomForest")Installing package into ‘/home/liyi/R/x86_64-pc-linux-gnu-library/3.0’(as ‘lib’ is unspecified)

Linux系统下如何给R软件安装软件包

4、以上步骤完成以后,只需要最后一步即可:> library(random掂迎豢畦Forest) randomForest 4.6-12 Type rfNews() to see new features/changes/bug fixes. 至此randomForest软件包已经安装好了,用户即可调用软件包的函数来完成自己的数据分析工作了。

Linux系统下如何给R软件安装软件包
  • 中暑里怎样急救?
  • 直面高考迎接挑战
  • 九种食物预防心脑血管疾病
  • 中国银行企业贷款利率有什么规定
  • 非上市公司股权激励如何定行权价格?
  • 热门搜索
    民族团结手抄报资料 师恩难忘手抄报 一二年级普通话手抄报 爱国手抄报的内容 清明节手抄报一年级 教师节手抄报内容文字 中秋节手抄报简单 遨游汉字王国的手抄报 纪念英雄手抄报 科普知识手抄报内容