Can't run Rstudio? 4.1.1 windows 11

R studio wont work? I open the program, the console doesnt work and then the following error messages pop up:
unable to establish connection with r session when executing get_search_path_function_definition

and

R encountered a fatal error. the session was terminated

Would appreciate any suggestions! I have deleted and re installed r studio and restarted my computer but the issue has remained.

Hi @bsmithorange
Welcome to the Posit/RStudio Community Forum.

You haven't given us much information to go on (you should read the posting guide!).

Did both R and RStudio install without errors? Did you stick to all the default options at install? If not, you'll need to show us the install errors.

Can you run R itself from the command line or the Rgui (i.e. without involving RStudio at all)? If "yes", then R is installed correctly. If you post the output from sessionInfo() it may elicit further help.

The latest version of R is 4.4.1 - have you tried installing that instead of 4.1.1?
Are you using the latest version of RStudio?
Are you trying to load a .Rdata file at startup - this may be causing a problem.

Good luck!