Want to publish rmarkdown built website in shinyapps.io

I would like to publish an rmarkdown built website in shinyapps.io. Is that possible ?

1 Like

do you mean you want to publish HTML generated by an RMarkdown file? Is this a single HTML file or multiple files using Bookdown?

If you're wanting to publish something that is not really a Shiny app, you might consider github pages: https://pages.github.com

Of, if you're publishing a web site with lots of content you might consider blogdown: https://alison.rbind.io/post/up-and-running-with-blogdown/

1 Like

Hope this can help you (works for single .Rmd).

library(shiny)
shinyApp(
  ui = fluidPage(
    includeHTML(rmarkdown::render("index.Rmd"))),
  server = function(input, output) {
  }
)

Both files (app.R and index.Rmd) must be at the same directory.

5 Likes

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.