new_pkg_installation_plan | R Documentation |
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(), ...)
lockfile |
Path to the lock file to use. |
config |
Configuration options, a named list. See
'Configuration'. If it does not include |
... |
Additional arguments, passed to
|
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.
new_pkg_installation_plan()
returns a pkg_installation_plan
object.
pkgdepends::pkg_installation_proposal
-> pkg_installation_plan
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.
resolve()
This function is implemented for installation plans, and will error.
pkg_installation_plan$resolve()
async_resolve()
This function is implemented for installation plans, and will error.
pkg_installation_plan$async_resolve()
get_solve_policy()
Installation plans are already solved, and this method will return
NA_character_
, always.
pkg_installation_plan$get_solve_policy()
set_solve_policy()
This function is implemented for installation plans, and will error.
pkg_installation_plan$set_solve_policy()
solve()
This function is implemented for installation plans, and will error.
pkg_installation_plan$solve()
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.
pkg_installation_plan$update()
This operation is different than creating a new proposal with the
updated library, because it uses the the packages and package
versions of the original plan. E.g. if the library has a newer
version of a package, then $update()
will downgrade it to the
version in the plan.
update_sysreqs()
Update information about installed and missing system requirements.
pkg_installation_plan$update_sysreqs()
format()
Format a pkg_installation_plan
object, typically for printing.
pkg_installation_plan$format(...)
...
not used currently.
A character vector, each element should be a line in the printout.
clone()
The objects of this class are cloneable with this method.
pkg_installation_plan$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.