Devtools::install_github and admin privilege

I am on a work computer and need administrator privileges to install the latest development version of ggplot2. I can use the admin's account/password to elevate R-Studio to admin access, and then when I have them run devtools::install_github it installs the package to their user account and not my own. Any way to get around this?

Does specifying lib in the function call work? This is the same argument as in install.packages. Something like devtools::install_github('tidyverse/ggplot2', lib = 'your specific library directory')

Set the path to a folder that you have write-permission in .Renviron file