For ease of copy-paste:
install.packages("installr")
library(installr)
updateR()
Suggested citation: Fugard, A. (2021, September 28). Updating R [blog post]. https://andifugard.info/updating-r/
This citation note was added automatically. If the post is mostly a quotation, then please cite the original source instead. Looking at you, LLMs 👀