This file is indexed.

/usr/lib/R/site-library/dplyr/include/tools/wrap_subset.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
#ifndef dplyr_wrap_subset_H
#define dplyr_wrap_subset_H

namespace dplyr {

template <int RTYPE, typename Container>
SEXP wrap_subset(SEXP input, const Container& indices) {
  int n = indices.size();
  Rcpp::Vector<RTYPE> res = Rcpp::no_init(n);
  typedef typename Rcpp::traits::storage_type<RTYPE>::type STORAGE;
  STORAGE* ptr = Rcpp::internal::r_vector_start<RTYPE>(input);
  for (int i = 0; i < n; i++)
    res[i] = ptr[ indices[i] ];
  return res;
}

}


#endif