The code posted below allows the user via clicks of action buttons to add/delete individual rhandsontable tables for data input. For deletion each table has its own action button underneath. Any ideas how to consolidate those delete action buttons into a single selectInput() where all tables are listed for deletion? I’ve tried un-nesting the deletion function observeEvent(input[[btnID]]…) which triggers a
Tag: r
regex for repeating word to repeating two words
I am trying to write some regex pattern that will look through a sentence and remove any one or two sequentially repeated words for example: Desired outputs are Answer Try -output
R Shiny leaflet: how to query a Web Map Service layer with a fake click?
I’m trying to display the information tooltip of a queryable WMS (Web Map Service) layer in a leaflet in Shiny. I need it to be performed in 2 different ways: 1/ clicking 2/ typing in coordinates. With the MWE (R code) at the end of this post, a click anywhere on the WMS displays the tooltip , which is part
How to setup a Shiny app designed with Golem that uses a htmlTemplate and links to an external JavaScript file
I am trying to understand the required architecture of a Shiny Golem app that utilises a html template and invokes some basic JavaScript on the press of a button. I think that I might be placing the index.html file in the wrong location, and I have not had success on invoking the JavaScript addEventListener on the button. I have included
Why is this Shiny Handler not correctly updating the JS section of the client?
When running the reproducible code at the bottom, I get the strange results in the tree rendered on the left as illustrated in the image below. What am I doing wrong, in my use of the handlers or perhaps in JS script? “Elements” reads the positions of the tree, “Elements2” does a bit of example transformation, and the Element column
How to block user from accessing other tabs in Shiny unless the user clicks a button?
My question is similar to Shiny how to block the user from accessing a tab? But what I need here is: -Block other tabs unless the user clicks on a submit button -Automatically move to the other tab once that submit button is clicked. Here is an example code In the above code, the 2nd tab is blocked unless the
render javascript component (ag-grid) in r shiny
I am trying to include the most basic example of ag-grid from their website in a R-shiny application, starting from there I will add more and more trying to setup a proper communication frontend-backend on data edit. However I am stuck at the basics of the inclusion. The component is included in source code but not rendered: This is the
Rselenium – cannot download spreadsheet in iframe
I am trying to download soil fertility data from the following website: https://soilhealth.dac.gov.in/publicreports/FertilityIndex I have got to the point where I can load the spreadsheet containing the data within an iframe. However I cannot figure out how to access the download button. This is the code I have so far: Any help would be much appriciated! Answer After you have
Problem adding code folding button in blogdown + Anatole theme
I am having a problem adding code folding to Anatole theme in Blogdown. I have followed this blogpost and I managed to add both “Show/Hide all code” and the individual buttons for each code chunk. The buttons above each code chunk work well but the “Show/Hide all code” button does not. Here is a post with code in my blog:
networkD3 in R – Freeze forceNetwork()
Is there any way to freeze the layout with forceNetwork() in the {networkD3} lib? This is taking me a lot of time, because of the number of nodes that my network has. I just need to stop the animation. I found something here, but didn’t solve my problem. Here is part of my code: Answer You could stop the simulation,