Error Information:
Not able to install packages in RStudio
Description of issue -
I am trying to install packages on RStudio with the following command
install.packages("caret")
and getting the below error
Error in install.packages : STRING_ELT() can only be applied to a 'character vector', not a 'NULL'
Steps taken so far -
Earlier i have checked the paths through .libPaths(), it was showing me 2 paths.
I have changed the RProfile to get in the sync with single path and now when i am running RStudio as administrator its showing me one path.
"C:/Program Files/R/R-3.4.1/library"
But still i am not able to install packages on RStudio
System Information:
- RStudio Edition: (Desktop or Server) Desktop
- RStudio Version: RStudio 2022.02.0 Build 443
- OS Version: Windows 10
- R Version: 3.4.1
Also:
- RStudio diagnostics report:
- Your
sessionInfo()
: - RStudio crash report:
- RStudio application log files: