Hello,
I am new to R. I used it briefly a couple years ago but need it again for a stats class. I reopened my old version of it but it was having trouble running certain simple codes so I tried to download packages (knity, dplyr, ggplot2). Unfortunately, I would get lots of different errors as I tried to do this and I figured I should just get the latest version of R. When I did I ran into a new problem. No packages seem to be able to be installed. I simply did library(reader) and it gave:
Error: package or namespace load failed for ‘readr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘hms’
I also tried to install the other packages I mentioned and it either says " installation of package ‘ggplot2’ had non-zero exit status" or "The downloaded source packages are in
‘C:\Users\mail4\AppData\Local\Temp\RtmpOuebuQ\downloaded_packages’"
The installations that end with "The downloaded source packages ..." are probably successful installations. Run
Pkgs <- installed.packages()
then look at the Pkgs matrix and see which packages you have already installed. In addition to the packages you directly installed, there will be many that were installed as dependencies. Look for ggplot2, dplyr, etc., and see what is missing. Then try to install any missing packages and, if the installation message contains and Error message, post the entire output of install.packages() here. Put a line with three back ticks just before and after any output you post, like this:
```
output of install.packages()
```
library(readr)
Error: package or namespace load failed for ‘readr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘hms’
In addition: Warning message:
package ‘readr’ was built under R version 4.0.5
The package readr will not load because it needs the package hms and that is missing. You can try to install hms and see if that is the only package that is missing from readr's dependencies. However, you are running R 4.0.3, which was released 3 years ago. You may well run into trouble using packages built with more recent versions of R. Is there a reason you can't install the latest R?
The installation of dplyr failed because you did not put quotes around the package name. Try