{"id":15555505,"url":"https://github.com/sckott/astr","last_synced_at":"2026-01-28T13:01:51.560Z","repository":{"id":140973302,"uuid":"261885121","full_name":"sckott/astr","owner":"sckott","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-10T04:54:55.000Z","size":1067,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-11T11:32:41.721Z","etag":null,"topics":["ast","package","r","rstats"],"latest_commit_sha":null,"homepage":"https://sckott.github.io/astr/","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":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2020-05-06T21:43:53.000Z","updated_at":"2024-11-10T04:53:21.000Z","dependencies_parsed_at":"2025-04-11T17:11:21.644Z","dependency_job_id":"40991afa-6783-40b8-978b-505a7f6740a7","html_url":"https://github.com/sckott/astr","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"e3ed8fe31f7f8ccf28fa8e4d2e6781c80814301d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sckott/astr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fastr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fastr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fastr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fastr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sckott","download_url":"https://codeload.github.com/sckott/astr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fastr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T12:37:07.070Z","status":"ssl_error","status_checked_at":"2026-01-28T12:37:06.657Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["ast","package","r","rstats"],"created_at":"2024-10-02T15:09:33.444Z","updated_at":"2026-01-28T13:01:51.548Z","avatar_url":"https://github.com/sckott.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"astr\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[![R-check](https://github.com/sckott/astr/workflows/R-check/badge.svg)](https://github.com/sckott/astr/actions/)\n[![codecov.io](https://codecov.io/github/sckott/astr/coverage.svg?branch=mastr)](https://codecov.io/github/sckott/astr?branch=mastr)\n\nDecompose and Recompose Functions\n\n## Install\n\n```{r eval=FALSE}\nremotes::install_github(\"sckott/astr\")\n```\n\n```{r}\nlibrary(\"astr\")\n```\n\n## decompose\n\na simple function\n\n```{r}\nfoo \u003c- function(x) {\n  x + 1\n}\nfoo(5)\n```\n\ndecompose the function\n\n```{r}\ndf \u003c- ast_decompose(foo)\ndf\nclass(df)\n```\n\n## modify\n\nmodify an aspect of the function\n\n```{r}\nout \u003c- ast_modify(df, from = \"+\", to = \"-\")\nout\n```\n\n## recompose\n\n```{r}\nast_recompose(out)\nex \u003c- ast_recompose(out, as_expr = TRUE)\neval(ex)(5)\n```\n\n## Meta\n\n* Please [report any issues or bugs](https://github.com/sckott/astr/issues).\n* License: MIT\n* Get citation information for `astr` in R doing `citation(package = 'astr')`\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/astr/blob/mastr/CODE_OF_CONDUCT.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fastr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsckott%2Fastr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fastr/lists"}