You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forked from [hadley/memoise](https://github.com/hadley/memoise)
4
+
5
+
# Installation
6
+
7
+
```
8
+
devtools::install_github("danielecook/xmemoise")
9
+
```
10
+
11
+
# Memoization
3
12
4
13
If a function is called multiple times with the same input, you can
5
14
often speed things up by keeping a cache of known answers that it can
6
15
retrieve. This is called memoisation <http://en.wikipedia.org/wiki/Memoization>.
7
-
The `memoise` package provides a simple syntax
16
+
The `xmemoise` package is built upon [hadley/memoise](https://github.com/hadley/memoise), which provides a simple syntax
8
17
9
18
mf <- memoise(f)
10
19
@@ -18,4 +27,27 @@ cache with
18
27
is.memoised(mf) # TRUE
19
28
is.memoised(f) # FALSE
20
29
21
-
.
30
+
31
+
`xmemoise` extends upon `memoise` by adding in additional types of caches. Items can be cached using the original cache implemented in `memoise` in addition to other options:
32
+
33
+
*[x] Google Datastore; Switch to using googleAuthR
34
+
*[ ] Dropbox
35
+
*[ ] Google Storage
36
+
*[ ] AWS
37
+
38
+
39
+
# Memoization with google datastore
40
+
41
+
Google Datastore
42
+
43
+
There are a few trade-offs to using google datastore for memoization.
0 commit comments