- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to find the location of installed packages in R in windows operating system?
To find the location of installed packages in R in windows operating system, we can use the command mentioned below −
.libPaths()
This will return the location of installed packages in the first line and the program files in the second line.
Use the below mentioned code to find the location of installed packages in windows operating system −
.libPaths()
Output
If you execute the given snippet, it generates the following Output −
[1] "C:/Users/Nizam/Documents/R/win-library/4.0" [2] "C:/Program Files/R/R-4.0.4/library"
Use the below mentioned code to find the location of installed packages in windows operating system −
installed.packages()[1:20,]
Output
If you execute all the above given snippets as a single program, it generates the following Output −
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"
Advertisements