Rstudio 1.2.1030 crashing with shiny and reticulate

shiny
bug
rstudio
reticulate

#1

When hosting a shiny app (using reticulate) with the new dev RStudio, I have noticed that I cannot terminate the process - I have to restart R. Pressing Esc or clicking the STOP button both do not work.

Minimal example;

library(shiny)
library(reticulate)

ui <- fluidPage(
  textOutput("pythonout")
)

server <- function(input, output, session) {
  output$pythonout <- renderText({
    os <- import("os")
    os$getcwd()
  })
}

shinyApp(ui, server)

My session info;

> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] reticulate_1.10 shiny_1.1.0    

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.17    lattice_0.20-35 digest_0.6.15   later_0.7.3     mime_0.5        grid_3.5.1     
 [7] R6_2.2.2        xtable_1.8-2    jsonlite_1.5    magrittr_1.5    promises_1.0.1  Matrix_1.2-14  
[13] tools_3.5.1     httpuv_1.4.4.2  compiler_3.5.1  htmltools_0.3.6

RStudio version 1.2.1030


#2

Thanks for the bug report! I'm seeing this as well; we'll try to take a look.


#3

This should be fixed up in the next daily builds and you should also see the fix when we re-up the preview. Thanks for reporting!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.