unable to install package in R Studio - Warning: unable to access index for repository...

this helped me to resolve the problem I faced. Thank you!