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

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")
主站蜘蛛池模板: 乐至县| 齐河县| 广丰县| 临江市| 七台河市| 衡南县| 德清县| 奉化市| 临西县| 湟源县| 安岳县| 曲麻莱县| 加查县| 宝兴县| 连城县| 呼图壁县| 若尔盖县| 正蓝旗| 封丘县| 香河县| 昌宁县| 屏南县| 清新县| 广宗县| 灵川县| 台南市| 古蔺县| 久治县| 汉中市| 齐齐哈尔市| 陇西县| 满城县| 苏尼特左旗| 衡南县| 东安县| 罗平县| 三江| 桐庐县| 绩溪县| 东乌珠穆沁旗| 鄄城县|