Trouble Downloading ggplot packages

I tried to Install ggplot2 with the following code:
install.packages("ggplot2")
And it doesn't work and show this warnings:
There are binary versions available but the source versions
are later:
binary source needs_compilation
cli 3.2.0 3.6.1 TRUE
gtable 0.3.0 0.3.4 FALSE
lifecycle 1.0.1 1.0.3 FALSE
rlang 1.0.2 1.1.1 TRUE
scales 1.2.0 1.2.1 FALSE
vctrs 0.4.1 0.6.3 TRUE
ggplot2 3.3.5 3.4.3 FALSE
Binaries will be installes

installation of package ‘scales’ had non-zero exit status
ERROR: dependencies 'gtable', 'lifecycle', 'scales' are not available for package 'ggplot2'

  • removing 'C:/Users/fabri/Documents/R/win-library/4.0/ggplot2'
    Warning in install.packages :
    installation of package ‘ggplot2’ had non-zero exit status

Please help me resolve this issue

Hi, welcome to the forum.

This thread may help Meaning of common message when install a package "There are binary versions available but the source versions are later" - #4 by streamline55

This topic was automatically closed 42 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.