Cann't install ggplot2 in my mac

Everytime I try to install ggplot2 or dplyr i get the following instructions:
There is a binary version available but the source version is later:
binary source needs_compilation
rlang 0.1.6 TRUE

Do you want to install from sources the package which needs compilation?**
y/n: y

The downloaded source packages are in

But package is not present in the library. How can I install the ggplot2? someone else who had the same version of mac didn't have this problem.

Does the rest of the installation run successfully?

What happens when you run library(ggplot2)?

Have you checked your library path settings? It's possible that it's being downloaded somewhere that R isn't looking (though I'm not sure why that would happen for only specific packages). See the thread below for details on .libPahts().

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