r studio notification on installing package.

Hi, great people.
I'm trying to access 'geom' from my console but I keep getting this notification - 'package ‘geom’ is not available for this version of R'

Where could I be going wrong?

Thanks in advance.

If you are using


the message is reporting that it is not part of the CRAN repository of packages. Someone may have a package by that name hosted at github, for example, but that is unlikely, because the name is used as part of many functions within one of the most popular packages in R, {ggplot2}

If you haven't already


and then open a new R file and enter

ggplot(mtcars,aes(mpg,drat) + 
geom_point() +
geom_smooth(method = "lm ") +
ggplot(mtcars,aes(mpg,drat)) + 
         geom_point() +
         geom_smooth(method = "lm") +
#> `geom_smooth()` using formula = 'y ~ x'

Created on 2023-02-21 with reprex v2.0.2

This worked wonders.
Thanks a lot.
I had not 'checked' the ggplot box in the installed.packages.
I have done that and all is great.

1 Like

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.