我正在使用带有highcharts(饼图类型)的shinyApp . 我想允许用户将图表导出为CSV和jpg . 我添加了exports.js脚本,它可以工作(但只包含将图表导出为图片) . 我试图添加export-csv.js

(比如这里:http://jsfiddle.net/highcharts/cqjvd/ <script src="http://code.highcharts.com/modules/exporting.js"></script> <script src="http://highcharts.github.io/export-csv/export-csv.js"></script>

但没有改变 . 我以下面的形式添加了脚本:

tags $ head(标签$ script(type =“text / javascript”,src =“exports.js”)),

tags $ head(标签$ script(type =“text / javascript”,src =“export-csv.js”)),