if (interactive()) {
# First, we use magmaRset to create an object which will tell other magmaR
# functions our authentication token (as well as some other optional bits).
# When run in this way, it will ask you to give your token.
magma <- magmaRset()
# Running like this will ask for input of your janus token one time.
retrieveMetadata(
target = magma,
projectName = "example",
meta_modelName = "subject",
meta_attributeNames = "group",
target_modelName = "rna_seq",
target_recordNames = "all")
}
Run the code above in your browser using DataLab