/usr/lib/R/site-library/dplyr/include/tools/all_na.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 | #ifndef dplyr_tools_all_na_H
#define dplyr_tools_all_na_H
template <int RTYPE>
inline bool all_na_impl(const Vector<RTYPE>& x) {
return all(is_na(x)).is_true();
}
template <>
inline bool all_na_impl<REALSXP>(const NumericVector& x) {
return all(is_na(x) & !is_nan(x)).is_true();
}
inline bool all_na(SEXP x) {
RCPP_RETURN_VECTOR(all_na_impl, x);
}
#endif
|