[Rd] How do I reliably and efficiently hash a function?

2015-12-10 Thread Konrad Rudolph
I’ve got the following scenario: I need to store information about an R function, and retrieve it at a later point. In other programming languages I’d implement this using a dictionary with the functions as keys. In R, I’d usually use `attr(f, 'some-name')`. However, for my purposes I do not want t

Re: [Rd] How do I reliably and efficiently hash a function?

2015-12-10 Thread Charles C. Berry
On Thu, 10 Dec 2015, Konrad Rudolph wrote: I’ve got the following scenario: I need to store information about an R function, and retrieve it at a later point. In other programming languages I’d implement this using a dictionary with the functions as keys. In R, I’d usually use `attr(f, 'some-nam