The next release of devtools uses pak::local_install_deps() for installing dependencies inside devtools::install(). I learned the hard way, i.e. via unsuccessful CRAN submission, that this can actually lead to a call to sudo.
I've now taken measures to ensure that devtools doesn't inadvertently trigger this, now or in the future. But it would also be nice if pak didn't call sudo -s id until/unless it has a proven need to know this information.
The next release of devtools uses
pak::local_install_deps()for installing dependencies insidedevtools::install(). I learned the hard way, i.e. via unsuccessful CRAN submission, that this can actually lead to a call tosudo.I've now taken measures to ensure that devtools doesn't inadvertently trigger this, now or in the future. But it would also be nice if pak didn't call
sudo -s iduntil/unless it has a proven need to know this information.