Winston Chang

Results 285 comments of Winston Chang

Now that I think about it a bit more, I'm unsure whether the direct upload counts as a build. Probably a good idea to ask them at https://community.cloudflare.com/

What would the memoized function have for a parent? Currently, it creates an environment which is a child of the calling environment: ```R library(memoise) f label name #> 1 ""...

I'm not convinced that's a good idea. Although I can see that it could be useful in some cases, I can also think of cases where re-throwing a warning would...

If the issue is a race between `$has_key()` and `$get()`: that's something that we're planning on addressing, with some general changes to the caching system. Regarding the possibility of multiple...

I don't think there's a general solution to this problem. memoise takes the (evaluated) input _values_, combines them, and hashes them; the resulting value is used as a key. This...

> I think I understand what you've explained here but I'm a little confused on the fourth chunk because you use > `gm but the message is `Running g()`. How...

Here's a wrapper function for `memoise()` called `memoise2()`, which allows you to designate specific parameters for which the _unevaluated expression_ will be used for caching, instead of the _value_. ```R...

That seems like a reasonable implementation. I don't know which package it should live in, though. A few other notes: * I think the `tryCatch()` should catch `KeyError` rather than...

I think the way to make this work is to assign it in the constructor: ```R ther6 [1] "foo" ``` Note that `fun` would be memoized once for each instance...

@teucer here you go: ```R cm