Calling R script with Javascript

LabKey Support Forum (Inactive)
Calling R script with Javascript jeckels  2013-12-02 14:59
Status: Closed
 
Hi Bront,

Only the query associated with the R report will be available as a TSV on the file system (which is automatically available as labkey.data.

However, you can make separate calls to get other data using the Rlabkey package. See the documentation for the selectRows or executeSql functions here:

http://cran.r-project.org/web/packages/Rlabkey/Rlabkey.pdf

The R script will be running as the user who initiated the request (not the developer), and will have their permissions when making API calls like that.

Thanks,
Josh