Error installing ggplot2 in MacOX Mojave using R version 4.0.0

I just downloaded R and RStudio for Mac (R version 4.0.0 for my MacOC Mojave version 14.3.6) and I was trying to install a couple of common packages such as ggplot2 and I got this message:

trying URL ''
Content type 'application/x-gzip' length 4012531 bytes (3.8 MB)

downloaded 3.8 MB

The downloaded binary packages are in

But then when I tried to use the function ggplot, it gave me this message:

Error in ggplot(data = mydata, aes(x = carat, y = price)) :
could not find function "ggplot"

How can I remedy this issue?

You need to load the package first:


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