we suggest you to uninstall R studio and then install it again and disable the antivirus or firewall when installing the R studio and while downloading the packages.
Please go through the suggestion and try to install the packages your issue will be resolved.