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?

Michele
  • 8,563
  • 6
  • 45
  • 72
user2969490
  • 135
  • 1
  • 1
  • 5

1 Answers1

1

In the instructions, app is the name of a formal parameter to the add() function. Even if your app is named differently, this has to remain unchanged:

s$add(name='MyApp', app='D:/STOCK/plot_ind_brz.R')
krlmlr
  • 25,056
  • 14
  • 120
  • 217