Warning and errror message at Session restart

Hello. I must have done something wrong at some point but now, everytime I start RStudio, I get this message:
Restarting R session...

Warning message:
package ‘ggplot2’ was built under R version 4.2.3
Error in subset(muscle_liver, tissue == "liver") :
object 'muscle_liver' not found

if I try exists(), it doesn't find it. I restarted Rstudio, uninstalled and reinstalled ggplot2, but the error is still there and it apparently keeps me from installing other ggplot2 extensions.
Can someone please help me figure out what to do? The only thing I haven't tried yet, is uninstalling and reinstalling R and Rstudio.
Please advise and thank you in advance.

Hi, welcome to the forum.

At a first guess, R & Rstudio is trying to load an existing workspace that it saved earlier. Have alook in your working directory and see if something vith a .Rdata extension shows up. If so kill it. Then set up Rstudio so that it does not automatically save your previous working space. This may help.

thank you! followed your suggestions, found and issue with a startup file and was able to install the desired package!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.