lawalter / r-shiny-electron-app Goto Github PK
View Code? Open in Web Editor NEW:memo: Guide to desktop app creation using R Shiny and Electron
License: MIT License
:memo: Guide to desktop app creation using R Shiny and Electron
License: MIT License
Hi.
Thanks for putting this together. I've been trying to set up my shiny app for mac using your method for a few hours now and I've gotten stuck.
When I try and run the get-r-mac.sh it downloads 88 MB worth of files but I'm left with .pkgs not what should be there.
I'm assuming that's limiting function of the Rscript add-cran-binary-pkgs.R because I get a bunch of warnings that the packages weren't found whenever I run that in the R terminal.
Also... I have laundry list of required packages for my app to run, do you think that's a problem? How do I ensure that all packages are available for my shiny app to eventually use in the electron framework?
Thanks again!
Hello,
I have been trying to convert an R Shiny app into an electron app for Mac. I tried using the instructions with R 4.1.0 in Mojave (10.14).
I stuck with npm 6.13.7 and node 13.9.0. I have installed, and unpacked the R folder using the get-r-mac.sh script (with minor edits to refer to the right files) and installed all the dependency R packages.
When I try electron-forge start, the app starts and works file. But, when I try to package it, I get the error
An unhandled rejection has occurred inside Forge:
ENOENT: no such file or directory, stat '/Users/mojave/.../r-mac/R.framework/Versions/4.1/R'
Error: ENOENT: no such file or directory, stat '/Users/mojave/.../r-mac/R.framework/Versions/4.1/R'
package.json
{
"name": "ryabhatta",
"productName": "ryabhatta",
"version": "1.0.0",
"description": "My Electron application description",
"main": "src/index.js",
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
"publish": "electron-forge publish",
"lint": "eslint src --color"
},
"keywords": [],
"author": "mojave",
"license": "MIT",
"config": {
"forge": {
"packagerConfig": {},
"makers": [
{
"name": "@electron-forge/maker-squirrel",
"config": {
"name": "ryabhatta"
}
},
{
"name": "@electron-forge/maker-zip",
"platforms": [
"darwin"
]
},
{
"name": "@electron-forge/maker-deb",
"config": {}
},
{
"name": "@electron-forge/maker-rpm",
"config": {}
}
]
}
},
"dependencies": {
"axios": "^0.21.4",
"electron-squirrel-startup": "^1.0.0",
"esm": "^3.2.25",
"execa": "^5.1.1"
},
"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/plugin-transform-async-to-generator": "^7.14.5",
"@babel/preset-env": "^7.15.6",
"@babel/preset-react": "^7.14.5",
"@electron-forge/cli": "^6.0.0-beta.61",
"@electron-forge/maker-deb": "^6.0.0-beta.61",
"@electron-forge/maker-rpm": "^6.0.0-beta.61",
"@electron-forge/maker-squirrel": "^6.0.0-beta.61",
"@electron-forge/maker-zip": "^6.0.0-beta.61",
"electron": "14.0.1",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"fs-extra": "^10.0.0"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.