Is it an inconsistency/bug? Rlabkey package, lsSchemas method

LabKey Support Forum (Inactive)
Is it an inconsistency/bug? Rlabkey package, lsSchemas method Leo Dashevskiy  2012-08-08 18:06
Status: Closed
 
Hello!

lsProjects(), for example, does return what it says it returns, whereas lsSchemas() does not return the declared value (but it definitely should per the man page and the vignette!), instead it just prints out the available queries:

> lsSchemas
function (session)
{
    print(.getSchemasAsList(session))
}
<environment: namespace:Rlabkey>

> lsProjects
function (baseUrl)
{
    folders <- labkey.getFolders(baseUrl, "/", includeSubfolders = TRUE,
        depth = 1)
    folders <- folders[(folders$folderPath != "/"), ]
    return(sort(as.array(folders$folderPath)))
}
<environment: namespace:Rlabkey>

So it is impossible to assign the output of lsSchemas() to a variable and to later use it (to return back to a Labkey R view, for example)

Thanks.
 
 
cnathe responded:  2012-08-09 07:00
Thank you for pointing this out. It does look like there is an inconsistency with what is returned by the lsSchemas() method versus the lsProjects() and lsFolders() methods. I will open a bug on this and get it fixed so that the lsSchemas() method returns an array of schema names, as advertised by the man page.
 
Leo Dashevskiy responded:  2012-08-09 11:43
Thanks.