COVAIL / photon

RStudio Add-in to build Shiny apps utilizing the Electron framework
125 stars 25 forks source link

Problem creating an app #22

Closed mspandel closed 4 years ago

mspandel commented 4 years ago

Hello,

I try to create my first standalone app using photon. During the creation process i get the following error message: Running Photon Der Befehl "C:\Users\Spandel\Desktop\Test" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Warning in shell(sprintf("%s/R.exe --file=%s/install_packages.R -q --slave --args cran_packages %s github_packages %s bioc_packages %s", : 'C:\Users\Spandel\Desktop\Test Standalone\Test\electron-quick-start\R-Portable-Win\bin/R.exe --file=C:\Users\Spandel\Desktop\Test Standalone\Test\electron-quick-start\R-Portable-Win\bin/install_packages.R -q --slave --args cran_packages ggplot2 github_packages NULL bioc_packages NULL' execution failed with error code 1

I am wondering why the path is written with "\ ". I guess that is the problem. Anyone can tell me how I can fix this? Do you need any more information?

Thanks in advance.

Michael

mspandel commented 4 years ago

If anyone has the same issue, I found a solution.

  1. download the photon package from here manually
  2. open the startFun.R in the R folder
  3. add a winslash = "/" to all NormalizePath calls
  4. install the changed photon version manually