Quit and restart a clean R session from within R?
If you're in RStudio:
command/ctrl + shift + F10 .rs.restartR()