Error occurring after RStudio update

I got some error in packages that they are not supported in current version of r. I googled and ran some commands in R studio itself and updated it from 4.1.1 to 4.1.2 version. Right after that I'm getting errors every time I run something.
Throw errors like- "Show in New Window
Error in file(file, "rt") : cannot open the connection"
"Error: package or namespace load failed for ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 0.4.11 is already loaded, but >= 1.0.0 is required"
AND SOMETIMES ABORT STATING ""ABORTED.START NEW SESSION"

After an R version upgrade is a good practice to run update.packages(checkBuilt = TRUE) to make 6 sure all your packages are correctly compiled for your current R version.

This error message is simply asking you to update rlang so the update command should take care of this too.