I'm an experienced programmer but new to R, working on a visualization project that would be months of work in D3.js (but client knows R, not JavaScript.) I may have to start from a clean slate again once I figure out what I'm doing, but at the moment, I'm just trying to decide what kind of object to start with. If I make a new R Markdown document (in RStudio), Shiny is one of my output options; or I can make a new Shiny app without markdown.
I can guess what some of the trade offs might be:
- R Markdown might be a good playground for trying stuff, documenting it as I go along, and sharing it with clients.
- But the quoting and embedding options add an extra layer of stuff I'm not proficient with.
- Working on a plain Shiny app might allow me to focus more on learning Shiny, but it might tempt me to over-design the app before I know what I'm doing, and I should probably be focusing more on learning R and ggplot2 and experimenting with the data and possible Shiny widgets (which R Markdown should be good for.)
The question of what I should do is opinion-based, and I understand that's not what StackOverflow is for. But just writing out the question has helped me understand the differences between these options. So my real question is: have I understood the relationship between Shiny and R Markdown correctly or am I missing something important?
Edit. Based on clarifying questions in comments, my needs are: a good playground for learning R, exploring the data and ways of letting users interact with it, documenting these experiments, and serving as a scratchpad for components that will form a more coherent application eventually. Based on this question, R Notebook might be more appropriate for a first pass than regular R Markdown, but it doesn't have a prepackaged Shiny option, so R Markdown with Shiny is probably best for now.