/usr/lib/R/site-library/dplyr/include/tools/match.h is in r-cran-dplyr 0.7.4-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #ifndef dplyr_tools_match_h
#define dplyr_tools_match_h
namespace dplyr {
inline IntegerVector r_match(SEXP x, SEXP y, SEXP incomparables = R_NilValue) {
static Function match("match", R_BaseEnv);
if (R_VERSION == R_Version(3, 3, 0)) {
// Work around matching bug in R 3.3.0: #1806
// https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16885
if (Rf_isNull(incomparables)) {
return match(x, y, NA_INTEGER, LogicalVector());
}
else {
return match(x, y, NA_INTEGER, incomparables);
}
}
else {
return match(x, y, NA_INTEGER, incomparables);
}
}
}
#endif
|