repo

所属分类:collect
开发工具:R
文件大小:0KB
下载次数:0
上传日期:2021-05-16 14:54:12
上 传 者sh-1993
说明:  R的以数据为中心的数据流管理器,
(The Data-Centered Data Flow manager for R,)

文件列表:
.Rbuildignore (115, 2021-05-16)
.travis.yml (154, 2021-05-16)
DESCRIPTION (752, 2021-05-16)
NAMESPACE (289, 2021-05-16)
NEWS.md (7836, 2021-05-16)
R/ (0, 2021-05-16)
R/repo.R (4844, 2021-05-16)
R/repo_cpanel.R (6158, 2021-05-16)
R/repo_private.R (29390, 2021-05-16)
R/repo_public.R (60027, 2021-05-16)
Rmd/ (0, 2021-05-16)
cran-comments.md (476, 2021-05-16)
inst/ (0, 2021-05-16)
inst/CITATION (411, 2021-05-16)
inst/remote_sample.RDS (59, 2021-05-16)
man/ (0, 2021-05-16)
man/repo-package.Rd (1025, 2021-05-16)
man/repo_attach.Rd (1817, 2021-05-16)
man/repo_attr.Rd (621, 2021-05-16)
man/repo_build.Rd (1362, 2021-05-16)
man/repo_bulkedit.Rd (1310, 2021-05-16)
man/repo_check.Rd (909, 2021-05-16)
man/repo_chunk.Rd (344, 2021-05-16)
man/repo_copy.Rd (1187, 2021-05-16)
man/repo_cpanel.Rd (628, 2021-05-16)
man/repo_dependencies.Rd (2620, 2021-05-16)
man/repo_depends.Rd (353, 2021-05-16)
man/repo_entries.Rd (590, 2021-05-16)
man/repo_export.Rd (873, 2021-05-16)
man/repo_find.Rd (1040, 2021-05-16)
man/repo_get.Rd (844, 2021-05-16)
man/repo_handlers.Rd (1425, 2021-05-16)
man/repo_has.Rd (359, 2021-05-16)
man/repo_info.Rd (739, 2021-05-16)
man/repo_lazydo.Rd (1911, 2021-05-16)
... ...

[![](http://www.r-pkg.org/badges/version/repo)](https://cran.r-project.org/package=repo) Master: [![Travis-CI Build Status](https://travis-ci.org/franapoli/repo.svg?branch=master)](https://travis-ci.org/franapoli/repo) Dev: [![Travis-CI Build Status](https://travis-ci.org/franapoli/repo.svg?branch=dev)](https://travis-ci.org/franapoli/repo) ## Repo Repo is a data-centered data flow manager. It allows to store R data files in a central local repository, together with tags, annotations, provenance and dependence information. Any saved object can then be easily located and loaded through the repo interface. A [paper about Repo](http://rdcu.be/pklt) has been published in BMC Bioinformatics. Latest news are found in the NEWS.md file of the “Untested” branch. ## Minimal example Creating a dummy repository under the R temporary folder (skipping confirmation): ``` r library(repo) rp <- repo_open(tempdir(), force=T) #> Repo created. ``` Storing data. In this case, just item values and names are specified: ``` r God <- Inf rp$put(God) ## item name inferred from variable name rp$put(0, "user") ## item name specified ``` More data with specified dependencies: ``` r rp$put(pi, "The Pi costant", depends="God") rp$put(1:10, "r", depends="user") ``` Loading items from the repository on the fly using names: ``` r diam <- 2 * rp$get("r") circum <- 2 * rp$get("The Pi costant") * rp$get("r") area <- rp$get("The Pi costant") * rp$get("r") ^ 2 ``` Storing more data with verbose descriptions: ``` r rp$put(diam, "diameters", "These are the diameters", depends = "r") rp$put(circum, "circumferences", "These are the circumferences", depends = c("The Pi costant", "r")) rp$put(area, "areas", "These are the areas", depends = c("The Pi costant", "r")) ``` Showing repository contents: ``` r print(rp) #> ID Dims Size #> God 1 51 B #> user 1 49 B #> The Pi costant 1 55 B #> r 10 99 B #> diameters 10 75 B #> circumferences 10 103 B #> areas 10 103 B ``` ``` r rp$info() #> Root: /tmp/RtmppFMwnb #> Number of items: 7 #> Total size: 535 B ``` ``` r rp$info("areas") #> ID: areas #> Description: These are the areas #> Tags: #> Dimensions: 10 #> Timestamp: 2019-12-22 17:01:45 #> Size on disk: 103 B #> Provenance: #> Attached to: - #> Stored in: /tmp/RtmppFMwnb/a/areas #> MD5 checksum: 56ad410055fedb0cae012d813a130291 #> URL: - ``` Visualizing dependencies: ``` r rp$dependencies() ``` ![plot of chunk depgraph](inst/README-depgraph-1.png) Manual acces to stored data: ``` r fpath <- rp$attr("r", "path") readRDS(fpath) #> [1] 1 2 3 4 5 6 7 8 9 10 ``` ## Development branches - [Master](https://github.com/franapoli/repo/tree/master): stable major releases, usually in sync with the latest CRAN version. - [Dev](https://github.com/franapoli/repo/tree/dev): minor releases passing automatic checks. - [Untested](https://github.com/franapoli/repo/tree/untested): in progress versions and prototype code, not necessarily working. ## Manuals Besides inline help, two documents are available as introductory material: - [A paper published on BMC Bioinformatics](http://rdcu.be/pklt) - [An introductory vignette](https://rawgit.com/franapoli/repo/gh-pages/index.html). ## Download and Installation Repo is on CRAN and can be installed from within R as follows: ``` r install.packages("repo") ``` Latest stable release can be downloaded from Github at [https://github.com/franapoli/repo](https://www.github.com/franapoli/repo/). Repo can then be installed from the downloaded sources as follows: ``` r install.packages("path-to-downloaded-source", repos=NULL) ``` `devtools` users can install Repo directly from github as follows: ``` r install_github("franapoli/repo", ref="dev") ```

近期下载者

相关文件


收藏者