You can bypass the extra things that RStudio does when installing packages by calling utils::install.packages
directly. Alternatively, under the Tools menu, there is an "Install Packages..." dialog which allows in the first dropdown to select installing from "Package Archive File (.zip; .tar.gz)"
The fact that the RStudio version of install.packages
does not respect repos=NULL
should probably be filed as a bug with RStudio.