Error in ggplot2

Hi, I had some error installing package ggplot2:

install.packages("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 'https://cloud.r-project.org/src/contrib/ggplot2_3.3.5.tar.gz'
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?

Tks

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.

Tks,

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.

Tks,

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:
https://cran.r-project.org/bin/linux/debian/#debian-buster-stable

Do you have an account with sudo authorization?

Tks,

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.