{"id":16599967,"url":"https://github.com/dirmeier/jar","last_synced_at":"2025-08-01T10:31:33.889Z","repository":{"id":133195450,"uuid":"409256514","full_name":"dirmeier/jar","owner":"dirmeier","description":"Reverse-mode autodiff for R","archived":false,"fork":false,"pushed_at":"2021-09-27T19:54:47.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T10:59:14.872Z","etag":null,"topics":["autodiff","autograd","r"],"latest_commit_sha":null,"homepage":"","language":"R","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/dirmeier.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":"2021-09-22T15:24:15.000Z","updated_at":"2023-03-25T10:10:07.000Z","dependencies_parsed_at":"2023-03-22T23:31:26.897Z","dependency_job_id":null,"html_url":"https://github.com/dirmeier/jar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dirmeier/jar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirmeier%2Fjar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirmeier%2Fjar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirmeier%2Fjar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirmeier%2Fjar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dirmeier","download_url":"https://codeload.github.com/dirmeier/jar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirmeier%2Fjar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268207379,"owners_count":24213011,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["autodiff","autograd","r"],"created_at":"2024-10-12T00:13:09.863Z","updated_at":"2025-08-01T10:31:33.801Z","avatar_url":"https://github.com/dirmeier.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n# jar\n\n\u003c!-- badges: start --\u003e\n[![Project Status](http://www.repostatus.org/badges/latest/concept.svg)](http://www.repostatus.org/#concept)\n[![R build status](https://github.com/dirmeier/jar/workflows/R-CMD-check/badge.svg)](https://github.com/dirmeier/jar/actions)\n[![Codecov test coverage](https://codecov.io/gh/dirmeier/jar/branch/master/graph/badge.svg)](https://codecov.io/gh/dirmeier/jar?branch=master)\n\u003c!-- badges: end --\u003e\n\n\u003e Reverse-mode autodiff for R\n\n## Introduction\n\nThis package implements a proof-of-concept of reverse-mode autodiff for R functions. The package is motivated and influenced by [`jax`](https://github.com/google/jax) without being very mature or computationally performant.\n\n```{r}\nlibrary(jar)\n\nlogpdf \u003c- function(y, mu, sigma) {\n  -0.5 * ((y - mu) / sigma) ^ 2 - log(sigma) - 0.5 * log(2*pi)\n}\n\ngrad(logpdf, 1L)(1.0, 0.0, 1.0)\ngrad(logpdf, 2L)(1.0, 0.0, 1.0)\ngrad(logpdf, 3L)(1.0, 0.0, 1.0)\n```\n\n## Installation\n\nGet the package using:\n\n```{r, eval=FALSE}\ndevtools::install_github(\"dirmeier/jar\")\n```\n\n## Author\n\n* Simon Dirmeier \u003ca href=\"mailto:simon.dirmeier @ web.de\"\u003esimon.dirmeier @ web.de\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirmeier%2Fjar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirmeier%2Fjar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirmeier%2Fjar/lists"}