Relative Content

Tag Archive for rshiny

Binding dataframe with each clip of an actionButton in Shiny

A piece of an app I am building takes input from clip which is designed for excel tables on clipboard. I want it to be converted to data.frame using clipr::read_clip_tbl(). This works well. But, for each time the clip actionButtonis triggered, I want the output fromtable2to be updated by binding the rows from each dataframe whenclipis clicked. Instead, each timeclip“` is triggered, it only shows the most recent data frame.

Error when trying to access a data.frame inside a reactive event object

I am trying to manipulate pasted data inside a shiny app. Here I tried to add a column as I would normally in R. But I get error message: Warning: Error in UseMethod: no applicable method for 'mutate' applied to an object of class "c('reactive.event', 'reactiveExpr', 'reactive', 'function')"

Using Shiny to combine and display copy and pasted data

I am trying to create a very basic web app that allows a user to copy and paste Excel tables and display them on the app. I would normally use data <- read.delim('clipboard'), then paste(data) if I was using an R script. If I run:

How to paste into text Output in Shiny

how can I insert into text Output value from text Input? Problem is because I want insert value from textInput and other text. Functions like paste or glue throws an error.

table does not update with renderDT and validate() in Shiny

I am trying to make a shiny app that takes a numerical value that is used to filter a dataset and returns the filtered data as a table. I can get the app to do what I want, but when I insert validate() to be able to return a custom message when the filter input is not a valid value.
This is the code that I have:

Retrieving ID when Multiple renderDataTable are active in Shiny App

I am trying to delete the values based on ID of the selected row in the datatable. My app has many datatable and when I use it always displays NULL. How can I retrieve the id/species (iris data) when I have selected a row in the datatable. Below is a sample example