Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent install/upgrade packages #674

Closed
latot opened this issue Aug 13, 2024 · 2 comments
Closed

Silent install/upgrade packages #674

latot opened this issue Aug 13, 2024 · 2 comments

Comments

@latot
Copy link

latot commented Aug 13, 2024

Hi! I think would be great an option for silent installs/updates for pak, only print if there is an error or similar.

Thx!

@gaborcsardi
Copy link
Member

Use suppressMessages():

❯ suppressMessages(pak::pkg_install("tidyverse", lib = "/tmp/lib2"))
❯ suppressMessages(pak::pkg_install("tidyverse2", lib = "/tmp/lib2"))
Error:
! error in pak subprocess
Caused by error:
! Could not solve package dependencies:
* tidyverse2: Can't find package called tidyverse2.
Type .Last.error to see the more details.

@latot
Copy link
Author

latot commented Aug 13, 2024

Hi! @gaborcsardi I know there exists that utility, the issue is that is silence a lot of things... far from ideal.

I agree still is a simple solution.

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

No branches or pull requests

2 participants