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

pkg_functions #1

Closed
7 tasks done
jimhester opened this issue Nov 6, 2017 · 7 comments
Closed
7 tasks done

pkg_functions #1

jimhester opened this issue Nov 6, 2017 · 7 comments
Labels
feature a feature request or enhancement
Milestone

Comments

@jimhester
Copy link
Member

jimhester commented Nov 6, 2017

  • pkg_install(“sf”) # install from cran without prefix
  • local_pkg_install() - pkgdepends does not currently work with directories. pkginstall does, but we need to also query / install the dependencies.
  • local_pkg_install_deps()
  • local_pkg_install_dev_deps()
  • pkg_update() # default updates all packages
  • pkg_remove()
  • pkg_status()
@gaborcsardi gaborcsardi added this to the CRAN release milestone Mar 12, 2018
@Breza
Copy link

Breza commented Mar 13, 2018

I'm really interested in seeing pkg_update() become a reality. Multithreading when installing packages is nice, but it would really be a gamechanger when updating dozens of packages at once.

@jimhester
Copy link
Member Author

jimhester commented Mar 14, 2018

@Breza assuming you are only updating packages from CRAN you can already do this with update.packages(Ncpus = 8) to update e.g. 8 packages in parallel. Or set option(Ncpus = XYZ) to do it by default.

@ghost
Copy link

ghost commented Mar 27, 2019

Bump on this to know: is anyone working on the pkg_update() functionality yet?

@jimhester jimhester added the feature a feature request or enhancement label Aug 18, 2020
@rossellhayes
Copy link

Can pkg_update() be implemented as pkg_install(rownames(utils::old.packages()))?

@gaborcsardi
Copy link
Member

@rossellhayes Only if all your installed packages are available on CRAN/Bioc and your configured repos. If you have other package sources, then it gets more difficult. Updating the whole library is not a trivial operation.

@rossellhayes
Copy link

I hadn't considered that, thank you for explaining!

@gaborcsardi
Copy link
Member

#289 has pkg_upgrade(), which upgrades one package and its dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

4 participants