{"id":14067283,"url":"https://github.com/stevecondylios/collidr","last_synced_at":"2025-05-01T03:31:07.740Z","repository":{"id":100933436,"uuid":"181913953","full_name":"stevecondylios/collidr","owner":"stevecondylios","description":"Check for namespace collisions across a half a million functions on CRAN 💥","archived":false,"fork":false,"pushed_at":"2020-12-16T08:41:28.000Z","size":23162,"stargazers_count":5,"open_issues_count":4,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-13T07:13:22.417Z","etag":null,"topics":["cran","cran-r","r-programming"],"latest_commit_sha":null,"homepage":"https://stevecondylios.github.io/collidr/","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/stevecondylios.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":"2019-04-17T14:57:14.000Z","updated_at":"2023-08-22T03:35:00.000Z","dependencies_parsed_at":"2023-06-10T20:30:15.064Z","dependency_job_id":null,"html_url":"https://github.com/stevecondylios/collidr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecondylios%2Fcollidr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecondylios%2Fcollidr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecondylios%2Fcollidr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevecondylios%2Fcollidr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevecondylios","download_url":"https://codeload.github.com/stevecondylios/collidr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224233075,"owners_count":17277717,"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":["cran","cran-r","r-programming"],"created_at":"2024-08-13T07:05:31.199Z","updated_at":"2024-11-12T07:22:15.199Z","avatar_url":"https://github.com/stevecondylios.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"\n---\noutput: github_document\n---\n  \n```{r setup, include=FALSE}\nknitr::opts_chunk$set(echo = TRUE)\n```\n\n# collidr \u003ca href='https://github.com/stevecondylios/collidr'\u003e\u003cimg src='man/figures/collidr.png' align=\"right\" height=\"139\" /\u003e\u003c/a\u003e\n\n[![CRAN status](https://www.r-pkg.org/badges/version/collidr)](https://cran.r-project.org/package=collidr)\n\n`collidr` checks for namespace collisions against half a million packages and functions on CRAN. \n\n### Usage\n\nSee if a function/package called \"group_by\", like so\n\n```R\n# install.packages(\"collidr\")\nlibrary(collidr)\n\nCRAN_collisions(\"group_by\", CRANdf = getCRAN())\n```\n\n* substitute \"group_by\" for any function name you wish to check\n\n\n### Advantages\n\nDistinctly named functions\n\n* reduce code ambiguity, and,\n* reduce unintentional function calls\n    * e.g. you may code `select()` meaning `dplyr::select()`, \n    but instead (uninentionally) invoke `MASS::select()` due to the `MASS` library being loaded *after* `dplyr`\n\n\n### Caveats\n\n`collidr::CRANdf` is the data.frame used to store the names of packages and functions found on CRAN.\nYou can see when it was last updated with `attributes(collidr::CRANdf)$last_updated`. Retrieve a more up\nto date version with `getCRAN()`.\n\nDue to how this data.frame is obtained, the results are not perfect. The absense of a function name\nfrom the data.frame does not guarantee that the function is not on CRAN, and, conversely, a function\nname found in the data.frame doesn't guarantee that it is a function in a package on CRAN.\n\nThese imperfections are due to imperfections in the regular expressions required to parse the ~16,000 \nlibraries found on CRAN.\n\n### How collidr Works\n\n`collidr` runs on Amazon Web Services (AWS) infrastructure and visits CRAN every 3 hours, parses \npackage information, and stores and updated data.frame in S3. The data.frame is accessible for \n[download](https://collidr-api.s3-ap-southeast-2.amazonaws.com/pfd.RDS), or via `getCRAN()`\n\n![](man/figures/flowchart.png)\n\n\n\n\n## Issues and Feature Requests\n\nWhen reporting an issue, please include:\n\n* Example code that reproduces the **observed** behavior.\n* An explanation of what the **expected** behavior is.\n\n\nFor feature requests, raise an issue with the following:\n\n* The desired functionality\n* Example inputs and desired output\n\n\n\n## Pull Requests\n\nPull requests are welcomed. \n\nAny new functions should follow the conventions established by the the package's existing functions. Please ensure\n\n* Functions are sensibly named\n* The __intent__ of the contribution is clear\n* At least one example is provided in the documentation\n\n\n## Build Info\n\nWhenever `CRANdf` is updated, use `save(CRANdf, file = \"data/CRANdf.RData\", version = 2, compress='xz')` to save it\n\nAnd build/check with:\n\n```\nR CMD build collidr \u0026\u0026 R CMD check collidr_0.1.3.tar.gz --as-cran\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevecondylios%2Fcollidr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevecondylios%2Fcollidr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevecondylios%2Fcollidr/lists"}