It seems like the graphics::locator() function can not be used inside a shiny app, anyone knows why it behaviors like that? The output of the function is displayed at the normal plot tab in RStudio, it does not show inside your app.
Related
I would like to know if a DT::datatable output object's columns can be automatically adjusted inside a Shiny App? This seems like a very popular interface but I can't seem to do a simple manual column size adjustment, like the Rhandsontable, with the following call
hot_cols(manualColumnResize = TRUE)
If there is an option to do this via JavaScript I'll take that as well, as I've already search for how to do this with pure R syntax to no avail. Thanks.
Ok, I understand now, not from DT, but you could use {DataEditR} package instead.
I am trying to include my code in my R Shiny app, as shown below, however, I am not able to find any way to do it! Here is my desired output, as you can see there is a app.R file that displays all of the code within an app:
my desired output
That can be done using the showcase mode.
Invoke runApp directly with display.mode="showcase":
shiny::runApp(display.mode="showcase")
I have a shiny application that I used to call the rmarkdonw::render() function. I want to be able to show the knitting progress using the withProgress() function like here: https://gallery.shinyapps.io/085-progress/
The problem is I don't know how to get the progress status from 'render()' function. Any ideas?
I'm developing a Shiny application that provides interaction between a table with selection and a plot also with selection. When the plot is clicked to select a point, I would like to cascade that selection to the table. I've found this page (https://yihui.shinyapps.io/DT-proxy/) which describes exactly the process I'm trying to accomplish using dataTableProxy and selectRows functions. But even their example code does not work on my machine. I get an error saying "could not find function dataTableProxy"
I have version 0.1 of DT, shiny 0.12.2, shinydashboard 0.5.1, and R 3.1.2. Even looking at the DT documentation I see no mention of a dataTableProxy function.
I'd like to parse pieces of text to pull out certain lines using R and I wrote a function for this purpose. The function is fine but so far I have to use readLines() to read a .txt file and then process it using my function.
However, ideally I'd like to create a popup window consiting of a text entry box, a "do it" button and a return text box. I could then copy-paste the text in a text-entry box, press the "do it" button (to send it to my funtion) and get the desired lines in the text box.
I played around with the rpanel package and its rp.textentry and rp.text functions but I'm having some problems understanding how the whole package works...
I would be grateful if you have suggestions how to make such a popup window with rpanel or any other package in R. Thanks!
There is a package called svDialogs. The following is the link to the documentation:
http://cran.r-project.org/web/packages/svDialogs/svDialogs.pdf
There is a function called dlgInput.
This is the simplest way to create widgets. Otherwise, my recommended solution is to use tcltk2 package.
Then:
library(tcltk)
tt<-toplevel(width=100,height=100)
submit<-function(){
print(tkget(input.text,"0.0","end"))
tkdestroy(tt)
}
input.text<-tktext(tt,width=100)
submit.bt<-tkbutton(tt,text="submit",command=submit)
tkpack(input.text, submit.bt)