getUserProjects: getUserProjects - Gets metadata of projects accessible to the...

Description Usage Arguments Details Value Author(s) Examples

View source: R/getUserProjects.R

Description

getUserProjects Gets metadata of projects accessible to the current user.

Usage

1
getUserProjects(coreApi, ...)

Arguments

coreApi

coreApi object with valid jsessionid

...

additional arguments passed to apiGET

Details

getUserProjects Gets metadata of projects accessible to the current user.

Value

List of length 2, containing entity and response objects:

Author(s)

Natasha Mora natasha.mora@thermofisher.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
api <- coreAPI("PATH TO JSON FILE")
login <- authBasic(api)
response <- getUserProjects(login$coreApi)
logOut(login$coreApi)

## End(Not run)
Specific data can be extracted, one example is to extract the project barcodes:
## Not run: 
projectBarcodes <- unlist(lapply(
    response$content, 
    FUN = function(x)
        x$Barcode))

## End(Not run)

AmundsenJunior/pfsrsdk documentation built on July 18, 2019, 8:10 p.m.