I am writing a report in Rmarkdown which shall be rendered in html because it contains Rshiny chunks. Is there any way I can add line numbers to the file?
Importantly I need line numbers for the text and not for the code chunks as asked here.
I wonder if it is possible to add some CSS to the .Rmd file below but wouldn't know how to do that.
---
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.
Thank you very much,
Paul
Aucun commentaire:
Enregistrer un commentaire