如何在 Windows 操作系统中找到 R 中已安装包的位置?
要在Windows操作系统中找到R中已安装包的位置,我们可以使用下面提到的命令-
.libPaths()
这将在第一行返回已安装包的位置,在第二行返回程序文件的位置。
使用下面提到的代码在Windows操作系统中查找已安装软件包的位置-
.libPaths()输出结果
如果您执行给定的代码段,它会生成以下输出-
[1] "C:/Users/Nizam/Documents/R/win-library/4.0" [2] "C:/Program Files/R/R-4.0.4/library"
使用下面提到的代码在Windows操作系统中查找已安装软件包的位置-
installed.packages()[1:20,]输出结果
如果您将上述所有给定的片段作为单个程序执行,它会生成以下输出-
Package LibPath Version abind "abind" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.4-5" ade4 "ade4" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.7-15" ash "ash" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.0-15" askpass "askpass" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.1" assertthat "assertthat" "C:/Users/Nizam/Documents/R/win-library/4.0" "0.2.1" backports "backports" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.1.7" base64enc "base64enc" "C:/Users/Nizam/Documents/R/win-library/4.0" "0.1-3" BH "BH" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.72.0-3" bit "bit" "C:/Users/Nizam/Documents/R/win-library/4.0" "4.0.4" bit64 "bit64" "C:/Users/Nizam/Documents/R/win-library/4.0" "4.0.5" bitops "bitops" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.0-6" blob "blob" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.2.1" bmp "bmp" "C:/Users/Nizam/Documents/R/win-library/4.0" "0.3" broom "broom" "C:/Users/Nizam/Documents/R/win-library/4.0" "0.7.3" BSDA "BSDA" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.2.0" callr "callr" "C:/Users/Nizam/Documents/R/win-library/4.0" "3.4.3" car "car" "C:/Users/Nizam/Documents/R/win-library/4.0" "3.0-10" carData "carData" "C:/Users/Nizam/Documents/R/win-library/4.0" "3.0-4" caret "caret" "C:/Users/Nizam/Documents/R/win-library/4.0" "6.0-86" caTools "caTools" "C:/Users/Nizam/Documents/R/win-library/4.0" "1.18.0"