Giter VIP home page Giter VIP logo

photon's Introduction

please note: Photon doesn't work with any package that has to be compiled; where the binaries are not fully available (without compiling). The reason is that that would require management of the temporary directory for libPath to be used for compiling packages and that needs to be changed in the bash script that launches R. We haven't had time to try to address this issue in photon (in the bash scripting).

Photon Package

Photon is an R package that contains an RStudio add-in miniUI that builds a Photon application. Photon builds standalone Shiny app by leveraging the Electron framework in Mac OS and Windows operating systems. This package clones the Columbus Collaboratory electron-quick-start repository which is forked to the electron-quick-start git repository plus Mac and Windows R portables. Photon will be extended to Linux in the near future. This work is still under development.

Requirements

  1. git
  2. Node.js -- this comes with npm

Usage

remotes::install_github("ColumbusCollaboratory/photon")
library(photon)

Invocation of the miniUI display can be done in two ways:

  1. Use the function photon::photon_rstudioaddin() in R.
  2. In RStudio -- click Tools > Addins > Browse Addins. Look for "photon" and select it. Click "Execute".

Installing Packages

The Mac and Windows R Portables currently come many pre-loaded packages that were selected by popularity. If additional packages (currently only CRAN and Bioconductor packages work; GitHub coming soon) are required, users can enter in a comma-separated string containing the package names of interest in the miniUI. These packages will install the packages to the relative version of R portable that will be subsequently packaged in to an Electron standalone application.

If no packages are needed to install, type NULL as the entry for those specific repositories.

Issues

Please submit a pull request for issues related to this package.

References

2019 slides and presentation https://www.user2019.fr/static/pres/lt257916.pdf https://youtu.be/Dn9VRUBFvyc?t=1167

Older 2018 version https://github.com/ksasso/useR_electron_meet_shiny/blob/master/electron_slides.Rmd https://www.youtube.com/watch?v=ARrbbviGvjc https://www.youtube.com/embed/O56WR-yQFC0 https://www.youtube.com/embed/hZXlgdNOqwA https://www.youtube.com/embed/HDokkYmJKCk

Contact

For photon questions contact [email protected]
For questions about the implementation of Electron, Chromium or node.js contact [email protected]
For questions about the R portable contact [email protected]

photon's People

Contributors

aarizvi avatar ahcyip avatar cbuscollaboratory avatar petegordon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

photon's Issues

Photon includes old R3.5.0 builds

Source package installs fail, and binary package installs are all currently on R3.5.2 so they fail too. I started R on the command line in R-Portable-Mac directory forced binary mode and ignored version warnings to manually install needed packages and managed to get npm start to work and bring up my app.

Typo in start.R -- electorn instead of electron

photon 0.0.1

  1. Create default Shiny app.R file via RStudio.
  2. Run photon::photon_rstudioaddin().
  3. electron-quick-start directory is created.

electron-quick-start/start.R has the following:

setwd("./electorn-quick-start/R-Portable-Mac")

Note the use of "electorn" instead of "electron".

Doesn't work on Mac

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?

Photon includes old electron build

The latest version of npm doesn't seem to work with the old version of electron that was forked by photon a few years ago. So npm start works for my app, but npm run package-mac doesn't generate a working electron package. It starts but is blank.

photon install error windows 10 64 bit

Downloading GitHub repo wasimaftab/networkD3@master
Installing package into 'C:/Users/W.Aftab/Documents/R/win-library/4.0'
(as 'lib' is unspecified)

  • installing source package 'networkD3' ...
    ** using staged installation
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error in inDL(x, as.logical(local), as.logical(now), ...) :
    unable to load shared object 'C:/Users/W.Aftab/Documents/R/win-library/4.0/Rcpp/libs/x64/Rcpp.dll':
    gLoadLibrary failure: The specified procedure could not be found.
    gCalls: ... asNamespace -> loadNamespace -> library.dynam -> dyn.load -> inDL
    gExecution halted
    gERROR: lazy loading failed for package 'networkD3'
    g* removing 'C:/Users/W.Aftab/Documents/R/win-library/4.0/networkD3'
    g* restoring previous 'C:/Users/W.Aftab/Documents/R/win-library/4.0/networkD3'
    gError: Failed to install 'networkD3' from GitHub:
    g (converted from warning) installation of package 'C:/Users/WB28F~1.AFT/AppData/Local/Temp/RtmpSSETZL/remotes173420e626a5/wasimaftab-networkD3-3380b8a' had non-zero exit status
    g Execution halted
    g Warning in shell(sprintf("%s/R.exe --file=%s/install_packages.R -q --slave --args cran_packages %s github_packages %s bioc_packages %s", :
    g 'C:\Users\W.Aftab\Desktop\DeltaBESS\Rshiny2Electron\electron-quick-start\R-Portable-Win\bin/R.exe --file=C:\Users\W.Aftab\Desktop\DeltaBESS\Rshiny2Electron\electron-quick-start\R-Portable-Win\bin/install_packages.R -q --slave --args cran_packages shinydashboard,shinydashboardPlus,shinyWidgets,shinymanager,dplyr,DT,readxl github_packages wasimaftab/networkD3 bioc_packages NULL' execution failed with error code 1

      > [email protected] postinstall C:\Users\W.Aftab\Desktop\DeltaBESS\Rshiny2Electron\electron-quick-start\node_modules\electron
      > node install.js
    
      added 148 packages from 139 contributors and audited 148 packages in 10.822s
      found 5 low severity vulnerabilities
        run `npm audit fix` to fix them, or `npm audit` for details
    
        > [email protected] package-win C:\Users\W.Aftab\Desktop\DeltaBESS\Rshiny2Electron\electron-quick-start
        > electron-packager . --overwrite --platform=win32 --arch=ia32 --icon=cc.ico --out=ElectronShinyAppWindows --version-string.CompanyName=ColumbusCollaboratory --version-string.FileDescription=CE --version-string.ProductName="Shiny Electron App"
    
        'electron-packager' is not recognized as an internal or external command,
        operable program or batch file.
        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! [email protected] package-win: `electron-packager . --overwrite --platform=win32 --arch=ia32 --icon=cc.ico --out=ElectronShinyAppWindows --version-string.CompanyName=ColumbusCollaboratory --version-string.FileDescription=CE --version-string.ProductName="Shiny Electron App"`
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the [email protected] package-win script.
        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
        npm ERR! A complete log of this run can be found in:
        npm ERR!     C:\Users\W.Aftab\AppData\Roaming\npm-cache\_logs\2020-05-28T16_09_15_149Z-debug.log
        Warning in shell(sprintf("cd %s && npm run package-win", electron_win_dir)) :
          'cd C:/Users/W.Aftab/Desktop/DeltaBESS/Rshiny2Electron/electron-quick-start && npm run package-win' execution failed with error code 1
    
          Warning message:
          In if (getAttribs(panels[[i]])$value %in% open) { :
            the condition has length > 1 and only the first element will be used
    

Don't work for R 4.0.3

package ‘photon’ is not available for this version of R

version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

Thanks

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

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

R 4.0?

Hi guys!
First of all: Amazing work you've put in here!

As I have migrated all my projects, inculding Shiny apps, over to R 4.0 and I can't make it work with photon. However, I would love to have the option of still turning them into desktop apps. Are you considering upgrading to 4.0? And if so, do you have an idea of what the timeline looks like?
Really hope to see that version.

Cheers, and thanks for the great work so far.

App size

Hello,

I was wondering whether there is a way to decrease the app size? I was playing around with a simple histogram app and the executable (in darwin x-64) came in at 1,2GB... I know these stand alone apps can never be very lightweight but is it possible to decrease the file size at least a bit? Thanks!

Warning in shell (sprintf.... ) ~ ~ I have done the manual copy of electron quick start

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\sbrownsey\Documents\Batch_testing\Attempt1\app\electron-quick-start\R-Portable-Win\bin/R.exe --file=C:\Users\sbrownsey\Documents\Batch_testing\Attempt1\app\electron-quick-start\R-Portable-Win\bin/install_packages.R -q --slave --args cran_packages shinythemes, tidyverse, RODBC github_packages NULL bioc_packages NULL' execution failed with error code 1
audited 148 packages in 0.974s

Seems to me that the / before R.exe and isntall_packages seems to be the issue but I could be wrong

Error in system: 'cd' not found

Hi,
keep getting the following error message every time I try to create a photon app.
Using R 3.5.3 and the default "old faithfull" shiny app.
Both git and node.js are installed on the system.

Listening on http://127.0.0.1:5510
Running Photon
The directory is ...
Warning: Error in system: 'cd' not found
  76: system
  75: photon::startFun
  74: observeEventHandler
   3: shiny::runApp
   2: shiny::runGadget
   1: photon:::photon_rstudioaddin

App runs with blank screen.

I have used Photon to build the quick start app, but when I run the resulting .exe, the window opens with the circling orange thing, then flashes for a microsecond, then goes blank.

I thought maybe it was an issue with the quick-start app, so I tried the same by making an app.R out of the first example: https://shiny.rstudio.com/articles/basics.html

Same thing.

If I go within the resources folder of the resulting app to the R project and app etc that gets built, and manually run the app from there, it works fine. So, then I looked at the developer tools from the open (blank) instance of the .exe and see a completely blank frame:

image

Seems like the .exe isn't loading what it should.

Any ideas? Oh, Windows 10, btw. I do get some warnings during building about certain libraries being built under R 4.0.0 (e.g. purrr, sringr, magrittr, batch), which is weird as I don't know why it's saying that - I assume it's using those from my personal library, but the app I'm building isn't using them, I'm on 4.0.1, I'm not autoloading them with an .RProfile file, and they're not in the R-Portable library provided. I have no idea why it's loading them!

ShinyBS dependency

On a fresh install of R and RStudio, after installing the package (from github), the dependency "ShinyBS" is not automatically installed

Photon error after installation

Hello, I tried to use photon on my Mac by both approaches
In RStudio -- click Tools > Addins > Browse Addins. Look for "photon" and select it. Click "Execute".
and
photon:::photon_rstudioaddin()

But got following error:

Error in if (getAttribs(panels[[i]])$value %in% open) { : 
  the condition has length > 1

Could you please let me know what's potential issue?

Issue reading Bioconductor package

Hi, we're using Photon and it's working with R packages. However, there is an issue with ComplexHeatmap for Bioconductor (we tried entering it in the Bioconductor packages field). Is there a way to fix this? Thank you!

Warning: Error in system2: '"git"' not found

I know this most likely isn't an issue with the package. The first time I ran the package I didn't get this error. However I've started to now get this error. It seems that photon isn't finding git on my system? I reinstalled git, restarted R and still get the same error.

The error occurs the moment I try to run the package with "create job". It occurs before anything is created with the package. Any advice on what this might be? I've been looking for a solid week for a package that can compile shiny, this is my last resort so hopefully I can get this working.

Thank you.

Error running Photon

Hi,

I have installed electron-quick-start, npm, node.js, and git in my Windows laptop (running on Windows 10 Pro). I followed the instructions on Photon, and used the command:

photon::photon_rstudioaddin()
This Font Awesome icon ('play-circle') does not exist:

  • if providing a custom html_dependency these name checks can
    be deactivated with verify_fa = FALSE

Listening on http://127.0.0.1:5897
[1] "Selected directory: "
[1] "Selected directory: C:/myShinyApp"
Running Photon
Warning: Error in system2: '"git"' not found
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

I tried to look through the issues here, but could not understand how I can resolve my issue. Can someone please help? Thanks.

Best regards,
Hweeling

Suggestion: locally compiled packages

Hi,

In addition to supporting GitHub packages, it would be very helpful if the add in could support local packages: ie providing a path for the package that can be built locally.

This may be very helpful in data analysis environments where internet access is not permitted (and of course solves the github issue indirectly since GitHub packages can be downloaded and built locally where a local package may not necessary be uploadable to GitHub).

Requesting a Progress Bar

While the app is being built, it is difficult to know if it is stuck or still in progress. I thought it was hanging because the first thing I see is:

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

But while I was looking for solutions, eventually I came back to it and it had continued to the rest. Then it seemed to hang at

Packaging app for platform win32 ia32 using electron v5.0.7
Wrote new app to ElectronShinyAppWindows\electron-quick-start-win32-ia32

But again, I'm not sure if it actually got stuck or if it was proceeding (and at what speed).

It would be great if there was some kind of progress bar or other information explaining that it's still in progress.

(Also that if you close the UI it will stop the process entirely.)

Github install skipping because SHA1 has not changed

Hello,

I'm having an issue installing a package from github and I get this error:

Skipping install of 'JLutils' from a github remote, the SHA1 (20eb88f0) has not changed since last install.
  Use `force = TRUE` to force installation
audited 200 packages in 1.178s
found 5 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

Here is my sessionInfo

> sessionInfo()
R version 3.6.3 (2020-02-29)
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    LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

other attached packages:
[1] stringr_1.4.0 shiny_1.4.0.2 photon_0.0.1 

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4.6     rstudioapi_0.11  magrittr_1.5     xtable_1.8-4     R6_2.4.1         rlang_0.4.5      fastmap_1.0.1    tools_3.6.3      miniUI_0.1.1.1  
[10] htmltools_0.4.0  shinyFiles_0.8.0 ellipsis_0.3.0   digest_0.6.25    tibble_3.0.1     lifecycle_0.2.0  crayon_1.3.4     later_1.0.0      vctrs_0.2.4     
[19] promises_1.1.0   fs_1.4.1         mime_0.9         stringi_1.4.6    compiler_3.6.3   pillar_1.4.3     jsonlite_1.6.1   httpuv_1.5.2     pkgconfig_2.0.3 

Is there any way to use force=TRUE or install from a local directory?

Problem creating an app

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

Could original data.RData be hiden in the new user folder after installation?

Thank you for creating photon package.
We have used photon package to package the application installer. After clicking the installation file, all the original files (original data.RData and serve.R code) of the program will be displayed in the new user folder after installation.
Now we have a new problem: we want to hide the original data.RData and serve.R code in the new user folder after installation. Could you please help us hide the original data.RData and serve.R code in the new user folder after installation. Thank you!

Pandoc Error for Rmarkdown::render()

Problem Description:

I'm trying to turn a simple app into an exe using your electron based framework.

After launching RStudio on the R-Portable-Win folder, the app is working fine. Except for the Rmarkdown reports generation function, the error is :

pandoc.exe: C:\Users\[user]\: openBinaryFile: does not exist (No such file or directory)

This error appears after the whole doc have been processed (.md file have been generated).

It seems that the R session cannot locate the pandoc.exe while when I type (in the same session):

rmarkdown::pandoc_version()
[1] ‘2.7.2’

and

Sys.getenv("RSTUDIO_PANDOC")
"C:\[installation folder]\\RStudio-1.2.5001\\bin\\pandoc"

so Pandoc is actually installed on my computer.

What I tried

💡 Setup a RSTUDIO_PANDOC variable in Rprofile

Sys.setenv(RSTUDIO_PANDOC = "C:/[path to app folder]/pandoc")
Sys.getenv("RSTUDIO_PANDOC")

Result: Same error

Questions

  • Do you have any experience on implementing document generation through rmarkdown and pandoc in an electron based shiny app ?
  • How can I attach pandoc.exe so the electron app can use it ?

(reproducible exemple is on the way)

Warning in normalizePath(path.expand(path), winslash, mustWork)

Hello,

I try to use photon but it seems to have problem to launch.
I'm on Windows 10, Rstudio 1.3.959 and R-4.0.0 (64 bits).
In a default and working shiny app project with no specific packages needed,
I call photon::photon_rstudioaddin(), the UI open and I chose the folder and click Build, then I get this error messages:

Warning in normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="C:\Users\myname\Documents\R-projects\elektron/electron-quick-start": specified file impossible to find 

The electron-quick-start folder is created but is empty and disappear when I close the UI window.

Do you have an idea of the problem ?
Is there a setup I need to change ?

Thanks

Plotly install problem

Hi,

Trying to convert a working shiny app to electron I get an error with the use of plotly.
I found this error message :
ERROR: package or namespace load failed for 'plotly' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
The package 'vctrs' 0.2.2 is already loaded but >= 0.3.0 is required

I have installed in \resources\app\R-Portable-Win\library\ the packages plotly 4.9.2.1 and vctrs 0.3.4.

Thanks for your help.

unclear result

I ran photon and it appeared to be successful but I'm not clear on what to expect as output. What is the expected output of running photon? I don't see an exe file

'shinyFiles' package is required

Hi,

I installed Photon today to play with.

When I installed it all installed successfully.

Clicking on the Add-in, I received a message that shinyFiles was not found.

This is easily solved - I installed the shinyFiles package from CRAN. But I suspect shinyFiles should be in the imports for the DESCRIPTION file for the package.

sh: line 0: cd: /Users/emb3/Desktop/test/R-Portable-Mac: No such file or directory

Hi

First can I say thank you for this package. if I can get it to work it will be a life saver. I get the follow error running photon on R 4.0.0 on a mac.

Running Photon

Warning in normalizePath(file.path(input_path, "electron-quick-start")) :

  path[1]="/Users/emb3/Dropbox/associate_dean/dean_data/test/electron-quick-start": No such file or directory

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 normalizePath(file.path(input_path, "R-Portable-Mac")) :

  path[1]="/Users/emb3/Dropbox/associate_dean/dean_data/test/R-Portable-Mac": No such file or directory

sh: line 0: cd: /Users/emb3/Dropbox/associate_dean/dean_data/test/R-Portable-Mac: No such file or directory

sh: ./R: No such file or directory

Warning: Error in system: error in running command

  76: system

  75: photon::startFun

  74: observeEventHandler

   3: shiny::runApp

   2: shiny::runGadget

   1: photon:::photon_rstudioaddin

I've
npm 6.14.4
node 12.16.3
git 2.15.0
I would assume this has somethig to do with write privileges???

Any help would be much appreciated
Thanks Eamonn

Photon doesn't work

I have multiple issues on Widows 10 plateform an R 3.6
Can you help me ?

Listening on http://127.0.0.1:5998
Running Photon
The directory is C:/standaloneapp
Warning in system2("git", args = c("clone https://github.com/ColumbusCollaboratory/electron-quick-start", :
running command '"git" clone https://github.com/ColumbusCollaboratory/electron-quick-start C:/standaloneapp' had status 128
Le chemin d'accŠs sp‚cifi‚ est introuvable.
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:/standaloneapp/electron-quick-start/R-Portable-Win/bin/R.exe --file=C:/standaloneapp/electron-quick-start/R-Portable-Win/bin/install_packages.R -q --slave --args cran_packages mgcv,matrixStats,tidyverse,DT,shinythemes,bsplus,shinyBS,leaflet, shinyjs,geosphere,googlesheets,waiter,shinyWidgets github_packages bioc_packages ' execution failed with error code 1
Nom de r‚pertoire non valide.
Warning in shell(sprintf("cd %s && npm install", electron_win_dir)) :
'cd C:\standaloneapp\electron-quick-start && npm install' execution failed with error code 1
Nom de r‚pertoire non valide.
Warning in shell(sprintf("cd %s && npm run package-win", electron_win_dir)) :
'cd C:\standaloneapp\electron-quick-start && npm run package-win' execution failed with error code 1

Clicking App Builder "Select directory" button doesn't do anything

After launching the Photon Shiny App Builder (either through RStudio Addin or photon::photon_rstudioaddin()), all that clicking the "Select directory" button does is print

[1] "Selected directory: "

on the console, as shown below.

image

Am I missing anything?

R version 3.6.1 (2019-07-05)
RStudio Version 1.1.456
Photon 0.0.1

photon addin does not select directory

photon:::photon_rstudioaddin() does not select directory.
I have made a small video of my operation.
Here are my platform details:

platform       x86_64-w64-mingw32
arch           x86_64
os             mingw32
system         x86_64, mingw32
status
major          4
minor          0.0
year           2020
month          04
day            24
svn rev        78286
language       R
version.string R version 4.0.0 (2020-04-24)
nickname       Arbor Day

Is It possible to have ui.R and server.R instead of app.R

Thanks for your great work, after many month talking with my company's IT and in the end, no server to host my shiny apps. I'll finally able to deliver the power of shiny apps to my colleagues.

Most of my apps are separated server.R and app.R. I tried building electron with those files but it doesn't seem to work (blank page when launching the app).

Is it theorically impossible or am I missing something else ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.