Skip to content

move sudo to outside execute of system_requirements_internal#279

Open
lz100 wants to merge 3 commits intor-lib:mainfrom
lz100:master
Open

move sudo to outside execute of system_requirements_internal#279
lz100 wants to merge 3 commits intor-lib:mainfrom
lz100:master

Conversation

@lz100
Copy link

@lz100 lz100 commented Mar 2, 2021

If we just want to print out the command with sudo but does not want to execute the command,
current 'pak' does not prepend "sudo" unless you combine execute = TRUE, e.g

pak::pkg_system_requirements("openssl", sudo = TRUE, execute = FALSE)
##  [1] "apt-get install -y libssl-dev"

This pull request moves sudo outside execute, so when sudo = TRUE, execute = FALSE, the sudo will still be prepend to
output.

Co-authored-by: Jim Hester <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants