When trying to find an easy way to update all my packages to the new version of R I was running, I foolishly entered this code into my script:
## get packages installed packs = as.data.frame(installed.packages(.libPaths()), stringsAsFactors = F) ## and now re-install install packages using install.packages() install.packages(packs$Package)
Now, even after removing it from my script and restarting Rstudio countless times, I cannot run any of my code. The code does not appear in the console and there is no >, +, or blinking cursor in the console.
I think I have done something similar before and suspect it is attempting to run that code at every startup. I once found how to edit the startup code in the Rstudio Program Files but it took days of searching forums to find the solution and I can't find it again. Any help would be greatly appreciated.
Edit: Uninstalling and reinstalling RStudio does not solve the problem