How to pack scripts running as child processes in an Electron application?

My Electron application runs R-scripts with the module child_process. There are no problems in development. When the application is built (using electron-packager), R scripts are not found. In the application folder they are located at assets/rscripts.

What is the best way to package these scripts in an embedded application? I believe that this applies to any scenarios or assets that are not directly related to the functioning of the application itself.

+4
source share

All Articles