Error packages : there is no package called 'utf8'

I tried to install package ggplot2 in R Studio Desktop Windows. But I got the error message when I used the library :

> install.packages("ggplot2")
Installing package into ‘C:/Users/Rifqi/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/zip' length 4068844 bytes (3.9 MB)
downloaded 3.9 MB

package ‘ggplot2’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
> library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘utf8’

What should I do to fix this problem?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.