如何在HTML文件中执行R函数

时间:2016-10-18 10:14:42

标签: html r

我正在尝试在HTML文件中调用R函数,该文件将接受用户选择的文件名并绘制图形。 R函数如下:

plotGraph<-function(filename){

    test.ecg <- read.table(filename, quote="\"", comment.char="")
    ecg=ts(test.ecg)
    plot(ecg)

}

我看过opencpu,deployr和shiny.But,我正在寻找一种方法将R函数嵌入到同一个HTML页面中,并将用户选择的文件名传递到同一HTML中的R函数中?它会完成吗?

0 个答案:

没有答案