1.1 Installing a Package
1.1.1 Problem
You want to install a package from CRAN.

1.1.2 Solution
Use install.packages() and give it the name of the package you want to install. To install ggplot2, run:

install.packages(“ggplot2”)
At this point you may be prompted to select a download mirror. It’s usually best to use the first choice, https://cloud.r-project.org/, as it is a cloud-based mirror with endpoints all over the world.

1.1.3 Discussion
If you want to install multiple packages at once, you can pass it a vector of package names. For example, this will install most of the packages used in this book:

install.packages(c(“ggplot2”, “gcookbook”, “MASS”, “dplyr”))
When you tell R to install a package, it will automatically install any other packages that the first package depends on.

CRAN (the Comprehensive R Archive Network) is a repository of packages for R, and it is mirrored on many servers around the world. It is the default repository system used by R. There are other package repositories; Bioconductor, for example, is a repository of packages related to analyzing genomic data.

r graphics installing package相关推荐

  1. An error occurred while installing package ‘conda-forge::certif‘ FileNotFoundError(2, ‘系统找不到指定的文件‘)

    报错:ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::cer ...

  2. R语言中package ‘xxxx’ is not available (for R version xxx)的解决办法以及R如何在线升级版本?

    R语言中package 'xxxx' is not available (for R version xxx)的解决办法以及R如何在线升级版本? 第一步:在R或者Rstudio中安装installr包 ...

  3. Slowfast环境配置问题 | 安装PyAV报错An error occurred while installing package ‘conda-forge::olefile-0.46-pyh9f

    报错界面: Preparing transaction: done Verifying transaction: done Executing transaction: failed ERROR co ...

  4. R语言包(package)以及相关命令语句

    一.包 包(package)是R语言的精髓所在,通过挑选合适的包可以帮助使用者快速实现希望的功能,包可以通过http://cran.r-project.org/web/packages网站进行下载再安 ...

  5. R语言解决package ‘MODIS’ is not available (for R version 3.6.3) 的问题

    下载MODIS包出现上述错误后改用下述语句: > install.packages("MODIS", repos='https://mran.microsoft.com/sn ...

  6. R语言中package ‘xxxx’ is not available (for R version 3.2.5)解决

    目录 问题描述 报错解决 问题描述 今天,想用ggplot2画个图,想下载tidyr和dplyr包进行数据转换.结果,哎,报错了.报错内容如下: Warning in install.packages ...

  7. R报错|Package ‘MASS’ version 7.3.55 cannot be unloaded

    在使用加载MASS包时报错:Package 'MASS' version 7.3.55 cannot be unloaded: library("MASS") Package 'M ...

  8. R studio caret package 安装

    R安装caret包 安装代码 install.packages("caret") 安装过程中无法打开文件,报错: Warning in install.packages :URL ...

  9. 【R语言】package ‘xxx‘ is not available for this version of R

    在面对R语言安装一些包的时候往往会遇到package 'xxx' is not available for this version of R的问题,其他的方法网上都查的到,但几乎都没用:于是可以直接 ...

最新文章

  1. java 服务器操作系统_java获得当前服务器的操作系统是什么?怎么获得
  2. JQ学习(三)-ajax
  3. 知识管理≈内容管理≈文档管理≈项目文档管理
  4. pdfwin10闪退_win10系统打开文件夹闪退的解决方法
  5. 计算机设备的变化,这些年电脑桌上的变迁 篇一:设备的更迭
  6. css sgc加密,ASP+SGC实现柱状图
  7. linux删除几日的文件脚本,Windows Linux 删除N天之前文件脚本
  8. MyBatis理解与掌握(输入与输出)
  9. 赴日游个人签证门槛降低 年薪3万可申请
  10. Atitit. 构造ast 语法树的总结attilax v2 q0f
  11. atitit.软件开发GUI 布局管理优缺点总结java swing wpf web html c++ qt php asp.net winform
  12. 火力发电厂工控系统网络安全解决方案 - 对比分析
  13. C++求最大公约数和最小公倍数
  14. Win7任务管理器找不到进程怎么办
  15. 有关Android插件化的一些总结思考,html5在移动端开发优势更明显
  16. 坐标系之间的旋转平移变换与对应变换矩阵的关系
  17. java如何批量生成二维码,并返回成压缩包形式?
  18. php判断字符串长度
  19. No connected devices found; please connect a device, or see flutter.dev/setup for getting started in
  20. 【Android必备】构建一个App小部件(24)【代码块异常】

热门文章

  1. 还不知道要看什么小说嘛?爬取小说网站前10页的小说数据分析一波
  2. AWS DataPipline 的一次尝试。
  3. devstack部署openstack流程与相关问题的记录(ubuntu 16.04)
  4. 离散制造业的数据采集之路
  5. Three.js中实现场景雾化效果
  6. Winform中通过代码设置DevExpress的TextEdit的类型为Numbernic
  7. webpack的入口起点(EntryPoints)
  8. Python双版本下No module named 'requests'
  9. 想了解Sleuth+zipkin分布式请求链路追踪,来看看这篇文章吧!
  10. Agile Use Cases in Four Steps