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

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")
主站蜘蛛池模板: 右玉县| 湖州市| 朝阳区| 盘锦市| 西林县| 建宁县| 汤阴县| 洞头县| 通州市| 丹凤县| 巴马| 宜章县| 满洲里市| 宜昌市| 雅江县| 云浮市| 亳州市| 临洮县| 沂南县| 瓮安县| 中卫市| 阳朔县| 年辖:市辖区| 张北县| 洛南县| 德兴市| 鄄城县| 汤阴县| 全南县| 孟津县| 会泽县| 尚志市| 辽宁省| 芮城县| 八宿县| 竹北市| 陵川县| 沙雅县| 崇州市| 准格尔旗| 五寨县|