Error in ggplot2

Hi, I had some error installing package ggplot2:

Installing package into ‘/home/usuario/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘mgcv’ is not available
tentando a URL ''
Content type 'application/x-gzip' length 3063309 bytes (2.9 MB)
downloaded 2.9 MB

ERROR: dependency ‘mgcv’ is not available for package ‘ggplot2’

Any clue how to solve it?


The mgcv package requires R >= 3.6.0. If you are running R 3.5, as suggested by your library path, you need to upgrade R.


Is version R 3.6 avaiable for Linux Debian?

The latest version is 4.1.0 and you should update to that unless you have a strong reason not to. You will have to update your packages also.


I have no experiente at R and Linux; how should I update? Any specific comand line ?

I only have a little familiarity with Linux. There are some instruction here that may be helpful:

Do you have an account with sudo authorization?


I will try that command.

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.