Build a package into a specific library folder

install.packages() allows the user to install a package into a specific library folder.

Using the RStudio terminal, is it possible to "Clean and Rebuild" a package into a specific library folder?

We are developing in different environments and the ability to do this would help streamline our workflow process immensely.