adlisval
adlisval

Reputation: 341

R Shiny on Shiny server - how to access the app?

I have Shiny Server installed and I can use the sample apps (i.e. http://serverip:3838/hello/).

But when I visit http://serverip:3838/myapp/ to use myapp, it's not working (loading till it stops).

Am I missing something in the code or in the way this should be done?

-- (running locally app.R from RStudio, works fine)

Info about the app:

Upvotes: 2

Views: 1656

Answers (1)

yhf8377
yhf8377

Reputation: 270

Your code works fine in RStudio indicates that it is not something related to your program logic. It seems that your folder/file permission may be preventing Shiny Server from accessing your files. I have encountered similar issues before.

Please make sure that user shiny (if you used default installation options) have access to your folder and files. I would suggest that you use chown -R <yourself>:shiny <my-shiny-folder> and chmod -R g+s <my-shiny-folder> so that all files saved to this folder can be accessed by Shiny.

Upvotes: 2

Related Questions