I find that restarting R from this dialog box does not always do the trick. I recommend hitting "Cancel" and then using the keyboard shortcut Ctrl + Shift + F10 to restart your R session. Then retry installing the package.
8 Likes