RLabkey makeFilter with filters as variable?

LabKey Support Forum (Inactive)
RLabkey makeFilter with filters as variable? cnathe  2018-01-15 19:55
Status: Closed
 
From my local testing using R version 3.4.2 with Rlabkey version 2.1.136, querying against the Demo Study on labkey.org gives back the same 2 rows for both of the following code examples:

1. code from the export to R script from the LabKey dataset grid view:

library(Rlabkey)
labkey.data <- labkey.selectRows(
    baseUrl="https://www.labkey.org",
    folderPath="/home/Demos/Study/demo",
    schemaName="study",
    queryName="Demographics",
    colFilter=makeFilter(c("Country/CountryName", "EQUAL", "USA"),c("Gender/GenderName", "EQUAL", "m"),c("Language/LanguageId", "EQUAL", "French"))
)

2. code from #1 modified to generate the filters object using rbind

library(Rlabkey)
filters = c("Country/CountryName", "EQUAL", "USA")
filters = rbind(filters, c("Gender/GenderName", "EQUAL", "m"))
filters = rbind(filters, c("Language/LanguageId", "EQUAL", "French"))
labkey.data <- labkey.selectRows(
    baseUrl="https://www.labkey.org",
    folderPath="/home/Demos/Study/demo",
    schemaName="study",
    queryName="Demographics",
    colFilter=makeFilter(filters)
)