title: Turn a .R file into an actual Shiny application on Ubuntu Server
body: <p>I have developed several Shiny apps in Rstudio and I'm now attempting host them through my own Shiny server on an AWS instance of Ubuntu 16.04. My issue is that I do not understand how to translate the .R file into a Shiny application that can be viewed as a webpage.</p>
  
  <p>I was able to successfully install the latest versions of R, Rstudio, and Shiny on my Ubuntu instance and I am also able to successfully view my Shiny server as a web page via port <code>3838</code>.</p>
  
  <p>I then copied (via <code>scp</code>) a file from my local machine into my Ubuntu instance and placed it in the same directory that feeds my Shiny server webpage, which happens to be: <code>/opt/shiny-server/samples/sample-apps</code>. The obvious problem is that the two existing applications in this folder (<code>hello</code> and <code>rmd</code>) look like programs in my terminal because they are colored blue and do not contain an extension. The file that I have placed there with them is <code>test_shiny.R</code>.</p>
  
  <p>How or where do I place the <code>test_shiny.R</code> file so that it is able to be viewed through my webpage?</p>
  
  <p>I am brand new to Linux/Ubuntu.</p>
  
  <p>Below is the contents of <code>test_shiny.R</code>:</p>
  
  <pre><code>library(shiny)
  ui &lt;- fluidPage(
  
    textInput("text", label = "Text", value = "test"),
    textOutput("textout"))
  
  
  server &lt;- function(input, output) {
    output$textout &lt;- renderText({
      paste("Input text is:", input$text)
    })
  }
  
  shinyApp(ui, server)
  </code></pre>