Skip to content

Biostatistical app for clinicopathological and histopathological research based on R and Electron

License

Notifications You must be signed in to change notification settings

sbalci/clinicopathological

Repository files navigation

Clinicopathological Data Analysis using R, shiny, and electron

CodeQL Gitpod Ready-to-Code Launch Rstudio Binder

https://zenodo.org/account/settings/github/repository/sbalci/clinicopathological

https://osf.io/4ukc6/

See:

https://sbalci.github.io/histopathology-template/

https://serdarbalci.gitbook.io/parapathology/computers/computers#deploying-a-shiny-app-as-a-desktop-application-with-electron


set PYTHONPATH for npm

npm config set python /usr/bin/python3

https://www.npmjs.com/package/node-gyp

npm install -g electron
  • install Electron Forge
npm install -g electron-forge
  • open folder with terminal
cd r-shiny-electron-master
  • npm install
npm install
  • install local R

update R version in get-r-mac.sh file

./get-r-mac.sh
  • install packages
Rscript add-cran-binary-pkgs.R
  • run app
npm start
  • make package
electron-forge package
  • make portable app
electron-forge make

R shiny and electron

This is a work in progress template for R shiny and electron integration

NOT FOR PRODUCTION

Quickstart

  • Clone
  • npm install
  • Download mac binaries ./get-r-mac.sh
  • Download shiny Rscript add-cran-binary-pkgs.R
  • npm start

Contribute

If you like to contribute, please take a look at the issues. It is all work in progress and early stage but ideas and code is always welcome. Ideally please make an issue before you send a larger PR.

App

The app currently starts with a loading screen while trying to start the shiny app as a seperate process. If successful, it will switch to the shiny app once it is loaded. If not successful after 3 trys and error is shown.

References