Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setComments

Add comment to a specified cell


Description

This function is used to add comment to the specified cell

Usage

setComments(tableId, cellId, comment)

Arguments

tableId

the id of the table for which the comment is to be added

cellId

the id of the cell for which the comment is to be added

comment

the comment that is to be added to the cell

Examples

if(interactive()) {
 library(shiny)
 library(excelR)
 shinyApp(
  ui = fluidPage(excelOutput("table", height = 175),
       actionButton('comment', 'Set Comments to cell A1')),
     server = function(input, output, session) {
         output$table <- renderExcel(excelTable(data = head(iris)))
         observeEvent(input$comment,{
             setComments("table", "A1", "This is a comment")
         })
     }
     )
 }

excelR

A Wrapper of the 'JavaScript' Library 'jExcel'

v0.4.0
MIT + file LICENSE
Authors
Swechhya Bista [aut, cre], Kent Russell [ctb], Mārcis Bratka [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.