## the basics of using session, schema, and query objects
# library(Rlabkey)
s<- getSession(baseUrl="http://localhost:8080/labkey", folderPath="/apisamples")
sch<- getSchema(s, "lists")
sch$AllTypes$Category # can walk down the populataed schema tree from schema node or query node
sch$AllTypes$Category$caption
sch$AllTypes$Category$type
lucols <- getLookups(s, sch$AllTypes$Category) # can add fields from related queries
cols <- c(names(sch$AllTypes[2:6]), names(lucols)[2:4])
getRows(s, sch$AllTypes, colSelect=cols)
Run the code above in your browser using DataLab