Some packages do not work in old version of R.

We have to update the R on our computer.

1. Install R package “installr”

1
2
install.packages("installr")
library(installr)

2. Click “installr” and then “Update R”

Reference

https://cloud.tencent.com/developer/article/1436372