An installation plan is similar to an installation proposal (i.e. pkg_installation_proposal), but it already contains the solved dependencies, complete with download URLs.
new_pkg_installation_plan(lockfile = "pkg.lock", config = list(), ...)
Path to the lock file to use.
Configuration options, a named list. See
'Configuration'. If it does not include library
, then
.libPaths()[1]
is added as library
.
Additional arguments, passed to
pkg_installation_plan$new()
.
new_pkg_installation_plan()
returns a pkg_installation_plan
object.
Typically you create a pkg_installation_plan
object with
new_pkg_installation_plan()
and then call its $download()
method
to download the packages and then its $install()
method to install
them.
pkgdepends::pkg_installation_proposal
-> pkg_installation_plan
Inherited methods
pkgdepends::pkg_installation_proposal$async_download()
pkgdepends::pkg_installation_proposal$create_lockfile()
pkgdepends::pkg_installation_proposal$download()
pkgdepends::pkg_installation_proposal$draw()
pkgdepends::pkg_installation_proposal$get_config()
pkgdepends::pkg_installation_proposal$get_downloads()
pkgdepends::pkg_installation_proposal$get_install_plan()
pkgdepends::pkg_installation_proposal$get_refs()
pkgdepends::pkg_installation_proposal$get_resolution()
pkgdepends::pkg_installation_proposal$get_solution()
pkgdepends::pkg_installation_proposal$get_sysreqs()
pkgdepends::pkg_installation_proposal$install()
pkgdepends::pkg_installation_proposal$install_sysreqs()
pkgdepends::pkg_installation_proposal$print()
pkgdepends::pkg_installation_proposal$show_solution()
pkgdepends::pkg_installation_proposal$show_sysreqs()
pkgdepends::pkg_installation_proposal$stop_for_download_error()
pkgdepends::pkg_installation_proposal$stop_for_solution_error()
new()
Create a new pkg_installation_plan
object. Consider using
new_pkg_installation_plan()
instead of calling the constructor
directly.
The returned object can be used to download and install packages, according to the plan.
pkg_installation_plan$new(
lockfile = "pkg.lock",
config = list(),
remote_types = NULL
)
lockfile
Path to the lock file to use.
config
Configuration options. See
'Configuration'. It needs to include the package
library to install to, in library
.
remote_types
Custom remote ref types, this is for advanced use, and experimental currently.
get_solve_policy()
Installation plans are already solved, and this method will return
NA_character_
, always.
solve()
This function is implemented for installation plans, and will error.
update()
Update the plan to the current state of the library. If the library has not changed since the plan was created, then it does nothing. If new packages have been installed, then it might not be necessary to download and install all packages in the plan.
format()
Format a pkg_installation_plan
object, typically for printing.