In R, there are two steps of using a package. The one-time install (e.g. install.packages("dplyr"), and the once-per-fresh-session "load" which is done using library(dplyr). It seems like the step you are taking to reinstall the package is doing both of these, but the typical workflow is to load the packages you need at the start of a script. No reinstall should be necessary.