r-lib / pak

A fresh approach to package installation
https://pak.r-lib.org
643 stars 56 forks source link

Disable apt-get "helper" #530

Closed gdevenyi closed 10 months ago

gdevenyi commented 10 months ago

I do not want pak trying to modify my system. How can I disable this helper trying to run apt-get

gaborcsardi commented 10 months ago

Set the PKG_SYSREQS=false env var, see https://pak.r-lib.org/reference/pak-config.html#pak-configuration

gdevenyi commented 10 months ago

Ctrl-F "apt-get" does not show up in that documentation.

gaborcsardi commented 10 months ago

See also https://pak.r-lib.org/reference/sysreqs.html

We should probably also add a note to the output about turning sysreqs off, plus stop for confirmation if R is running in interactive mode.

Re: apt-get, yeah, we could mention that (together with the other tools pak uses: yum, dnf, zypper, etc.), but I think it is better to have a note in the output about tuning it off.