After installation of the recent R-2.7.0 version the /usr/bin/Rscript wrapper
binary does not work anymore. Normally, it should allow to directly execut a R
command on the command-line but with 2.7.0 it just outputs and error.
Reproducible: Always
Steps to Reproduce:
1. emerge R
2. /usr/bin/Rscript -e "cat('Hello World')"
3. notice the file or directoy does not exist warning
Actual Results:
After execution of "/usr/bin/Rscript -e "cat('Hello World')" the following
error occurrs:
-- cut here --
Rscript execution error: No such file or directory
-- cut here --
By executing Rscript with 'strace' it points at the sandbox compilation that is
to be blamed:
-- cut here --
1> strace Rscript -e "cat('Hello World')"
...
execve("/var/tmp/portage/dev-lang/R-2.7.0/work/R-2.7.0/bin/R",
["/var/tmp/portage/dev-lang/R-2.7."..., "--slave"..., "--no-restore"...,
"-e"..., "cat(\'Hello World\')"..., "--args"...], [/* 63 vars */]) = -1 ENOENT
(No such file or directory)
...
-- cut here --
So here you can clearly see that it tries to execute the R binary from
"/var/tmp/portage/dev-lang/R-2.7.0/work/R-2.7.0/bin/" rather than executing it
from /usr/bin/R like it should be. And this of course causes the problem. After
symlinking R to the /var/tmp/ directory, Rscript works.