Devtools::install_github and admin privilege

ggplot2

#1

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?


#2

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')


#3

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

https://csgillespie.github.io/efficientR/3-3-r-startup.html#r-startup