Description Usage Arguments Details Value Examples
View source: R/retrieveProjects.R
Helper function that retrieves all the projectName options which a user has access to, from janus.
1 | retrieveProjects(target, verbose = FALSE)
|
target |
A list, which can be created using |
verbose |
Logical. Sets whether to report the status of the '/projects' curl request sent to janus. |
This function takes in the user's target
containing their authorization token, and a url targeting either magma or janus.
It then converts the given url to target janus, and makes a curl request to <janus-url>/projects in order to return which projects a user can access.
A data.frame where elements of the 'project_name' column reflect what can be given to projectName
inputs of other magmaR functions.
1 2 3 | if (interactive()) {
retrieveProjects(target = magmaRset())
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.