/usr/lib/R/site-library/dplyr/include/dplyr/Result/GroupedCallReducer.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 27 28 29 30 31 32 33 34 35 36 37 | #ifndef dplyr_GroupedCallReducer_H
#define dplyr_GroupedCallReducer_H
#include <tools/Call.h>
#include <dplyr/Result/CallbackProcessor.h>
#include <dplyr/Result/GroupedCallProxy.h>
namespace dplyr {
template <typename Data, typename Subsets>
class GroupedCallReducer : public CallbackProcessor< GroupedCallReducer<Data, Subsets> > {
public:
GroupedCallReducer(Rcpp::Call call, const Subsets& subsets, const Environment& env, const SymbolString& name_) :
proxy(call, subsets, env),
name(name_)
{
}
virtual ~GroupedCallReducer() {};
inline SEXP process_chunk(const SlicingIndex& indices) {
return proxy.get(indices);
}
const SymbolString& get_name() const {
return name;
}
private:
GroupedCallProxy<Data, Subsets> proxy;
const SymbolString name;
};
} // namespace dplyr
#endif
|