{"id":14069178,"url":"https://github.com/r-lib/ellipsis","last_synced_at":"2026-04-07T10:01:01.146Z","repository":{"id":52435196,"uuid":"140028382","full_name":"r-lib/ellipsis","owner":"r-lib","description":"Tools for Working with ...","archived":false,"fork":false,"pushed_at":"2026-04-03T07:03:34.000Z","size":906,"stargazers_count":140,"open_issues_count":7,"forks_count":14,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-04-03T12:58:30.491Z","etag":null,"topics":["dot-dot-dot","ellipsis","r"],"latest_commit_sha":null,"homepage":"https://ellipsis.r-lib.org","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/r-lib.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}},"created_at":"2018-07-06T20:49:16.000Z","updated_at":"2026-04-03T04:59:57.000Z","dependencies_parsed_at":"2022-08-25T22:10:43.810Z","dependency_job_id":null,"html_url":"https://github.com/r-lib/ellipsis","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/r-lib/ellipsis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fellipsis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fellipsis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fellipsis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fellipsis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lib","download_url":"https://codeload.github.com/r-lib/ellipsis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fellipsis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31508282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dot-dot-dot","ellipsis","r"],"created_at":"2024-08-13T07:06:41.465Z","updated_at":"2026-04-07T10:01:01.080Z","avatar_url":"https://github.com/r-lib.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n# ellipsis\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: superseded](https://lifecycle.r-lib.org/articles/figures/lifecycle-superseded.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n[![CRAN status](https://www.r-pkg.org/badges/version/ellipsis)](https://cran.r-project.org/package=ellipsis)\n[![R-CMD-check](https://github.com/r-lib/ellipsis/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-lib/ellipsis/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/r-lib/ellipsis/graph/badge.svg)](https://app.codecov.io/gh/r-lib/ellipsis)\n\u003c!-- badges: end --\u003e\n\nSuperseded by rlang. All the functionality in ellipsis is now provided by rlang.\n\n---\n\nAdding `...` to a function is a powerful technique because it allows you to accept any number of additional arguments. Unfortunately it comes with a big downside: any misspelled or extraneous arguments will be silently ignored. This package provides tools for making `...` safer:\n\n* `check_dots_evaluated()` errors if any components of `...` are not evaluated.\n  This allows an S3 generic to state that it expects every input to be\n  evaluated.\n\n* `check_dots_unnamed()` errors if any components of `...` are named. This\n  allows you to collect arbitrary unnamed arguments, warning if the user\n  misspells a named argument.\n\n* `check_dots_empty()` errors if `...` is used. This allows you to use `...` to\n  force the user to supply full argument names, while still warning if an\n  argument name is misspelled.\n\nThanks to [Jenny Bryan](https://github.com/jennybc) for the idea, and [Lionel Henry](https://github.com/lionel-) for the heart of the implementation.\n\n## Installation\n\nInstall the released version from CRAN:\n\n```{r, eval = FALSE}\ninstall.packages(\"ellipsis\")\n```\n\nOr the development version from GitHub:\n\n```{r, eval = FALSE}\ndevtools::install_github(\"r-lib/ellipsis\")\n```\n\n## Example\n\n`mean()` is a little dangerous because you might expect it to work like `sum()`:\n\n```{r}\nsum(1, 2, 3, 4)\nmean(1, 2, 3, 4)\n```\n\nThis silently returns the incorrect result because `mean()` has arguments `x` and `...`. The `...` silently swallows up the additional arguments. We can use `ellipsis::check_dots_used()` to check that every input to `...` is actually used:\n\n```{r, error = TRUE}\nsafe_mean \u003c- function(x, ..., trim = 0, na.rm = FALSE) {\n  ellipsis::check_dots_used()\n  mean(x, ..., trim = trim, na.rm = na.rm)\n}\n\nsafe_mean(1, 2, 3, 4)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fellipsis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lib%2Fellipsis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fellipsis/lists"}