Shiny using Amazon Web Services

325 views
Skip to first unread message

Breanna Gronner

unread,
Sep 10, 2013, 11:29:38 PM9/10/13
to shiny-...@googlegroups.com
I was able to get R running on a server using AWS and Shiny.  I found this article by Ken Kleinman very helpful and followed his directions to set up the server and R.  When I use R on the AWS server to start working on Shiny apps, I get this error:

> ~/shinyapp
Error: unexpected '/' in "~/"
> |-- ui.R
Error: unexpected '|' in "|"
> |-- server.R
Error: unexpected '|' in "|"


Has anyone had any success running Shiny off of an AWS server? 
Thanks,
Breanna

Andrew Defries

unread,
Sep 12, 2013, 12:44:36 AM9/12/13
to shiny-...@googlegroups.com
I am interested in a fresh build in debian 64 and tha AMI is Ubuntu. Anyone think it is possible?

Jeff Allen

unread,
Sep 12, 2013, 10:28:38 AM9/12/13
to shiny-...@googlegroups.com
Yes, we've run Shiny on AWS.

I'm not clear on how you're running your application, though. Have you tried using `runApp("shinyapp")` I don't think the syntax you entered above is valid R code.

Jeff

Jeff Allen

unread,
Sep 12, 2013, 10:29:57 AM9/12/13
to shiny-...@googlegroups.com
Andrew,

It's certainly possible. We even have instructions available: https://github.com/rstudio/shiny-server/wiki/Ubuntu-step-by-step-install-instructions

Please post back if you get an AMI setup that you'd be willing to share!

Jeff

Joe Cheng

unread,
Sep 12, 2013, 6:49:25 PM9/12/13
to shiny-...@googlegroups.com
Breanna, it looks to me like you've copied and pasted the first "block" from this page and tried to run it as an .R file, is that right? That's just intended to be an illustration of how your application folder is supposed to be laid out; it's supposed to contain two files: ui.R and server.R.

If possible I'd get comfortable using Shiny locally first, before adding the additional complexity of the cloud (though it does indeed work fine--all of our test and production servers are on AWS).


--
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.

ijazz jazz

unread,
May 22, 2018, 4:12:39 AM5/22/18
to Shiny - Web Framework for R
 How to host an R Shiny App on AWS cloud in 7 simple steps. What is R .... In the amazon console, go to your running EC2 instance.

Reply all
Reply to author
Forward
0 new messages