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

View source: R/schemaObjects.R

lsProjectsR Documentation

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://<server dns name>/<contextroot>

Details

List the projects available at a given LabKey Server address.

Value

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

Author(s)

Peter Hussey

References

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

See Also

getSession, lsFolders, lsSchemas

Examples

## Not run: 

## get list of projects on server, connect a session in one project,
## then list the folders in that project
# library(Rlabkey)

lsProjects("https://www.labkey.org")

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

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


## End(Not run)

Rlabkey documentation built on Nov. 8, 2023, 1:06 a.m.