{"id":14065986,"url":"https://github.com/sckott/httping","last_synced_at":"2026-02-20T02:01:35.011Z","repository":{"id":24087990,"uuid":"27475047","full_name":"sckott/httping","owner":"sckott","description":"Ping urls to time requests","archived":false,"fork":false,"pushed_at":"2025-12-18T23:16:35.000Z","size":71,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-11T11:32:42.919Z","etag":null,"topics":["http","http-client","http-requests","httping","r","rstats"],"latest_commit_sha":null,"homepage":"","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/sckott.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-03T07:30:22.000Z","updated_at":"2025-12-17T19:35:58.000Z","dependencies_parsed_at":"2023-01-14T00:23:12.484Z","dependency_job_id":null,"html_url":"https://github.com/sckott/httping","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sckott/httping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fhttping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fhttping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fhttping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fhttping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sckott","download_url":"https://codeload.github.com/sckott/httping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fhttping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29638772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"online","status_checked_at":"2026-02-20T02:00:07.535Z","response_time":59,"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":["http","http-client","http-requests","httping","r","rstats"],"created_at":"2024-08-13T07:04:53.188Z","updated_at":"2026-02-20T02:01:35.006Z","avatar_url":"https://github.com/sckott.png","language":"R","readme":"httping\n=======\n\n```{r echo=FALSE}\nknitr::opts_chunk$set(\n  warning = FALSE,\n  message = FALSE,\n  collapse = TRUE,\n  comment = \"#\u003e\"\n)\n```\n\n[![cran checks](https://badges.cranchecks.info/worst/httping.svg)](https://cran.r-project.org/package=httping)\n[![R-check](https://github.com/sckott/httping/actions/workflows/R-check.yaml/badge.svg)](https://github.com/sckott/httping/actions/workflows/R-check.yaml)\n[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/httping?color=C9A115)](https://github.com/r-hub/cranlogs.app)\n[![cran version](https://www.r-pkg.org/badges/version/httping)](https://cran.r-project.org/package=httping)\n\n`httping` is a tiny R package to Ping urls to time requests. It's a port of the Ruby gem [httping](https://github.com/jpignata/httping).\n\n## Install\n\nCRAN stable version\n\n```{r eval=FALSE}\ninstall.packages(\"httping\")\n```\n\nDevelopment version from Github\n\n```{r eval=FALSE}\ninstall.packages(\"pak\")\npak::pak(\"sckott/httping\")\n```\n\n```{r}\nlibrary(\"httping\")\nlibrary(\"httr\")\n```\n\n## Pass any httr request to time\n\nA `GET` request\n\n```{r}\nGET(\"https://google.com\") %\u003e% time(count = 3)\n```\n\nA `POST` request\n\n```{r}\nPOST(\"https://hb.cran.dev/post\", body = \"A simple text string\") %\u003e%\n  time(count = 3)\n```\n\nThe return object is a list with slots for all the `httr` response objects, the times for each request, and the average times. The number of requests, and\nthe delay between requests are included as attributes.\n\n```{r}\nres \u003c- GET(\"http://google.com\") %\u003e% time(count = 3)\nattributes(res)\n```\n\nOr print a summary of a response, gives more detail\n\n```{r}\nres %\u003e% summary()\n```\n\nMessages are printed using `cat`, so you can suppress those using `verbose=FALSE`, like\n\n```{r}\nGET(\"https://google.com\") %\u003e% time(count = 3, verbose = FALSE)\n```\n\n\n## Ping an endpoint\n\nThis function is a bit different, accepts a url as first parameter, but can accept any args passed on to `httr` verb functions, like `GET`, `POST`,  etc.\n\n```{r}\n\"https://google.com\" %\u003e% ping()\n```\n\nOr pass in additional arguments to modify request\n\n```{r}\n\"https://google.com\" %\u003e% ping(config = verbose())\n```\n\n## Meta\n\n* License: MIT\n* Please note that this project is released with a [Contributor Code of Conduct][coc]. By participating in this project you agree to abide by its terms.\n\n[coc]: https://github.com/sckott/httping/blob/main/.github/CODE_OF_CONDUCT.md\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fhttping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsckott%2Fhttping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fhttping/lists"}