Skip to contents

This function uses the function repro_dependency_tree to build the dependency tree between packages. Then, it retrieves the link to install the specific version of packages. The function returns a dataframe where packages are in the order to install. This dataframe contains link to download package version. build a dependency tree for a provided list of packages. If some packages are required by the provided list but are not in the list, they are added.

Usage

repro_installation_order(
  wanted_packages = utils::installed.packages()[, "Package"],
  verbose = TRUE
)

Arguments

wanted_packages

CHARACTER : a list of wanted and already installed packages (default to all packages installed)

verbose

LOGICAL : whether to print a progress bar or not (default to TRUE)

Value

The function returns a dataframe where packages are in the order to install. This dataframe contains link to download package in the same version as installed.

Details

TO DO :

  • make the function working for uninstalled package : one must also add the wanted version

  • add a new parameter to set the list of exception. It must be named vector containing the url to download package. Packages are the names of this vector.