Skip to content

Install the specified packages, or the ones required by the package or project in the current working directory.


pak(pkg = NULL, ...)



Package names or remote package specifications to install. See pak package sources for details. If NULL, will install all development dependencies for the current package.


Extra arguments are passed to pkg_install() or local_install_dev_deps().


This is a convenience function:

  • If you want to install some packages, it is easier to type than pkg_install().

  • If you want to install all the packages that are needed for the development of a package or project, then it is easier to type than local_install_dev_deps().

  • You don't need to remember two functions to install packages, just one.