builds and installs in rstudio