s <- Rhttpd$new()
s$start(quiet=TRUE)
s$add(
app=system.file('exampleApps/helloworld.R',package='Rook'),
name='hello'
)
s$browse(1)
myPort <- 80 # I tried any possible port...
myInterface <- "192.168.16.81"
.Call(tools:::startHTTPD, myInterface, myPort)
unlockBinding("httpdPort", environment(tools:::startDynamicHelp))
assign("httpdPort", myPort, environment(tools:::startDynamicHelp))
s <- Rhttpd$new()
s$listenAddr <- myInterface
s$listenPort <- myPort
s$add(
app=system.file('exampleApps/helloworld.R',package='Rook'),
name='hello'
)
s$browse(1)
> s
Server started on 127.0.0.1:8080
[1] hello http://127.0.0.1:8080/custom/hello
Call browse() with an index number or name to run an application.
The ?Rhttp
example seems actually to work. (not every time however) RStudio seems to force the application to another port than that one selected by me!
> s <- Rhttpd$new()
> s$add(
+ app=system.file('exampleApps/helloworld.R',package='Rook'),
+ name='hello'
+ )
> s$start(port=8080, quiet=TRUE)
> s$browse(1)
Warning message:
In s$start(port = 8080, quiet = TRUE) :
RStudio has already started the web server on port 19905
Have you been to rstudio support? They do some manipulation under the hoods to get networking right for their server and Rook, so they may have answers.
--
You received this message because you are subscribed to the Google Groups "rRook" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rrook+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.