Hi Niek,
I don't think it's an issue with $PATH.
It looks like the scripts are not executable when decompressed "as is". You
could try to add something like this to your easyconfig
postinstallcmds = [
'chmod -R 775 %(installdir)s/*.*sh',
'chmod -R 775 %(installdir)s/*.pl',
'chmod -R 775 %(installdir)s/*.R',
]
In addition you should not have the call Rscript explicitly if run_dREG.R would
have a proper shebang. I would patch the original to make it start with
#!/usr/bin/env Rscript
Cheers,
Pi
On Jul 24, 2015, at 10:33 AM, Niek de Klein <[email protected]> wrote:
> Hi easybuild list,
>
> I'm installing a program that includes a .R script. The files that I want in
> my path
>
> executables = ['run_dREG.bsh', 'writeBed.bsh', 'run_dREG.R',
> 'bed_merge.pl','writeBed.bsh']
> files_to_copy = [(executables, 'bin')]
>
> The .bsh files I can run after module load dREG with bash run_dREG.bsh.
> However, I when I try Rscript run_dREG.bsh I get Fatal error: cannot open
> file 'run_dREG.R': No such file or directory.
>
> When I do Rscript /path/to/install_folder/dREG/bin/run_dREG.R it does work.
> So how can I get the R script to be added to the path?
>
> Thanks,
> Niek
>
-------------------------------------------------------------
phone: +31 6 143 66 783
e-mail: [email protected]
skype: pieter.online
-------------------------------------------------------------