How to modify a stored document (.doc) and let user download it from wiki page | Jon (LabKey DevOps) | 2015-04-23 17:02 |
Status: Closed | ||
Hi Himanshu, So according to our developers, we can we trigger an R script from javascript. There is a special LABKEY.Report Javascript API that can execute an R report. In a file-based module, it is possible to have an R report in the module that is executed via Javascript using LABKEY.Report.execute(). Additionally, any R packages can be installed on the server that is using R. Here's our documentation on using knitr with markdown - https://www.labkey.org/wiki/home/Documentation/page.view?name=knitr R can actually run as a report to access other files on the server, so accessing those templates is possible. There is enough context passed into the script prolog to indicate file and pipeline root locations and can be done within sequence. https://www.labkey.org/wiki/home/Documentation/page.view?name=rPipeline To download a generated file from the R report on your local machine, just go to the Admin > Manage Views, click the Add Report button and select R view. If you select the Help tab, it shows all the different syntax and shows the various ways to produce a downloadable file or an output. Regards, Jon |
||