When I build my own package in RStudio I click on "Install and restart" in the Build-tab. I\'m wondering if I could do this via a function. I\'ve seen that some co