R中qplot报错如何解决

初学R
按照课本用qplot作图
下面的报错是咋回事

Warning message:
qplot() was deprecated in ggplot2 3.4.0.
This warning is displayed once every 8 hours.
Call lifecycle::last_lifecycle_warnings() to see where this warning
was generated.

打开R终端并输入以下命令:install.packages("ggplot2")
安装ggplot2 3.4.0版本。
安装完成后,您可以使用以下代码来更新您的R版本:library(ggplot2)
安装完成后,您可以使用以下代码来使用ggplot2的qplot函数:qplot(x = "age", y = "income", data = mydata)