Hi Jeff,
I am having a similar issue as Harlan, but when I try to use the
'listen' argument it has no effect. Rook seems to be starting the
server with the 'new()' command. For example, when I execute:
library(Rook)
s <- Rhttpd$new()
s$print()
It returns:
Server started on
127.0.0.1:10347
No applications installed
Then, when I try to use 's$start(listen='123.123.123.123', port=1234,
quiet=FALSE)', I get the following warning:
Warning message:
In s$start(listen='123.123.123.123', port=1234, quiet=FALSE) :
RStudio has already started the web server on port 10347
and I cannot seem to edit the IP or port. Any ideas/suggestions would
be greatly appreciated.
Thanks,
Trannon
P.S. I am using RStudio as my IDE - not sure if that is the culprit.
However, I have had no luck using the Rgui either.
On Jun 27, 3:54 pm, Jeffrey Horner <
jeffrey.hor...@gmail.com> wrote:
> Indeed, you should be able to use another ip address. Just set the
> listen argument to the start method like so:
>
> ws$start(listen='123.123.123.123',...)
>
> You may even be able to use listen='*' to listen on all interfaces but
> I'm unsure of this.
>
> Jeff
>
> On Mon, Jun 27, 2011 at 5:13 PM, Harlan Harris <
harlan.har...@gmail.com> wrote:
> > Hi, this is probably marginally off-topic, but maybe not. I'm trying
> > to set up a web status page for an R application that runs
> > continuously, using Rook. The code to start the web server is as
> > follows:
>
> > ws <- Rhttpd$new()
> > ws$add(RhttpdApp$new(name='AppStatus', app=AppStatus))
> > ws$start(port=app.port, quiet=TRUE)
>
> > Where AppStatus is a function and app.port is a scalar (9898). I can
> > connect to the server on the local host, as follows (this is on a
> > Linux box):
>
> > curlhttp://localhost:9898/custom/AppStatus
>
> > That works fine. But when I use the IP address of my machine, ala:
>
> > curlhttp://
123.123.123.123:9898/custom/AppStatus