Skip to contents

Drops rows where Package == package and Version == version.

Usage

pkg_index_remove_version(x, package, version)

Arguments

x

A pkg_index.

package

Package name (character scalar).

version

Version string coercible with as.package_version().

Value

A pkg_index with matching rows removed.

Examples

x <- as_pkg_index(data.frame(Package=c("foo","foo"), Version=c("1.0","1.1")))
pkg_index_remove_version(x, "foo", "1.0")
#>           Package Version Priority Depends Imports LinkingTo Suggests Enhances
#> foo (1.1)     foo     1.1     <NA>    <NA>    <NA>      <NA>     <NA>     <NA>
#>           License License_is_FOSS License_restricts_use OS_type Archs MD5sum
#> foo (1.1)    <NA>            <NA>                  <NA>    <NA>  <NA>   <NA>
#>           NeedsCompilation
#> foo (1.1)             <NA>