-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.R
42 lines (29 loc) · 956 Bytes
/
server.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
options(encoding = "UTF-8")
library(shiny)
# thank you for rbokeh but it seems on stand by and old:
# library(rbokeh)
#
# thank you for shiny.router but it seems on stand by and old:
# library(shiny.router)
#
library(shinyjs)
library(tidyverse)
library(RJSONIO)
library(rjson)
library(reticulate)
library(gtools)
options(error = NULL)
if (interactive()) {
# in RStudio
options( error = function() {.rs.recordTraceback(TRUE,minDepth=1,.rs.enqueueError)})
}else {
# in Shiny-Server
options( error = function() {traceback() })
}
reticulate::use_condaenv("rshiny_bokeh_reticulate", required = TRUE)
shinyServer(function(input, output, session) {
react <- reactiveValues(
var_session_param =list(x = as.double(0), y = as.double(0), HistoryArray = list(list(x = NA_real_, y = NA_real_)))
)
source ("ui_server_rshiny/server_rshiny/RshinyBokehReticulatePOC_server_rshiny.R", local = TRUE)
})