[R] calling R from PHP error

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Sep 5 11:40:27 CEST 2011



On 05.09.2011 09:40, Katerina Karayianni wrote:
> Yes, you were right about the make install command for R, now it is ok.
>
> The new issue is that when the R script is trying to generate a plot
> file, the following error occurs
>
> Error in function (file = ifelse(onefile, "Rplots.pdf",
> "Rplot%03d.pdf"),  :
>    cannot open file 'Rplots.pdf'
> Calls: plot ... plot.default -> plot.new -> <Anonymous> -> .External
> Execution halted
>
> I have changed permissions in the relative folder but this doesn't seem
> to be the issue. I'm still working on that, any ideas ?

Just check if the folder really exists and is really the one you thought 
it is so far and that you really have both read and write permissions 
within the folder.

Uwe Ligges

>
>
> 2011/9/3 Uwe Ligges <ligges at statistik.tu-dortmund.de
> <mailto:ligges at statistik.tu-dortmund.de>>
>
>
>
>     On 02.09.2011 08:23, Katerina Karayianni wrote:
>
>         Hello,
>         I am having the following error while calling an R script
>         through PHP.
>
>         /usr/local/bin/R: line 227: /kk/Programs/R-2.13.0/etc/__ldpaths:
>         Permission
>         denied
>         ERROR: R_HOME ('/kk/Programs/R-2.13.0') not found
>
>         I had compiled R from source and placed the generated R shell
>         script in
>         /usr/local/bin.
>
>
>     So you said
>
>     make install
>
>     or did you copy it manually? The latter may have been your first glitch.
>
>
>
>
>         Can you give me an insight of how to give permission to access
>         the ldpaths
>         file and why is the R_HOME tree not found?
>
>
>
>     Does that directory exist?
>     Do you have read/execute permissions?
>
>     Uwe Ligges
>
>
>         Thank you and regards
>
>                 [[alternative HTML version deleted]]
>
>         ________________________________________________
>         R-help at r-project.org <mailto:R-help at r-project.org> mailing list
>         https://stat.ethz.ch/mailman/__listinfo/r-help
>         <https://stat.ethz.ch/mailman/listinfo/r-help>
>         PLEASE do read the posting guide
>         http://www.R-project.org/__posting-guide.html
>         <http://www.R-project.org/posting-guide.html>
>         and provide commented, minimal, self-contained, reproducible code.
>
>



More information about the R-help mailing list