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

How it works…

In any of the commands to install a library, either install.packages(), install_github(), or biocLite(), first, it connects with the mirror server where the source code / binary-released version of the specified library is located. Then, it checks whether the dependent libraries are installed onto the computer or not. If the required dependent library is absent, then it will download and install those required libraries before installing the one you specified through the command. The command will also search for the location where the installed library will be stored. You can explicitly specify the location or you can use the default. The recommended approach is to specify a location and install all customized libraries into that folder.

To specify the installation location, you can use the lib= option within the function. Make sure you have created the folder that you are going to use as the destination folder. Here is an example:

    install.packages("ggplot2", lib="c:/rPackages")
主站蜘蛛池模板: 南阳市| 鄱阳县| 涿州市| 咸阳市| 东辽县| 海南省| 会东县| 龙里县| 安国市| 会理县| 吴堡县| 乐都县| 文山县| 肥乡县| 正蓝旗| 克拉玛依市| 湖州市| 宁安市| 昔阳县| 曲水县| 东乡县| 青浦区| 措勤县| 泸定县| 阿瓦提县| 临城县| 古交市| 会泽县| 双鸭山市| 什邡市| 清涧县| 密山市| 中方县| 巨野县| 古交市| 六盘水市| 邢台县| 当涂县| 洱源县| 隆化县| 潜山县|