labkey.selectRows
and getRows
)
or by using sql commands (labkey.executeSql
). From an R session, existing data can be updated
(labkey.updateRows
), new data can be inserted (labkey.insertRows
) or
data can be deleted from the LabKey database (labkey.deleteRows
). Interactive R users can discover available data via
schema objects (labkey.getSchema
).On a UNIX system this file should be named .netrc (dot netrc) and on windows it sould be named _netrc (underscore netrc). The file should be located in the users home directory and the permissions on the file should be unreadable for everybody except the owner.
To create the _netrc on a windows machine, first create an environment variable called 'HOME' that
is set to your home directory (c:/Users/
The following three lines must be included in the .netrc or _netrc file either separated by white space (spaces, tabs, or newlines) or commas.
machine
One example would be: machine localhost login peter@labkey.com password mypassword Another example would be: machine atlas.scharp.org login vobencha@fhcrc.org password mypassword Multiple such blocks can exist in one file.
labkey.selectRows
, labkey.executeSql
, makeFilter
,
labkey.insertRows
,
labkey.updateRows
, labkey.deleteRows
The Rlabkey Users Guide is available by typing RlabkeyUsersGuide().