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

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

Open
AMillanFL opened this issue Aug 26, 2020 · 6 comments
Open

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

AMillanFL opened this issue Aug 26, 2020 · 6 comments

Comments

@AMillanFL
Copy link

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

@frimane
Copy link

frimane commented Aug 27, 2020

Hey!
An easy solution is to create the folder ``electron-quick-start'' manually and then run photon::photon_rstudioaddin()

@dcaud
Copy link

dcaud commented Oct 30, 2020

That got past one error message, but then:

Running Photon
Warning: Error in system2: error in running command
  76: system2
  75: photon::startFun
  74: observeEventHandler
   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

@jll48
Copy link

jll48 commented Nov 23, 2020

I have the same issue with the above error message, is there a known fix for this?

@wbbqhs
Copy link

wbbqhs commented Feb 24, 2021

use setwd() in RStudio to set the working directory to the one containing electron-quick-start, this worked for me.

@Brownsey
Copy link

Mine errors here with the following error message: \app\electron-quick-start\R-Portable-Win\bin/install_packages.R
Is it because of the forward slash that it is trying to look for in the install_packages part of the path.

@kaiwudufe
Copy link

my solution is to modify windows environment variables
control panel/system/advanced system settings

  1. add an environment variable for R_USER
    1.1 variable name: R_USER
    1.2 click "Browse Directory" and select the path where the application is installed, then click "OK".
    for example: C:\Program Files\R\R-4.2.1

  2. modify the Path
    click "Browse Directory" and select the path where the application is installed, then click "OK".
    for example: C:\Program Files\R\R-4.2.1

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

7 participants