sh: R: command not found

851 views
Skip to first unread message

Lee Pang

unread,
Oct 25, 2013, 8:23:35 PM10/25/13
to shiny-...@googlegroups.com
I'm doing some recovery testing on a RHEL server and I did a fresh install of shiny-server from the published rpms.

Prior to installing shiny-server I installed R 3.0.2 from source into /usr/local/bin

I've started shiny-server via the init.d script:
service shiny-server start

Shiny server appears to be working, navigating to
<host-ip>:3838/

shows the appropriate index

However, when I launch one of my test applications I get:

An error has occurred

The application failed to start.

The application exited during initialization.

sh: R: command not found


When I launch shiny-server as root from the terminal everything works fine.
Similarly, when I launch as a regular user (e.g. shiny or any other user) it works, as long as I make the appropriate log directory writable via group permissions.


Is there something I'm missing here?

Lee Pang

unread,
Oct 26, 2013, 12:24:29 AM10/26/13
to shiny-...@googlegroups.com
So it turns out that this is a simple path export issue.

The environment that the init.d/shiny-server script was being call in could no see /usr/local/bin

Adding the following line to the top of the script fixed the matter:
PATH="$PATH:/usr/local/bin"
Reply all
Reply to author
Forward
0 new messages