Problem with install_packages and install_github

I have seen this problem only once, I couldn't identify the cause for sure but apparently was solved by reinstalling R completely, including the base package library. See this related topic