Shiny app as secure REST web service?

2,686 views
Skip to first unread message

Ignacio Perez Hallerbach

unread,
Feb 16, 2013, 7:45:43 AM2/16/13
to shiny-...@googlegroups.com
Dear all, dear Shiny team,

I apologize if this is a trivial question or has been asked in this group before (I didn't see it mentioned though...) but I'd be very grateful for your answers:

Can I use a shiny app as a pure, secure REST web service? I only saw examples of HTML/shiny UIs but would it also be possible to make a shiny app simply a secure REST web service endpoint that...

* Takes and processes HTTP(S) requests?
* Returns the results of my R algorithms as JSON?
* Is secure in the sense that it is accessed via HTTPS and checks the user's credentials before running the algorithms?

I'd very grateful for any answers and pointers to example code.

Thanks so much in advance! Best,

Ignacio

Joe Cheng

unread,
Feb 16, 2013, 7:11:45 PM2/16/13
to shiny-...@googlegroups.com
Shiny is currently not designed for this model (though we potentially could in the future). I would look at RServe, rApache/Rook, and OpenCPU.
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
Sent from my phone

Ignacio Perez Hallerbach

unread,
Feb 18, 2013, 5:51:30 PM2/18/13
to shiny-...@googlegroups.com
cool, thanks a lot for the pointers! Cheers

Joe Cheng

unread,
Feb 18, 2013, 6:34:32 PM2/18/13
to shiny-...@googlegroups.com
Oh and FastRWeb.


On Mon, Feb 18, 2013 at 2:51 PM, Ignacio Perez Hallerbach <ignacio.pere...@gmail.com> wrote:
cool, thanks a lot for the pointers! Cheers

Ignacio Perez Hallerbach

unread,
Feb 18, 2013, 6:38:06 PM2/18/13
to shiny-...@googlegroups.com
great, thanks!

Mahzad Zahedi

unread,
Mar 14, 2013, 3:27:29 AM3/14/13
to shiny-...@googlegroups.com
Do I understand correctly? This means that we can  not communicate with the client-side application (java script)  and server-side application (shiny). Have?

I want to communicate this connection with JSON.!!  Then result of this important post : Shiny can not work with JSON.Is it true? I Iike to work Shiny but This capability is required for me.

Plz help me

Joe Cheng

unread,
Mar 14, 2013, 3:50:15 AM3/14/13
to shiny-...@googlegroups.com
Mahzad, can we get specific? What is the scenario you're trying to solve? Are you trying to add REST to a Shiny app, or are you trying to use Shiny to host a pure REST webservice?


--

Mahzad Zahedi

unread,
Mar 15, 2013, 3:13:28 AM3/15/13
to shiny-...@googlegroups.com

Hi Joe Cheng,

I want to use combination of java script and R shiny, it means that if a user click on a node in a graph (java script) its information about that node is send to  shiny to proccessing 
it. Is is clear?

I want to use power of computing R shiny in server side and power of Animation java script in client side. so I need Using JSON.


Joe Cheng

unread,
Mar 15, 2013, 5:07:29 PM3/15/13
to shiny-...@googlegroups.com
That's fine and there are lots of examples of users doing that already. You do this in Shiny not by making REST calls, but by building custom inputs and outputs that Shiny takes care of wiring up to the server. (It is possible for a single component to be both input and output, though we haven't documented that scenario.)

Mahzad Zahedi

unread,
Mar 22, 2013, 12:43:56 PM3/22/13
to shiny-...@googlegroups.com
Thanks, do you have any example about scenario that when i search name of  a node in graph in client side , it is appeared in graph in other words the graph is collapsed or highlighted.

Joe Cheng

unread,
Mar 22, 2013, 1:57:15 PM3/22/13
to shiny-...@googlegroups.com
No, but if you have the JavaScript code that just needs somewhere to send the selected value and server side code that just needs to get at the selected value, then if you post your code we can help you connect the dots using custom input and output bindings.

Alberto Santini

unread,
Mar 25, 2013, 9:12:13 AM3/25/13
to shiny-...@googlegroups.com
Hello.


On Saturday, February 16, 2013 1:45:43 PM UTC+1, Ignacio Perez Hallerbach wrote:

Can I use a shiny app as a pure, secure REST web service? I only saw examples of HTML/shiny UIs but would it also be possible to make a shiny app simply a secure REST web service endpoint that...


With RServe and Node.js you may use node-rio:

Regards,
Alberto

ignacio.pere...@gmail.com

unread,
Mar 25, 2013, 9:13:52 AM3/25/13
to shiny-...@googlegroups.com
Thanks a lot, I'll have a look. Best, Ignacio
From: Alberto Santini <alberto...@gmail.com>
Date: Mon, 25 Mar 2013 06:12:13 -0700 (PDT)
Subject: Re: Shiny app as secure REST web service?
--
You received this message because you are subscribed to a topic in the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shiny-discuss/-JYOXAeLCtI/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to shiny-discus...@googlegroups.com.

Mohammad

unread,
Apr 21, 2016, 2:25:06 PM4/21/16
to Shiny - Web Framework for R
Hello All,

Now, I have a similar question. I have a web application written in R by shiny. It read data and produce an algorithm and results. I want to be able to call this web application by a restful application and send data for the web application and receive the results and algorithm by any mean.

Can I do that? if so, how?

Thanks in advance
Reply all
Reply to author
Forward
0 new messages