lib.dependsOnMe: Shows the dependencies of (all or) a certain function(s).

View source: R/VC_library_writing.R

lib.dependsOnMeR Documentation

Shows the dependencies of (all or) a certain function(s).

Description

Can be called without using quotes like lib.dependsOnMe(dplyr). It supports the special feature lib.dependsOnMe(all), which will print a list of all packages available with their dependencies.

A simple wrapper "lib.installed_packages", will do precisely that.

Usage

lib.dependsOnMe(
  ...,
  checkMyDeps = NULL,
  lib_location = lib.location(),
  dont_print = FALSE
)

Arguments

...

All packages and their versions you would like to check e.g. lib.dependsOnMe(DBI = '0.5', assertthat, R6 = '0.6', quietly = TRUE).

checkMyDeps

Supports providing a named character vector of packages and their versions instead of the direct input. Use it like this when calling it via another function.

lib_location

The folder containing a structure where this function observe the dependencies from. By default, it checks the environment variable R_MV_LIBRARY_LOCATION for this directory.

dont_print

When true, will not print anything, but will expect you to make use of the invisibly returned package character vector.

Value

It returns a special character array with package:version names for every package that has a dependency on the provided checkMyDeps or ... condition.


multiversion documentation built on March 22, 2022, 1:07 a.m.