R and RStudio are very different. You were asked to report the installed version of R. Your response was to repeat the version of RStudio from your original post. Your screenshot happens to include the top of the Console pane, which shows the version of R as 4.1.2. This is a couple of years old but should work. The latest version is R 4.3.1.
It is unlikely that someone accessed your computer remotely and deleted the Console and Environment. The Console record is not saved when you exit RStudio. This is why you should be saving all your code in an R Script, R Notebook, or Quarto document.
If you want to keep the contents of the Environment, go to the Tools menu, select Global Options ..., check the box under Workspace for "Restore .RData into Workspace on startup", then select "Always" or "Ask" for "Save Workspace to .RData on exit".