If you have deleted or otherwise broken your .Rprofile or .Renviron files, you may have difficulty connecting to the package cache. This function will regenerate both for you. The existing .Rprofile must be deleted manually. You can choose to archive the old version if you wish. It will be replaced with the standard .Rprofile from blaseRtemplates. The .Renviron file will be modified by removing the damaged lines and replacing them with the correct ones. You must supply the correct file path locations to your cache directory and project directory, otherwise your R installation will be configured incorrectly.