Error calling function in R language library()

Asked 2 years ago, Updated 2 years ago, 55 views

>library(ggplot2)
 Error: package or namespace load failed for 'ggplot2' in get (Info[i,1], envir=env):
  Cannot open file 'C:/Users/ytfjv/Documents/R/win-library/4.0/rlang/R/rlang.rdb': No such file or directory 

The above error appears.
The library has two directories:

>.libPaths()
[1] "C:/Users/ytfjv/Documents/R/win-library/4.0"
[2] "C:/Program Files/R/R-4.0.0/library" 

Most functions contained in [1] cannot be invoked. (Functions in [2] can be invoked.)
Please tell me how to do it.
Thank you for your cooperation.

r

2022-09-30 19:53

1 Answers

"No such file or directory" = "Cannot open file or folder" error, so check the explorer to see if the specified folder C:/Users/ytfjv/Documents/R/win-library/4.0 exists.


2022-09-30 19:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.