Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to turn the most basic app into a standalone application using Photon #24

Open
LucteMarvelde opened this issue Jul 25, 2020 · 4 comments

Comments

@LucteMarvelde
Copy link

Hi,
I am really excited to see Photon's abilities (I first saw Shiny meets electron talk by Katie, and realised Photon is your latest method)! I have struggled for a long time to share my apps.

To test Photon, I did the following:

  1. install node.js (works, tested 'npm' in CMD line, recognised)

  2. install git (works, tested 'git' in CMD line, recognised)

  3. install Photon using your instructions

  4. Open new basic shinyApplications: RStudio > File > New file > Shiny Web App... >>
    --> Name 'PhotonTestApp'
    --> multiple fFIle (ui.R/server.R)
    --> C:/ShinyApps
    Tested to see the app works, the basic Geyser data app.

  5. setwd("C:\ShinyApps\PhotonTestApp\")

  6. Launch Photon app builder
    --> Shiny App Directory: C:/ShinyApps/temp
    --> left default NULL in all three package inputs
    --> Build

I get the following error:

> photon:::photon_rstudioaddin()
Listening on http://127.0.0.1:3898
[1] "Selected directory: "
[1] "Selected directory: C:/ShinyApps/temp"
Running Photon
Warning in normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:\ShinyApps\temp/electron-quick-start": The system cannot find the file specified

I see that a directory was created: C:\ShinyApps\temp\electron-quick-start\ with a hidden .git directory which is empty.

Some additional info:

sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] shiny_1.5.0

loaded via a namespace (and not attached):
[1] Rcpp_1.0.5 rstudioapi_0.11 magrittr_1.5 xtable_1.8-4 R6_2.4.1 rlang_0.4.7 fastmap_1.0.1 stringr_1.4.0 tools_3.6.3
[10] photon_0.0.1 miniUI_0.1.1.1 withr_2.2.0 htmltools_0.5.0 shinyFiles_0.8.0 ellipsis_0.3.1 digest_0.6.25 tibble_3.0.3 lifecycle_0.2.0
[19] crayon_1.3.4 later_1.1.0.1 vctrs_0.3.2 promises_1.1.1 fs_1.4.2 rsconnect_0.8.16 glue_1.4.1 mime_0.9 stringi_1.4.6
[28] compiler_3.6.3 pillar_1.4.6 shinyBS_0.61 jsonlite_1.7.0 httpuv_1.5.4 pkgconfig_2.0.3

Any help greatly appreciated!

Regards,
Luc

@LucteMarvelde LucteMarvelde changed the title Photon does not work Attempt to turn the most basic app into a standalone application using Photon Jul 25, 2020
@freyja-bt
Copy link

freyja-bt commented Jul 30, 2020

Having the same problem

R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:

[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

@mspandel
Copy link

mspandel commented Jul 31, 2020

Hi there,

i had the same issue.

Warning in normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:\ShinyApps\temp/electron-quick-start": The system cannot find the file specified

The problem is that the path is wrong. It should be path[1]="C:/ShinyApps/temp/electron-quick-start"

The solution I found: #22

@StanWijn
Copy link

StanWijn commented Aug 6, 2020

I have the exact same problem.
@mspandel Thank you for the suggested fix. However, I think my winslash is not in the right position. Do you mind creating a pull request with the implemented fix?

EDIT: Thank you for the rapid response!

@AMillanFL
Copy link

Hi,

I have the same problem.
I try the winslash changing solution from #22 with no success. The path is now good but photon still refuse to build.
Is there a link with the last UI modifications ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants