https://github.com/hrbrmstr/kbmemoise
🔒🐘 Keybase Filesystem Backing Store for 'memoise' Caching [WIP!]
https://github.com/hrbrmstr/kbmemoise
keybase memoise r rstats
Last synced: 2 days ago
JSON representation
🔒🐘 Keybase Filesystem Backing Store for 'memoise' Caching [WIP!]
- Host: GitHub
- URL: https://github.com/hrbrmstr/kbmemoise
- Owner: hrbrmstr
- License: other
- Created: 2020-05-22T11:44:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T11:02:15.000Z (almost 5 years ago)
- Last Synced: 2025-03-27T02:43:27.029Z (20 days ago)
- Topics: keybase, memoise, r, rstats
- Language: R
- Homepage: https://cinc.rud.is/web/packages/kbmemoise/
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - hrbrmstr/kbmemoise - 🔒🐘 Keybase Filesystem Backing Store for 'memoise' Caching [WIP!] (R)
README
---
output: rmarkdown::github_document
editor_options:
chunk_output_type: console
---
```{r pkg-knitr-opts, include=FALSE}
hrbrpkghelpr::global_opts()
``````{r badges, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::stinking_badges()
``````{r description, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::yank_title_and_description()
```## What's Inside The Tin
The following functions are implemented:
```{r ingredients, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::describe_ingredients()
```## Installation
```{r install-ex, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::install_block()
```## Usage
```{r lib-ex}
library(kbmemoise)# current version
packageVersion("kbmemoise")```
```{r ex-01, eval=FALSE}
kbc <- cache_kb_self(".cache")kbc$location()
## [1] "/Volumes/Keybase/private/hrbrmstr/.cache"mrunif <- memoise::memoise(runif, cache = kbc)
mrunif(10) # First run, saves cache
## [1] 0.5687944 0.5739892 0.4309080 0.1959454 0.7240059 0.4751237 0.4049415 0.6617540 0.7025730 0.9428181mrunif(10) # Loads cache, results should be identical
## [1] 0.5687944 0.5739892 0.4309080 0.1959454 0.7240059 0.4751237 0.4049415 0.6617540 0.7025730 0.9428181kbc$keys()
## [1] "abb4b2ca91214fd892622aa50f4f5dc98d1453ae577cd916e60e02ebda8bbe7d75ff93d1fdd81967edced64de89833361e7f150cfae4898acb70b1aac932e791"kbc$size()
## [1] 0kbc$reset()
kbc$size()
## [1] 0
```## kbmemoise Metrics
```{r cloc, echo=FALSE}
cloc::cloc_pkg_md()
```## Code of Conduct
Please note that this project is released with a Contributor Code of Conduct.
By participating in this project you agree to abide by its terms.