Learn R Programming

Rlabkey (version 2.1.121)

lsProjects: List the projects available at a given Labkey Server address

Description

Lists the projects available. Takes a string URL instead of a session, as it is intended for use before creating a session.

Usage

lsProjects(baseUrl)

Arguments

baseUrl
a string specifying the baseUrlfor the Labkey Server, of the form http:///

Value

  • A character array containing the available projects, relative to the root. These values can be set on a session using curFolder<-

Details

List the projects available at a given Labkey Server address.

References

https://www.labkey.org/project/home/begin.view

See Also

getSession, lsFolders, lsSchemas

Examples

Run this code
## get list of projects on server, connect a session in one project, then list the folders in that project
# library(Rlabkey)
lsProjects("http://www.labkey.org")

lkorg <- getSession("http://www.labkey.org", "/home")
lsFolders(lkorg)

lkorg <- getSession("http://www.labkey.org", "/home/Study/ListDemo")
lsSchemas(lkorg)

Run the code above in your browser using DataLab