Test membership of (Package, Version) pairs between indexes
Source:R/pkg_index.R
grapes-pkg_in-grapes.RdInfix operator that checks, for each row of x, whether a row
with the same (Package, Version) exists in y. If a match is found but
any other canonical fields differ, a warning is issued. Returns a logical
vector of length nrow(x).
Row identity is based on pkg_index row names, which are always
"Package (Version)".
Examples
x <- as_pkg_index(data.frame(Package=c("foo","bar"), Version=c("1.0","2.0")))
y <- as_pkg_index(data.frame(Package="foo", Version="1.0"))
x %pkg_in% y
#> [1] TRUE FALSE