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.
Usage
new_pkg_installation_plan(lockfile = "pkg.lock", config = list(), ...)
Arguments
- lockfile
Path to the lock file to use.
- config
Configuration options, a named list. See 'Configuration'. If it does not include
library
, then.libPaths()[1]
is added aslibrary
.- ...
Additional arguments, passed to
pkg_installation_plan$new()
.
Details
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.
Super class
pkgdepends::pkg_installation_proposal
-> pkg_installation_plan
Methods
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()
Method 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.
Usage
pkg_installation_plan$new(
lockfile = "pkg.lock",
config = list(),
remote_types = NULL
)
Arguments
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.
Method get_solve_policy()
Installation plans are already solved, and this method will return
NA_character_
, always.
Method solve()
This function is implemented for installation plans, and will error.
Method 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.
Method format()
Format a pkg_installation_plan
object, typically for printing.