I am trying to create a shiny application to help my coworkers sort, highlight, organize, etc, a load of qualitative data. Basically, I want it to display some narrative text, allow uses to copy/past text or take notes in a text area, and then print those notes to a physical printer. I have managed to create a minimal app which allows users to enter text in a text field, but I cannot figure out how to send the contents to a physical printer
This is as far as I can get...
library(shiny)
library(noteMD)
ui <- fluidPage(
sidebarLayout(
sidebarPanel(),
mainPanel(
tags$textarea("", id='input_notes', rows =20, style = 'width:100%;'),
actionButton('input_notes', 'Print Notes'))))
server <- function(input, output) {
output$print_notes <- reactive({input$input_notes}) #????????????????
}
shinyApp(ui = ui, server = server)
I ran across the noteMD package, which seems promising, here: https://www.rdocumentation.org/packages/noteMD/versions/0.1.0 I cant seem to get this to work.
Ultimately, I would like to give a clean way for users to print their own notes with one or two clicks.