{"id":22731863,"url":"https://github.com/dgkf/rfmt","last_synced_at":"2025-07-13T14:32:19.590Z","repository":{"id":256093814,"uuid":"854307404","full_name":"dgkf/rfmt","owner":"dgkf","description":"R parsing, formatting and linting","archived":false,"fork":false,"pushed_at":"2024-09-08T23:24:04.000Z","size":18,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T18:42:32.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/dgkf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-09-08T23:16:03.000Z","updated_at":"2025-01-30T22:07:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c04a7ae-feb6-4ea2-a132-4dfd0ce5e12f","html_url":"https://github.com/dgkf/rfmt","commit_stats":null,"previous_names":["dgkf/rfmt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dgkf/rfmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgkf%2Frfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgkf%2Frfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgkf%2Frfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgkf%2Frfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgkf","download_url":"https://codeload.github.com/dgkf/rfmt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgkf%2Frfmt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265155725,"owners_count":23719570,"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":[],"created_at":"2024-12-10T19:33:48.373Z","updated_at":"2025-07-13T14:32:19.538Z","avatar_url":"https://github.com/dgkf.png","language":"Rust","readme":"# `rfmt`\n\n_R parsing, linting and formatting_\n\n## Try it out\n\nFor now, we just handle the parsing of code into tokens. These tokens are \nonly what is emitted by the parser and might not map conveniently into R-like\n_S-Expressions_.\n\nFuture work may map these into a more R-like representation of the syntax tree\nto make it more paletable to work with for R folks.\n\n```sh\ncargo run --example parsing\n```\n\nFor now, you'll see a deeply nested syntax tree of parsing rules. It will \nlook something like this:\n\n```\nOk(\n    [\n        Pair {\n            rule: expr,\n            span: Span {\n                str: \"f \u003c- function(a, b = 2, c = { expression }) {\\n    if (a + b) {\\n        \\\"hello, world\\\"  # return something\\n    } else {\\n        \\\"fizzbuzz\\\"      # or return something else\\n    }\\n}\",\n                start: 122,\n                end: 299,\n            },\n            inner: [\n                Pair {\n                    rule: prefixed,\n                    span: Span {\n                        str: \"f \",\n                        start: 122,\n                        end: 124,\n                    }\n```\n\nAnd continues far longer than you probably care to scroll!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgkf%2Frfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgkf%2Frfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgkf%2Frfmt/lists"}