https://github.com/richfitz/datastorr.example
https://github.com/richfitz/datastorr.example
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/richfitz/datastorr.example
- Owner: richfitz
- Created: 2015-12-01T16:45:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T16:27:19.000Z (over 8 years ago)
- Last Synced: 2025-01-20T22:53:53.309Z (over 1 year ago)
- Language: R
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
# datastorr.example
> Example use of datastorr
Example use of datastorr.
## Installation
```r
devtools::install_github("richfitz/datastorr")
devtools::install_github("richfitz/datastorr.example")
```
## Usage
```{r, echo=FALSE, results="hide"}
datastorr.example::mydata_del(NULL)
```
To start with there is no data present:
```{r}
datastorr.example::mydata_versions()
```
Though there are versions on github:
```{r}
datastorr.example::mydata_versions(local=FALSE)
```
Retrieve the data:
```{r}
system.time(d <- mydata())
```
The progress bar looks a bit messed up but should work well interactively. The relevant time is the elapsed time, rather than user or system time.
The data in all its glory:
```
head(d)
```
Subsequent calls are very fast:
```{r}
system.time(d <- mydata())
```
The local versions:
```{r}
datastorr.example::mydata_versions()
```