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

Issues with run.wsf #19

Closed
balintba opened this issue Jul 27, 2018 · 2 comments
Closed

Issues with run.wsf #19

balintba opened this issue Jul 27, 2018 · 2 comments

Comments

@balintba
Copy link

Hello,

first of all I would like to thank you for providing this framework, which is really nice.
Although I am really not good at similar things, I could get it work after maybe an hour, so the
documentations and the steps are very well written.

I have a strange issue, which is the following: I can run the app, it takes some time, but it loads
all of the dependencies and opens the browser. However after I close it and try to open it again
nothing happens. After I run it as administrator the following error message pops up. Please see it below.
Once I restart the computer and run the app again, all the dependencies load, the browser opens and
the app runs just fine. After closing it and trying to open it again the same issue with the same error message appears. Thanks for your kind help in advance!

The message is displayed on german, but it says actually that the "run.wsf" could not be found.

Best regards,
Balazs
errormessage

@wleepang
Copy link
Owner

@balintba - A couple things to check.

First, make sure that your app registers an session$onSessionEnded handler that stops the shiny server (if you are using shiny that is) and subsequently stops the underlying Rscript.exe process. See the following lines in the example app on how to do this. If you don't you'll be left with a zombie process that needs to be tracked down in the Task Manager and killed.

Second, when you are running as administrator, CMD.exe starts in a folder that is not where DesktopDeployR and your app is. You'll need to cd to that location before trying to launch the app. That said, you shouldn't have to launch as administrator. It sounds like your issue is related to the point above.

@balintba
Copy link
Author

balintba commented Aug 2, 2018

Many thanks for your kind reply! It has worked. Sorry for the late response

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

2 participants