unique_highest_package_versions: Create unique list of highest package versions.

View source: R/helper_functions.R

unique_highest_package_versionsR Documentation

Create unique list of highest package versions.

Description

Creates a vector with the unique set of with package name = versions and will keep the highest version when multiple versions of one package are defined.

Usage

unique_highest_package_versions(packNameVersion, return_as_df = FALSE)

Arguments

packNameVersion

provide a package name list like so: c(dplyr = '0.5.0', R6 = '', R6 = 0.5)

return_as_df

FALSE if the output should remain a structured dataframe, or if it should return a named character vector.

To get a feel with the function, you can try:

  multiversion:::unique_highest_package_versions(
      c(pack.a = '0.1.0', pack.c = '5.2', package.b = '1.9',   pack.c = '99.99'))

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