{"id":16411731,"url":"https://github.com/ijlyttle/warrenr","last_synced_at":"2026-06-17T17:33:55.231Z","repository":{"id":150080286,"uuid":"100600737","full_name":"ijlyttle/warrenr","owner":"ijlyttle","description":"A persistently verb for purrr","archived":false,"fork":false,"pushed_at":"2018-02-26T01:55:31.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-31T16:48:12.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ijlyttle.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","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":"2017-08-17T12:24:51.000Z","updated_at":"2020-11-08T13:57:59.000Z","dependencies_parsed_at":"2023-06-05T02:15:45.252Z","dependency_job_id":null,"html_url":"https://github.com/ijlyttle/warrenr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ijlyttle/warrenr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fwarrenr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fwarrenr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fwarrenr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fwarrenr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ijlyttle","download_url":"https://codeload.github.com/ijlyttle/warrenr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijlyttle%2Fwarrenr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34459608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T06:46:23.197Z","updated_at":"2026-06-17T17:33:55.225Z","avatar_url":"https://github.com/ijlyttle.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# warrenr\n\nThe goal of warrenr is to take `persistently()` for a spin. This is based on \n@richierocks's [PR to __purrr__](https://github.com/tidyverse/purrr/pull/333), where he proposes `persistently()`. The goal is that this capability be merged into purrr.\n\n## Installation\n\nYou can install warrenr from github with:\n\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"ijlyttle/warrenr\")\n```\n\n## Example\n\nLet's say you have an API call that does not work 100% of the time, due to vagaries of the network, etc. \n\n```R\nresult \u003c- fragile_api_call(arg1 = \"foo\", ...)\n```\n\nIf the call fails, you would like that the call be repeated. Hence the adverb `persistently()`.\n\n```R\npersistent_api_call \u003c- warrenr::persistently(fragile_api_call)\n```\n\nThis returns a new function that will run persistently:\n\n```R\nresult \u003c- persistent_api_call(arg1 = \"foo\", ...)\n```\n\nThere are arguments for `max_attempts` (default: 5) and `wait_seconds` (default: 0.1 s). Should the function throw an error, each subsequent call will wait twice the amount of time as it previously waited (plus some random fuzz).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fijlyttle%2Fwarrenr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fijlyttle%2Fwarrenr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fijlyttle%2Fwarrenr/lists"}