【发布时间】:2016-08-19 07:13:10
【问题描述】:
在部署在我的服务器上并且运行良好的 R 闪亮应用程序中,我有一个名为 "generate report" 的按钮。当您单击此按钮时,它会调用 'pdflatex' 到 system() 命令来生成 pdf 报告。 system(paste0('pdflatex ', '-output-directory ./ ', texfile))
我可以运行我的应用程序的多个实例并且它工作正常,但是,如果我同时在所有正在运行的实例中单击 "generate report" button,服务器将无法生成报告并挂起,因为所有运行闪亮的应用程序实例调用我的服务器(Linux x64)上安装的相同'pdflatex' app。
我想知道为一个闪亮的应用程序实例运行一个系统应用程序实例 (pdflatex) 的可能性。
【问题讨论】: