It would be useful for packages to be able to extend attributes. Package foo could register a foo::bar attribute to do something about a function, a class, whatever ...
I have one use case in mind for this in dplyr where it would be nice to be able to register hybrid handlers as:
// [[dplyr::handler(hitchhiker)]]
Result* hitchhiker_handler( SEXP, const LazySubsets&, int ){
return new Hitchhiker ;
}
See the hybrid evaluation vignette for context.
It would be useful for packages to be able to extend attributes. Package
foocould register afoo::barattribute to do something about a function, a class, whatever ...I have one use case in mind for this in
dplyrwhere it would be nice to be able to register hybrid handlers as:See the hybrid evaluation vignette for context.