https://github.com/jefferis/testlazyneuronlist
Testing lazy data load strategies for 'neuronlists'
https://github.com/jefferis/testlazyneuronlist
Last synced: 3 months ago
JSON representation
Testing lazy data load strategies for 'neuronlists'
- Host: GitHub
- URL: https://github.com/jefferis/testlazyneuronlist
- Owner: jefferis
- Created: 2018-05-29T15:50:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-03T14:37:18.000Z (almost 7 years ago)
- Last Synced: 2025-01-16T03:33:13.721Z (4 months ago)
- Language: R
- Size: 1.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/jefferis/testlazyneuronlist)
# testlazyneuronlist
The goal of testlazyneuronlist is to test strategies for including large
[neuronlist]() objects in R packages. See https://github.com/jefferislab/lhns/issues/2
for some discussion of the underlying issues/approaches.## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("jefferis/testlazyneuronlist")
```## Details
So far this approach works flawlessly for `neuronlistfh` objects (which naturally
separate data and metadata) but is not yet optimal for `neuronlist` objects.Specifically setting `LazyData: true` will make data objects available within
the package namespace (and acessible via e.g. `testlazyneuronlist::Cell07PNs`)
but it will also result in the duplication of data with (and corresponding disk space)
for the installed package, since the objects will be present in both* data/Rdata.rdb
* extdata/pns_separated.rdsTwo possible avenues to explore could be
1. To try and figure out if the lazy loaded object could remain a promise
2. To see if extdata could delete itself after the lazyload db has been
constructed