day6-Liuxuyang

學(xué)習(xí)R包
今天的內(nèi)容都不太懂
所以就重復(fù)了部分操作
設(shè)置鏡像

> options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")) 
> options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/") 
> options()$BioC_mirror
[1] "https://mirrors.ustc.edu.cn/bioc/"

安裝dplyr包

> install.packages("dplyr")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
還安裝相依關(guān)系‘fansi’, ‘pkgconfig’, ‘purrr’, ‘cli’, ‘crayon’, ‘utf8’, ‘ellipsis’, ‘generics’, ‘glue’, ‘lifecycle’, ‘magrittr’, ‘R6’, ‘rlang’, ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘pillar’

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/fansi_0.5.0.zip'
Content type 'application/zip' length 248894 bytes (243 KB)
downloaded 243 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/pkgconfig_2.0.3.zip'
Content type 'application/zip' length 22518 bytes (21 KB)
downloaded 21 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/purrr_0.3.4.zip'
Content type 'application/zip' length 429930 bytes (419 KB)
downloaded 419 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/cli_3.1.0.zip'
Content type 'application/zip' length 1235771 bytes (1.2 MB)
downloaded 1.2 MB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/crayon_1.4.2.zip'
Content type 'application/zip' length 157646 bytes (153 KB)
downloaded 153 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/utf8_1.2.2.zip'
Content type 'application/zip' length 209775 bytes (204 KB)
downloaded 204 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/ellipsis_0.3.2.zip'
Content type 'application/zip' length 49165 bytes (48 KB)
downloaded 48 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/generics_0.1.1.zip'
Content type 'application/zip' length 76995 bytes (75 KB)
downloaded 75 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/glue_1.5.1.zip'
Content type 'application/zip' length 171598 bytes (167 KB)
downloaded 167 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/lifecycle_1.0.1.zip'
Content type 'application/zip' length 123096 bytes (120 KB)
downloaded 120 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/magrittr_2.0.1.zip'
Content type 'application/zip' length 236085 bytes (230 KB)
downloaded 230 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/R6_2.5.1.zip'
Content type 'application/zip' length 84257 bytes (82 KB)
downloaded 82 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/rlang_0.4.12.zip'
Content type 'application/zip' length 1202351 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/tibble_3.1.6.zip'
Content type 'application/zip' length 872296 bytes (851 KB)
downloaded 851 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/tidyselect_1.1.1.zip'
Content type 'application/zip' length 204448 bytes (199 KB)
downloaded 199 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/vctrs_0.3.8.zip'
Content type 'application/zip' length 1253486 bytes (1.2 MB)
downloaded 1.2 MB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/pillar_1.6.4.zip'
Content type 'application/zip' length 1041690 bytes (1017 KB)
downloaded 1017 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.1/dplyr_1.0.7.zip'
Content type 'application/zip' length 1344372 bytes (1.3 MB)
downloaded 1.3 MB

package ‘fansi’ successfully unpacked and MD5 sums checked
package ‘pkgconfig’ successfully unpacked and MD5 sums checked
package ‘purrr’ successfully unpacked and MD5 sums checked
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘crayon’ successfully unpacked and MD5 sums checked
package ‘utf8’ successfully unpacked and MD5 sums checked
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘generics’ successfully unpacked and MD5 sums checked
package ‘glue’ successfully unpacked and MD5 sums checked
package ‘lifecycle’ successfully unpacked and MD5 sums checked
package ‘magrittr’ successfully unpacked and MD5 sums checked
package ‘R6’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘tidyselect’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘pillar’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Administrator\AppData\Local\Temp\RtmpYxOyAI\downloaded_packages
##這里應(yīng)該就是顯示安裝路徑了吧

加載dplyr包

> library(dplyr)

載入程輯包:‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

以上
(剩下的函數(shù)一時半會不能理解。。。按照示例數(shù)據(jù)來也報錯。。。
之后有時間再做探究吧)

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容