I am trying to create slides from a webpage using .R and .rmd files.
My server logic code is written in .R which includes some reactive methods.
Started writing corresponding .rmd file for creating slides.
But unable to import reactive methods from server.R to this .rmd file.
Please help me.
RMarkdown is for creating static documents (html, PDF, Word, etc). How are you imagining reactive methods working in a static document? If you want reactive methods I think sticking in Shiny is your only sensical approach... unless I'm misunderstanding.
Agreed, Rmarkdown is for creating static documents.
My requirement is to create presentation slides out of project report.
This project report(html pages) generation is done using shiny where some reactive methods being used.
So currently, I am thinking of extending the same to slides presentation. But only obstacles I am seeing are reactive methods.
I wonder why it says "task.reactive" with a small case "R".
Have you tried making a minimal example? I'm looking at some code I wrote right here that uses several reactive functions without difficulty. You are running this from within Shiny, I haven't misunderstood?
Oh, I see. I really don't think that will work at all. Not at all.
You could write a shiny app that writes the documents for you though, that would work? Just port the functions across and then have a button to generate the RMarkdown. I'm not sure you're saving a lot of time or effort, but you can certainly do that if you want.