Reputation: 1
I'm fairly new to R. I'm using RStudio on Windows 10 for a class and I got this when trying to load dplyr after installing it:
> install.packages("dplyr")
Installing package into ‘C:/Users/samot/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/dplyr_1.0.5.zip'
Content type 'application/zip' length 1334630 bytes (1.3 MB)
downloaded 1.3 MB
package ‘dplyr’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\samot\AppData\Local\Temp\RtmpUv0uns\downloaded_packages
> library(dplyr)
Error: package or namespace load failed for ‘dplyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘utf8’
Not quite sure how to get it to run. Any help would be appreciated.
Upvotes: 0
Views: 909
Reputation: 887088
We can install the package that is needed
install.packages('utf8')
Or another option is to specify the dependencies
as TRUE to install all the necessary packages
install.packages('dplyr', dependencies = TRUE)
Upvotes: 2