Unable to install packages on R studio version 3.4.4

This StackOverflow answer collects a range of things to try when facing this problem:

link shamelessly stolen from @EconomiCurtis's post in a similar thread: