{"id":21976428,"url":"https://github.com/aviralg/contractr","last_synced_at":"2025-03-22T23:44:14.708Z","repository":{"id":73359979,"uuid":"94439310","full_name":"aviralg/contractr","owner":"aviralg","description":"Add contracts to R functions using annotations","archived":false,"fork":false,"pushed_at":"2017-09-21T23:48:13.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T03:29:00.068Z","etag":null,"topics":["annotations","contracts","r"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aviralg.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-06-15T12:54:10.000Z","updated_at":"2020-10-18T11:08:49.000Z","dependencies_parsed_at":"2023-03-24T06:48:30.108Z","dependency_job_id":null,"html_url":"https://github.com/aviralg/contractr","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/aviralg%2Fcontractr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aviralg%2Fcontractr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aviralg%2Fcontractr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aviralg%2Fcontractr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aviralg","download_url":"https://codeload.github.com/aviralg/contractr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036121,"owners_count":20550661,"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":["annotations","contracts","r"],"created_at":"2024-11-29T16:04:13.453Z","updated_at":"2025-03-22T23:44:14.700Z","avatar_url":"https://github.com/aviralg.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput:\n  github_document:\n    html_preview: false\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\noptions(tibble.print_min = 5, tibble.print_max = 5)\n```\n\n# contractr\n\n[![Travis Build Status](https://travis-ci.org/aviralg/contractr.svg?branch=master)](https://travis-ci.org/aviralg/contractr)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/contractr)](http://cran.r-project.org/package=contractr)\n\n## Overview\n\n`contractr` processes annotations on function arguments and body and inserts \ncorresponding contracts in the function body.\nSince `GNU R` does not support annotations (yet), this package relies on my own\nversion of R, `rant`, which extends R to support annotations on functions, \nfunction formals and function body.\n\n## Installation\n\nTo install this package you have to install `rant` and `annotatr` packages.\n\n```{bash, eval = FALSE}\ngit clone https://github.com/aviralg/rant\nmake -j -C rant\n```\n\n```{bash, eval = FALSE}\ngit clone https://github.com/aviralg/annotatr\nrant/bin/R CMD INSTALL annotatr\n```\n\n```{bash, eval = FALSE}\ngit clone https://github.com/aviralg/contractr\nrant/bin/R CMD INSTALL contractr\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faviralg%2Fcontractr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faviralg%2Fcontractr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faviralg%2Fcontractr/lists"}