Example of Conda installatio for Linux:
curl https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh -o Anaconda3-2021.05-Linux-x86_64.shBash shell example for Linux
cd
bash Anaconda3-2021.05-Linux-x86_64.sh
anaconda3/bin/conda create --name rshiny_bokeh_reticulate
conda activate rshiny_bokeh_reticulate
conda install -c anaconda bokehSh shell example for Linux
sudo su shiny
cd
/bin/sh Anaconda3-2021.05-Linux-x86_64.sh
. anaconda3/etc/profile.d/conda.sh
conda create --name rshiny_bokeh_reticulate
conda activate rshiny_bokeh_reticulate
conda install -c anaconda bokeh
- https://www.rstudio.com/products/shiny/download-server/
- https://www.rstudio.com/products/rstudio/download-server/
Install the packages corresponding to library() at the top of ui.R et server.R
To debug session$registerDataObj() (Ajax in R Shiny) in internet browser (F12)
var req = new XMLHttpRequest();
req.overrideMimeType("application/json");apps is your PATH to Shiny Server Application
req.open("POST", "http://192.168.1.XXX:3838/apps/RshinyBokehReticulatePOC/"+api_bokehinlinejs_ajax_url, true)req.open("POST", "http://192.168.1.XXX/shiny/apps/RshinyBokehReticulatePOC/"+api_bokehinlinejs_ajax_url, true)In "open in internet browser" mode, where YYYY is the web service part of the url given by Rstudio
req.open("POST", "http://192.168.1.XXX:8787/p/YYYY/"+api_bokehinlinejs_ajax_url, true)Put a breakpoint browser() in R file
session$registerDataObj(
[..]
filter = function(data, req) {
shiny:::httpResponse(
200, "application/json",
{
browser()
`and send the request in the internet browser
req.send()
var jsonResponse = JSON.parse(req.responseText); var req = new XMLHttpRequest();
req.overrideMimeType("application/json");apps is your PATH to Shiny Server Application
req.open("POST", "http://192.168.1.XXX:3838/apps/RshinyBokehReticulatePOC/"+api_datasinus_ajax_url+'&operation=increment', true)req.open("POST", "http://192.168.1.XXX/shiny/apps/RshinyBokehReticulatePOC/"+api_datasinus_ajax_url+'&operation=increment', true)In "open in internet browser" mode, where YYYY is the web service part of the rstudio given by Rstudio
req.open("POST", "http://192.168.1.XXX:8787/p/YYYY/"+api_datasinus_ajax_url+'&operation=increment', true)Put a breakpoint browser() in R file
session$registerDataObj(
[..]
filter = function(data, req) {
shiny:::httpResponse(
200, "application/json",
{
browser()and send the request in the internet browser
req.send()
var jsonResponse = JSON.parse(req.responseText);