Re: [Rd] Request: tools::md5sum should accept connections and finally in-memory objects

2020-05-01 Thread Dénes Tóth
On 5/1/20 11:35 PM, Duncan Murdoch wrote: The tools package is not for users, it's for functions that R uses in installing packages, checking them, etc. I think the target group for this functionality is the group of R developers, not regular R users. If you want a function for users, i

Re: [Rd] Request: tools::md5sum should accept connections and finally in-memory objects

2020-05-01 Thread John Mount
> So yes, if one wants to use all the utilities or the various algos that the > digest package provides, one should install and load it. But if one can live > with MD5 hashes, why not use the built-in R function? (Well, without > serializing an object to a file, calling tools::md5sum, and then

Re: [Rd] Request: tools::md5sum should accept connections and finally in-memory objects

2020-05-01 Thread Duncan Murdoch
The tools package is not for users, it's for functions that R uses in installing packages, checking them, etc. If you want a function for users, it would belong in utils. But what's wrong with the digest package? What's the argument that R Core should take this on? Duncan Murdoch On 01/05/

Re: [Rd] Request: tools::md5sum should accept connections and finally in-memory objects

2020-05-01 Thread Dénes Tóth
On 5/1/20 11:09 PM, John Mount wrote: Perhaps use the digest package? Isn't "R the R packages?" I think it is clear that I am aware of the existence of the digest package and also of other packages with similar functionality, e.g. the fastdigest package. (And I actually do use digest as I

Re: [Rd] Request: tools::md5sum should accept connections and finally in-memory objects

2020-05-01 Thread John Mount
Perhaps use the digest package? Isn't "R the R packages?" > On May 1, 2020, at 2:00 PM, Dénes Tóth wrote: > > > AFAIK there is no hashing utility in base R which can create hash digests of > arbitrary R objects. However, as also described by Henrik Bengtsson in [1], > we have tools::md5sum()

[Rd] Request: tools::md5sum should accept connections and finally in-memory objects

2020-05-01 Thread Dénes Tóth
AFAIK there is no hashing utility in base R which can create hash digests of arbitrary R objects. However, as also described by Henrik Bengtsson in [1], we have tools::md5sum() which calculates MD5 hashes of files. Calculating hashes of in-memory objects is a very common task in several area