How to modify a stored document (.doc) and let user download it from wiki page

LabKey Support Forum (Inactive)
How to modify a stored document (.doc) and let user download it from wiki page himanshu mendhe  2015-04-23 06:28
Status: Closed
 
Yes. I know it is possible but what I am unsure about, in this case, is whether you support R's packages like 'pandoc' or 'markdown' and if installation is required, how do I install them on LabKey?
Another thing is, does LabKey give enough permissions to the R script to create/modify a file on the LabKey Server (inside the file-based module), because that is where I am going to store the template.
Also, finally, it would be great to know if LabKey has any inbuilt mechanism for file downloading which I can leverage.