My Electron app launches R scripts with the child_process
module. In development, no problem. When the application is built (using electron-packager
), the R scripts are not found.
In the app folder, they're located in assets/rscripts
.
What is the best way to package these scripts in the built app? I believe this applies for any kind of scripts or assets not directly related to the functioning of the app itself.
RScript
path)? – Automotive