Displaying 20 results from an estimated 500 matches similar to: "Shiny App inside R Package"
2017 Sep 21
3
Add wrapper to Shiny in R package
Dear List,
I'm trying to add a function that calls a Shiny App in my R package. The
issue is that within my function, I'm creating objects that I'd like to
pass to the app. For instance, from the example below, I'm getting
"Error: object
'xs' not found". How can I pass "xs" explicitly to shinyApp()?
*Under R directory:*
myApp <- function(x, ...) {
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 =
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
2024 Jun 06
2
R Shiny Help - Trouble passing user input columns to emmeans after ANOVA analysis
Hello everybody,
I have experience coding with R, but am brand new to R Shiny. I am trying
to produce an application that will allow users to upload their own
dataset, select columns they want an ANOVA analysis run on, and generate
graphs that will allow users to view their results. However, I am getting
the following error: *"Argument is of length zero."*
Being new to Shiny, I am
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
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]]
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
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",
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
2015 Feb 05
3
Rcurl crash in R-devel
Hello,
I don't know if the problem originates from R-devel 3.2 or Rcurl itself.
I post this message to the R-devel list and to the author of RCurl
(duncan at r-project.org).
> library("RCurl")
Le chargement a n?cessit? le package : bitops
> print(sessionInfo())
R Under development (unstable) (2015-02-03 r67717)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under:
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:
2020 Nov 07
0
[R] Data Table not rendering properly using R shiny
Hello,
Or maybe
logical_idx <- max_usage_hours_per_region$Region %in% input$Region
Another option is ?match
Hope this helps,
Rui Barradas
?s 15:41 de 07/11/20, Jeff Newmiller escreveu:
> This looks odd...
>
> max_usage_hours_per_region[input$Region,]
>
> This would only work if you had rownames on that data frame corresponding to the names of the Regions. This is a
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.
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