I am posting this issue here as I suppose it bothered many R users. It is recommended to update R and packages as frequently as possible (see https://community.rstudio.com/t/should-i-update-all-my-r-packages-frequently-yes-no-why/5856). Yet, this can be time consuming to look if your version is the latest one, download the last version of R and reinstall all your packages.
Recently I discovered the installr package. It provided the very nice function updateR(). According to the documentation, the updateR() function performs the following: finding the latest R version, downloading it, running the installer, deleting the installation file, copy and updating old packages to the new R installation
Thanks to this post: How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?