Skip to content

Commit

Permalink
use correct context
Browse files Browse the repository at this point in the history
  • Loading branch information
grlloyd committed Sep 22, 2023
1 parent f429a05 commit d97f93f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vignettes/Introduction_to_metabolomicsWorkbenchR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Valid contexts, input items and output items can be listed using the `names` fun

```{r}
# valid contexts
names(context) # context, input_item or output_item
names(metabolomicsWorkbenchR::context) # context, input_item or output_item
```

Valid inputs and outputs for a context can be displayed by accessing the list of context objects. Valid inputs for a particular output can also be displayed by accessing the list of output item objects. Use of `metabolmicsWorkbenchR` objects is detailed in a later section. In addition, functions `context_inputs`, `context_outputs` and `input_example` are provided for convenience.
Expand Down Expand Up @@ -227,15 +227,15 @@ The name of all valid contexts can be displayed:

```{r}
# list all context names
names(context)
names(metabolomicsWorkbenchR::context)
```

Information about a specific context can be obtained using the show method for a
an `mw_context` object:

```{r}
# list valid inputs/outputs for the "study" context
context$study
metabolomicsWorkbenchR::context$study
```
## Input / Output Items
Once the context of the search has been decided upon valid inputs and outputs can
Expand Down

0 comments on commit d97f93f

Please sign in to comment.