COVAIL / photon

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

Doesn't work on Mac #37

Open vijayhrdm opened 3 years ago

vijayhrdm commented 3 years ago

Here is what I did.

Created a shiny app on my Mac. It has an App.R file that calls ui.r and server.r files. Everything works as it should. Installed photon from CRAN. Opened the shinypp project in R studio Ran this command: photon:::photon_rstudioaddin() It showed this output. Listening on http://127.0.0.1:6235 (I selected directory where my app is. Inside this directory photon pulled in a directory named 'electron-quick-start') [1] "Selected directory: " [1] "Selected directory: /Volumes/DATA/ShinyApps/cttinshiny"

Running Photon Warning in normalizePath(file.path(input_path, "R-Portable-Mac")) : path[1]="/Volumes/DATA/ShinyApps/cttinshiny/R-Portable-Mac": No such file or directory sh: line 0: cd: /Volumes/DATA/ShinyApps/cttinshiny/R-Portable-Mac: No such file or directory sh: ./R: No such file or directory Warning: Error in system: error in running command 3: shiny::runApp 2: shiny::runGadget 1: photon:::photon_rstudioaddin

Warning message: In if (getAttribs(panels[[i]])$value %in% open) { : the condition has length > 1 and only the first element will be used

What am I doing wrong?

abjeroen commented 3 years ago

Same issue here: Listening on http://127.0.0.1:5642 [1] "Selected directory: " [1] "Selected directory: /Users/jeroen/Lokaal/R/projects/electronapp/test" Running Photon Warning in normalizePath(file.path(input_path, "electron-quick-start")) : path[1]="/Users/jeroen/Lokaal/R/projects/electronapp/test/electron-quick-start": No such file or directory Warning: Error in system2: error in running command 3: shiny::runApp 2: shiny::runGadget 1: photon::photon_rstudioaddin Warning message: In if (getAttribs(panels[[i]])$value %in% open) { : the condition has length > 1 and only the first element will be used

michelsara commented 2 years ago

Got same issue here, did you find a way to solve it?

Listening on http://127.0.0.1:4030 [1] "Selected directory: " [1] "Selected directory: /Users/sara/Documents/Github/ActiSleep" Running Photon Warning in system2("npm", args = "list -g electron-packager", stdout = TRUE, : running command ''npm' list -g electron-packager 2>&1' had status 1 Warning in system2("npm", args = "install electron-packager -g", stdout = TRUE, : running command ''npm' install electron-packager -g 2>&1' had status 243 Warning in system2("npm", args = "list -g electron-packager", stdout = TRUE, : running command ''npm' list -g electron-packager 2>&1' had status 1 Warning in system2("git", args = "--version", stdout = TRUE, stderr = TRUE) : running command ''git' --version 2>&1' had status 69 Warning in normalizePath(file.path(input_path, "R-Portable-Mac")) : path[1]="/Users/sara/Documents/Github/ActiSleep/R-Portable-Mac": No such file or directory sh: line 0: cd: /Users/sara/Documents/Github/ActiSleep/R-Portable-Mac: No such file or directory sh: ./R: No such file or directory Warning: Error in system: error in running command 3: shiny::runApp 2: shiny::runGadget 1: photon:::photon_rstudioaddin Warning message: In if (getAttribs(panels[[i]])$value %in% open) { : the condition has length > 1 and only the first element will be used