This R Markdown uses the googlesheets package to load in the responses that users inputted on the Shiny App and creates a document. As you can see, this R Markdown is interactive; its content changes depending on users input on the shinyApp.
What I want is the following:
On my shinyapp, using actionButton, I want to deploy the RMarkdown online, essentially pressing Run Document button on the R Markdown. The result would be hosting this RMarkdown online, maybe on shinyapps.io
What I've tried:
I've deployed both the shinyApp and R Markdown on shinyapps.io and tried deploying the RMarkdown by including the actionButton on my shinyApp and pressing the button. Unfortunately, the shinyApp shows me an error message:
It is uncommon for folks to create applications that in turn deploy applications. And we do not document it.
However, yes, if you want your application to deploy another application, you must include the credentials, just as you need them when deploying from the RStudio IDE itself. See the documentation for the rsconnect package for details.
I'm not exactly sure what composes of credentials, but I'll try specifying the parameters account and server first, which I assume I need for deploying from the RStudio IDE.