{"id":14068982,"url":"https://github.com/yonicd/ripe","last_synced_at":"2025-06-17T19:05:40.264Z","repository":{"id":91010893,"uuid":"145045748","full_name":"yonicd/ripe","owner":"yonicd","description":"rerun {magrittr} pipelines","archived":false,"fork":false,"pushed_at":"2019-12-06T10:51:57.000Z","size":732,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T02:51:19.240Z","etag":null,"topics":["magrittr","magrittr-pipes","r"],"latest_commit_sha":null,"homepage":"https://yonicd.github.io/ripe/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yonicd.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-16T22:39:08.000Z","updated_at":"2024-08-06T16:18:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"a79e8efe-813e-47e4-b018-c519c98cfe0c","html_url":"https://github.com/yonicd/ripe","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yonicd/ripe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonicd%2Fripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonicd%2Fripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonicd%2Fripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonicd%2Fripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yonicd","download_url":"https://codeload.github.com/yonicd/ripe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonicd%2Fripe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260424571,"owners_count":23007035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["magrittr","magrittr-pipes","r"],"created_at":"2024-08-13T07:06:31.339Z","updated_at":"2025-06-17T19:05:35.253Z","avatar_url":"https://github.com/yonicd.png","language":"R","readme":"---\noutput: github_document\nalways_allow_html: yes\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/ripe)](https://CRAN.R-project.org/package=ripe)\n[![R-win build status](https://github.com/yonicd/ripe/workflows/R-win/badge.svg)](https://github.com/yonicd/ripe)\n[![R-mac build status](https://github.com/yonicd/ripe/workflows/R-mac/badge.svg)](https://github.com/yonicd/ripe)\n[![R-linux build status](https://github.com/yonicd/ripe/workflows/R-linux/badge.svg)](https://github.com/yonicd/ripe)\n[![Codecov test coverage](https://codecov.io/gh/yonicd/ripe/branch/master/graph/badge.svg)](https://codecov.io/gh/yonicd/ripe?branch=master)\n[![Covrpage Summary](https://img.shields.io/badge/covrpage-Last_Build_2019_11_20-brightgreen.svg)](http://tinyurl.com/vzcsnsa)\n\u003c!-- badges: end --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n\nlibrary(ripe)\n```\n\n# ripe \u003cimg src=\"https://github.com/yonicd/ripe/raw/master/input/logo.png\" align=\"right\"  class=\"logo\"/\u003e\n\nThe goal of ripe is to create a more flexible way to rerun {magrittr} pipelines.\n\n## Installation\n\n```{r,eval=FALSE}\nremotes::install_github('yonicd/ripe')\n```\n\n\n## Goal \n\nWe want to rerun the following pipeline that contains stochastic elements in a shorter and more flexible way\n\n```{r}\n\nf \u003c- function(){\n  \n  stats::runif(20)%\u003e%\n    sample(10)%\u003e%\n    utils::head(5)\n}\n\nset.seed(123)\n\nreplicate(n=3,f(),simplify = FALSE)\n\n```\n\n## Can't I just add replicate to the end of it?\n\n```{r}\n\nset.seed(123)\n\nstats::runif(20)%\u003e%\n   sample(10)%\u003e%\n   utils::head(5)%\u003e%\n   replicate(n = 3,simplify = FALSE)\n```\n\nThat didn't do what we wanted...\n\n## This is better!\n\n```{r}\n\nset.seed(123)\n\nstats::runif(20)%\u003e%\n  sample(10)%\u003e%\n  utils::head(5)%\u003e%\n  ripe(replicate,n=3,simplify=FALSE)\n```\n\n## Manipulate Pipeline Replicates\n\nWe can now manipulate the pipeline or move `ripe` around into different subsets of the function sequence, creating iterative replication workflows.\n\n```{r}\n\nset.seed(123)\n\nstats::runif(20)%\u003e%\n  #sample(10)%\u003e%\n  utils::head(5)%\u003e%\n  ripe(replicate,n=3,simplify=FALSE)\n  \n```\n\n## Convert Pipelines to Lazy Functions\n\nYou can also quickly convert the pipelines to a lazyeval function\n\n```{r}\nf \u003c- stats::runif(20)%\u003e%\n  sample(10)%\u003e%\n  utils::head(5)%\u003e%\n  lazy()\n\nset.seed(123)\n\nf()\n\nf()\n```\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonicd%2Fripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyonicd%2Fripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonicd%2Fripe/lists"}