retrieveProjects {magmaR} | R Documentation |
Helper function that retrieves all the projectName options which a user has access to, from janus.
Description
Helper function that retrieves all the projectName options which a user has access to, from janus.
Usage
retrieveProjects(target, verbose = FALSE)
Arguments
target |
A list, which can be created using |
verbose |
Logical. Sets whether to report the status of the '/projects' curl request sent to janus. |
Details
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.
Value
A data.frame where elements of the 'project_name' column reflect what can be given to projectName
inputs of other magmaR functions.
Examples
if (interactive()) {
retrieveProjects(target = magmaRset())
}