similar to: Add wrapper to Shiny in R package

Displaying 20 results from an estimated 600 matches similar to: "Add wrapper to Shiny in R package"

2017 Sep 21
0
Add wrapper to Shiny in R package
Dear Axel, I've used environment for such problems. assign("xs", xs, envir = my.env) in the myApp function get("xs", envir = my.env) in the server function Best regards, ir. Thierry Onkelinx Statisticus/ Statiscian Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie &
2017 Sep 21
1
Add wrapper to Shiny in R package
Thank you Thierry. I'm trying to following your suggestion in the example below, but getting: Error in get("xs", envir = my.env) : object 'my.env' not found. library(shiny) library(shinydashboard) myApp <- function(x, ...) { xs <- scale(x) my.env <- new.env() assign("xs", xs, envir = my.env) shiny::runApp(app) } app = shinyApp( ui =
2017 Sep 17
2
Shiny App inside R Package
Dear List, I have a wrapper function that creates a Shiny App, as illustrated below. I'd like to include the function myApp() inside a package. I'd appreciate your guidance here, as I could not find good instructions on this online. myApp <- function(x) { require(shiny) shinyApp( ui = fluidPage( sidebarLayout( sidebarPanel(sliderInput("n",
2018 Mar 04
2
problema con shiny
Carlos el código es el ejemplo de shiny: # # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # #setwd("C:/curso 2017-18/curso R/shiny/prueba1") library(shiny) # Define UI for application that draws a histogram ui <-
2017 Oct 18
1
dygraphs, multiple graphs and shiny
Hi All: This is really getting into the weeds, but I am hoping someone will have a solution. I am trying to use dygrahs for R, within Shiny. The situation arises when I am combining a number of dygraphs into one plot. If I am just in an RNotebook, if you look at: https://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r the solution to have the plot shown from a
2018 Mar 05
2
problema con shiny
De acuerdo Carlos pero en mi ordenador no funciona y me da el error que he comentado. Muchas gracias por tu colaboración. Saludos, Juan El 04/03/2018 a las 20:09, Carlos J. Gil Bellosta escribió: Corre perfectamente en mi máquina si borro la última línea (print(environment(show))). Simplemente, he creado un directorio vacío (/tmp/prueba), he copiado el código (menos esa última línea) en el
2018 Mar 04
4
problema con shiny
Estimados compañeros tengo un problema con shiny. Es un problema local de mi ordenador, porque en otro va si problemas pero no consigo saber ¿cómo arreglarlo?. He instalado incluso la nueva versión de Rstudio. Os explico: 1) lanzo el programa app.R, el ejemplo de shiny e intenta mostrar los resultados pero si hago: print(environment(show)) da como resultado Error in func(fname, ...) : app.R did
2017 Jun 24
0
Fwd: Widgets under renderUI Shiny
Hi All, I am not sure if this is a relevant platform to ask but I have tried other more related platforms and haven't had any luck so i thought i would try my luck here. Basically I want to generate a selectInput widget with a conditional under renderUI in Shiny. The number of widgets generated will depend on the number of variables a user selects. Try as I may I have not been able to get
2018 Feb 21
2
Ejecutar shinyapp sin abrir Rstudio
Buenas, Se puede,en local, crear una shinyapp que se abra pinchandodirectamente sobre un icono del escritorio? Gracias Jes?s [[alternative HTML version deleted]]
2020 Nov 07
4
Data Table not rendering properly using R shiny
Hi All, I have a data output as below.I want to display them in an interactive html report using shiny but the data table is not rendering properly and instead giving NA values. max_usage_hours_per_region<-setNames(aggregate(df3_machine_region$sum_as_hours~df3_machine_region$Region,df3_machine_region,max),c("Region","Sum_as_Hours")) Region Sum_as_Hours 1 Africa 1156.0833
2020 Nov 07
4
Data Table not rendering properly using R shiny
Hi All, I have a data output as below.I want to display them in an interactive html report using shiny but the data table is not rendering properly and instead giving NA values. max_usage_hours_per_region<-setNames(aggregate(df3_machine_region$sum_as_hours~df3_machine_region$Region,df3_machine_region,max),c("Region","Sum_as_Hours")) Region Sum_as_Hours 1 Africa 1156.0833
2018 Mar 05
2
problema con shiny
Hola Miguel-Ángel esa instrucción la he puesto para que no me haga el break y se reinicie RStudio. Si quito esa instrucción y hago que se pase la salida al wiewer panel de Rstudio me aparece el mismo error pero además se aborta la sesión de RStudio y con la instrucción lo que cambia es que no aborta la sesión. Muchas gracias, Juan El 05/03/2018 a las 8:49, miguel.angel.rodriguez.muinos en
2018 Mar 05
2
problema con shiny
Muchas gracias Miguel-Ángel por tus explicaciones, pero empezando por el final digo reinicia pero en realidad es que se aborta el proceso. Independiente de la instrucción print la cuestión es que el programa en mi ordenador aborta siempre de forma independiente que lo haga en wiewer externa, interna o "medio-pensionista". Sin embargo en otro ordenador que tengo con windows 10 y R de 32
2018 Mar 05
3
problema con shiny
Muchas gracias Miguel-Ángel he probado la opción de la consola de R y sigue el problema, en este caso intenta mostrar en la pantalla del navegador la salida del programa pero se cierra R, supongo por tanto que se aborta el proceso. Saludos, Juan El 05/03/2018 a las 13:23, miguel.angel.rodriguez.muinos en sergas.es escribió: > Y si lo haces desde fuera de RStudio? > > Es decir, desde
2018 Nov 21
2
Promises Future en shiny no me funciona
Buenas, Estoy intentando que al ejectuar un boton en shiny me cargue de manera asincrona dos consultas. Una es a una consulta sql pesada (tarda 10 segundos) y la otra es una sql ligera (tarda 0 segundos). Intento que el resultado de la consulta ligera se muestre mientras se espera al resulatdo de la consulta pesada, pero no lo consigo. Estoy usando promises con future, en linux, pero no me
2018 Feb 23
0
Mapedit::selectMap in shiny map.
I would like to select polygons from an existing spatial polygon data set interactively in a shiny leaflet map. The process is straightforward in leaflet/ mapedit, however I need to include the procedure in a shiny app map interface. I cannot work out how to incorporate the selectMap() in the shiny app. An error is returned: Here is some toy code showing the code in using leaflet locally:
2016 Jun 22
3
Shiny
Estoy trabajando generando mapas a partir de un conjunto de datos. No puedo encontrar la forma de manipular el tamaño de los mapas. He buscado en páginas de Shiny y no pude encontrar una solución ¿Alguien me puede orientar? No he puesto una imagen para no recargar el servidor de correo. Saludos y gracias -- Eduardo [[alternative HTML version deleted]]
2019 Oct 07
0
Changing HTML Error code message
Hello, I'm relatively new to using R and shiny. Currently, I'm getting the Error: Conflict (HTTP 409) when trying to access an html file from dropbox and this is fine, I know the reason. What I do have a problem with is trying to find a way to change Error code message. Instead of simply "Error: Conflict (HTTP 409)", I would a message a client might be able to understand.
2013 Oct 07
1
Color font in verbatim text output in Shiny
Hello! Is there any way to change the colors (and other characteristics) of the font that is being used by Shiny when the ui.r code hase some verbatimTextOutput? For example, I am producing 2 outputs in two tabs. mainPanel( tabsetPanel( tabPanel("Output 1", verbatimTextOutput("myoutput1")), tabPanel("Output 2",
2015 Aug 26
2
declaring dependencies of shiny app in inst/
Dear all, I have a package implementing a shiny app, putting the R code of the app (server.R and ui.R) in inst/... and then having a simple function merely starting the app with something along the lines of: runApp(system.file("inst/...")) However, the app itself uses functions from packages which are not used elsewhere in the code. What is the best way to declare these dependencies