Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrc-ide/context
:recycle: Reproduce an environment
https://github.com/mrc-ide/context
cluster infrastructure
Last synced: about 2 months ago
JSON representation
:recycle: Reproduce an environment
- Host: GitHub
- URL: https://github.com/mrc-ide/context
- Owner: mrc-ide
- License: other
- Created: 2015-11-02T09:06:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-25T15:02:52.000Z (over 1 year ago)
- Last Synced: 2023-08-01T05:13:34.999Z (over 1 year ago)
- Topics: cluster, infrastructure
- Language: R
- Homepage: http://mrc-ide.github.io/context
- Size: 521 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# context
[![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)
[![R build status](https://github.com/mrc-ide/context/workflows/R-CMD-check/badge.svg)](https://github.com/mrc-ide/context/actions)> Contexts for evaluating R expressions
This package organises collecting (and recreating) the context of an R expression to replay later.
## Concepts
### Task
A task is an **expression** to be evaluated in a **context**. When evaluated it will create a **result**.
### Contexts
These 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.
These will be saved at `/contexts/` where `` is an identifier that we'll generate to be unique to a context.
A context includes:
* a set of packages to install and load
* a set of R files to `source`, or a global environment to create
* a local environment to createIn addition, the expression may have local variables.
## Installation
```r
# install.packages("drat")
drat:::add("mrc-ide")
install.packages("context")
```