Matt14
Matt14

Reputation: 11

Deploying R Shiny App on Bluemix using dashDB

I'm hoping someone can help with deploying an R Shiny application built on dashDB on Bluemix.

I have built a Shiny application that currently runs on my local machine. However, I now want to host this app on Bluemix using the dashDB service to store the relevant data. I have the app running in rStudio on dashDB, and it runs as expected when I click "Run App".

My question is how do I go from this stage to deploying the shiny app to a web application, accessible to end users through a web link?

I have looked at some other questions about deploying Shiny apps to Bluemix (e.g. Unable to push Sample Shiny App to Bluemix, http://www.ibm.com/developerworks/library/ba-rtwitter-app/index.html) but these seem to be concerned with deploying from a local app straight to Bluemix. I can't find any guidance on deploying from the dashDB service.

Is this possible? Has anyone else been able to do this?

Thanks!

Upvotes: 1

Views: 532

Answers (1)

Torsten Steinbach
Torsten Steinbach

Reputation: 391

dashDB has a REST API that can be used to launch R scripts/applications. So you should be able to use that to launch the R scripts (ui.R, server.R) this way, which stands up the R web application.

See here: https://developer.ibm.com/clouddataservices/wp-content/themes/projectnext-clouddata/dashDB/ The REST endpoint to use is POST with /rscript/{filename}

Upvotes: 0

Related Questions