{"id":18400007,"url":"https://github.com/mrc-ide/context","last_synced_at":"2026-03-01T18:02:59.783Z","repository":{"id":52901902,"uuid":"45383520","full_name":"mrc-ide/context","owner":"mrc-ide","description":":recycle: Reproduce an environment","archived":false,"fork":false,"pushed_at":"2023-05-25T15:02:52.000Z","size":534,"stargazers_count":5,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T05:36:12.302Z","etag":null,"topics":["cluster","infrastructure"],"latest_commit_sha":null,"homepage":"http://mrc-ide.github.io/context","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/mrc-ide.png","metadata":{"files":{"readme":"README.md","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":"2015-11-02T09:06:35.000Z","updated_at":"2024-03-28T19:08:52.000Z","dependencies_parsed_at":"2025-04-07T05:46:02.042Z","dependency_job_id":null,"html_url":"https://github.com/mrc-ide/context","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrc-ide/context","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrc-ide%2Fcontext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrc-ide%2Fcontext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrc-ide%2Fcontext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrc-ide%2Fcontext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrc-ide","download_url":"https://codeload.github.com/mrc-ide/context/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrc-ide%2Fcontext/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29977967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cluster","infrastructure"],"created_at":"2024-11-06T02:29:17.712Z","updated_at":"2026-03-01T18:02:59.763Z","avatar_url":"https://github.com/mrc-ide.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# context\n\n\u003c!-- badges: start --\u003e\n[![Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)\n[![R build status](https://github.com/mrc-ide/context/workflows/R-CMD-check/badge.svg)](https://github.com/mrc-ide/context/actions)\n\u003c!-- badges: end --\u003e\n\n\u003e Contexts for evaluating R expressions\n\nThis package organises collecting (and recreating) the context of an R expression to replay later.\n\n## Concepts\n\n### Task\n\nA task is an **expression** to be evaluated in a **context**.  When evaluated it will create a **result**.\n\n### Contexts\n\nThese are the ingredients to create an environment (in rrqueue they're called environments but I think that context is a little ambiguous).  A context does imply an environment, but several environments might go into a context.\n\nThese will be saved at `\u003cpath\u003e/contexts/\u003cid\u003e` where `\u003cid\u003e` is an identifier that we'll generate to be unique to a context.\n\nA context includes:\n\n* a set of packages to install and load\n* a set of R files to `source`, or a global environment to create\n* a local environment to create\n\nIn addition, the expression may have local variables.\n\n## Installation\n\n```r\n# install.packages(\"drat\")\ndrat:::add(\"mrc-ide\")\ninstall.packages(\"context\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrc-ide%2Fcontext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrc-ide%2Fcontext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrc-ide%2Fcontext/lists"}