You can do both by restarting your R session in RStudio with the keyboard shortcut Ctrl+Shift+F10 which will totally clear your global environment of both objects and loaded packages.
Ctrl+L — Clear the Console.
Alternatively referred to as Control+R, ^r, and C-r, Ctrl+R is a keyboard shortcut most often used to refresh the page in an Internet browser.
What is the command or keyboard shortcut equivalent to pressing the little broom button in the History window of RStudio which clears out the entire history buffer in the current session?
Note that I don't mean Ctrl + L which clears the command window, I mean clearing history which is accessed by pressing the up-arrow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With