项目作者: sbalci

项目描述 :
Biostatistical app for clinicopathological and histopathological research based on R and Electron
高级语言: R
项目地址: git://github.com/sbalci/clinicopathological.git
创建时间: 2019-12-15T13:44:17Z
项目社区:https://github.com/sbalci/clinicopathological

开源协议:MIT License

下载


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

  1. npm config set python /usr/bin/python3

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

Deploying a Shiny app as a desktop application with Electron

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

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

  1. ./get-r-mac.sh
  • install packages
  1. Rscript add-cran-binary-pkgs.R
  • run app
  1. npm start
  • make package
  1. electron-forge package
  • make portable app
  1. 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