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"