R console not responding

My R console is not responding and every time I open R, all unsaved files open up. I tried closing them and running my code but the console is just reading the comments and not running the code. This is the code:

#load the library
library(ggplot2)

and this is the result:

#load the library

The ">" in the console is not appearing after running the code.

I tried closing R and restarting R already but still having the problems. I tried uninstalling and reinstalling R and the problem persists. How do I go about this?

Thank you very much.

Just to be clear, this is R (being run in a terminal) as opposed to RStudio, RGui, R Commander or some other GUI for R?

Apologies, this was run in RStudio

Does resetting RStudio's state help?

This topic was automatically closed 90 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.