官术网_书友最值得收藏!

How to do it…

Take a look at the following steps:

  1. If you want to check which version of ggplot2 has been installed onto your computer, you can run the following command:
        library(versions)
installed.versions("ggplot2")

The preceding command will show the following output on the console screen:

        > installed.versions("ggplot2")
Checking package in 'C:/rPackages'
(as 'lib' is unspecified)
[1] "2.2.0"
>
  1. Now, to install the required version of any library, you first need to know the version number and how that has been written in the library documentation. Then, use that version number as follows:
      install.versions("ggplot2", versions = "2.2.0")
主站蜘蛛池模板: 怀远县| 灵台县| 临城县| 怀远县| 龙陵县| 淅川县| 大荔县| 高密市| 措勤县| 土默特左旗| 南郑县| 天峻县| 沧州市| 锦州市| 许昌县| 锦屏县| 教育| 承德县| 兴化市| 海门市| 桐城市| 崇明县| 溧阳市| 铜川市| 开阳县| 德江县| 大埔县| 鲁山县| 吉林市| 定西市| 海丰县| 慈溪市| 阿瓦提县| 大关县| 泰兴市| 海原县| 博兴县| 大竹县| 屏山县| 宜阳县| 南召县|