1
> library(Rook)
> s <- Rhttpd$new()
> s$add(name='MyApp',plot_ind_brz='D:/STOCK/plot_ind_brz.R')

I am getting an error

"Error in s$add(name = "MyApp", plot_ind_brz = "D:/STOCK/plot_ind_brz.R") : 
  unused argument(s) (plot_ind_brz = "D:/STOCK/plot_ind_brz.R")"

And steps are written as follows:

Load Rook

library(Rook)

Create an Rhttpd variable

s <- Rhttpd$new()

Create your application in a separate file, assign it to either the name of your application or simply just 'app'.

Add your application to the server:

s$add(name='MyApp',app='path/to/your/app.R')

Load the app into your browser

s$browse('MyApp')"

How to resolve this problem? Can anyone please help me on this?

4

1 回答 1

1

在说明中,appadd()函数形式参数的名称。即使您的应用程序名称不同,也必须保持不变:

s$add(name='MyApp', app='D:/STOCK/plot_ind_brz.R')
于 2014-02-27T15:42:38.943 回答