I need to create a report in Rmarkdown that will be displayed as an html file due to the presence of Rshiny chunks. Is there any method available for me to insert line numbers into the document?
It's crucial for me to have line numbers for the text, and not for the code chunks, which was previously inquired about here.
I'm curious if it's feasible to apply some CSS directly to the .Rmd file below, but I lack knowledge on how to execute this.
---
title: "Title"
author: "Yourname"
date: "June 16, 2016"
output: html_document
runtime: shiny
---
This R Markdown document is made interactive using Shiny.
Unlike the more traditional workflow of creating static reports, you can now create documents that allow your
readers to change the assumptions underlying your analysis and see the results immediately.
## Inputs and Outputs
You can embed Shiny inputs and outputs in your document. Outputs are automatically updated whenever inputs change.
This demonstrates how a standard R plot can be made interactive by wrapping it in the Shiny `renderPlot` function.
The `selectInput` and `sliderInput` functions create the input widgets used to drive the plot.
Many thanks,
Paul