[R] I can't see plots

2008-06-22 Thread Josep Lluís Figueras
Hi,

I use RSPerl on Ubuntu and Apache2 web server. It is my first experience
with R language :-)

I have the next code embedded into a Perl CGI:

use R;
use RReferences;

my @x;
R::initR(--silent,--no-save);
R::library(RSPerl);
@x = R::call(rnorm, 10);
R::call(plot, [EMAIL PROTECTED]);

The CGI works but no plot is shown.

Apache2 web server log

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] I can't see plots

2008-06-22 Thread Josep Lluís Figueras
Hi,

I am using RSPerl package on Ubuntu and Apache2 web server. It is my first
experience with R language :-)

I have the next code embedded into a Perl CGI:

use R;
use RReferences;

my @x;
R::initR(--silent,--no-save);
R::library(RSPerl);
@x = R::call(rnorm, 10);
R::call(plot, [EMAIL PROTECTED]);

The CGI works but no plot is shown.

Apache2 web server log says:

[Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] Error in pdf() :
unable to start device pdf, referer: http://localhost/html/proveta.html
[Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] In addition: Warning
message:, referer: http://localhost/html/proveta.html
[Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] In pdf() : cannot open
'pdf' file argument 'Rplots.pdf', referer:
http://localhost/html/proveta.html
[Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] Caught error in
R::call(), referer: http://localhost/html/proveta.html

However, if I use R directly plots are correctly shown.

Can anybody help me?

Thanks!

Josep Lluís Figueras
(from Barcelona)

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] I can't see plots

2008-06-22 Thread Duncan Murdoch

Josep Lluís Figueras wrote:

Hi,

I am using RSPerl package on Ubuntu and Apache2 web server. It is my first
experience with R language :-)

I have the next code embedded into a Perl CGI:

use R;
use RReferences;

my @x;
R::initR(--silent,--no-save);
R::library(RSPerl);
@x = R::call(rnorm, 10);
R::call(plot, [EMAIL PROTECTED]);

The CGI works but no plot is shown.

Apache2 web server log says:

[Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] Error in pdf() :
unable to start device pdf, referer: http://localhost/html/proveta.html
[Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] In addition: Warning
message:, referer: http://localhost/html/proveta.html
[Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] In pdf() : cannot open
'pdf' file argument 'Rplots.pdf', referer:
http://localhost/html/proveta.html
[Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] Caught error in
R::call(), referer: http://localhost/html/proveta.html

However, if I use R directly plots are correctly shown.

  
Because you aren't running R interactively, it's trying to open a pdf 
device.  This is failing (file permissions maybe?).


You should probably specify exactly what device to open, and if it's 
something that writes a file, where to write it.


Duncan Murdoch

Can anybody help me?

Thanks!

Josep Lluís Figueras
(from Barcelona)

[[alternative HTML version deleted]]

  



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] I can't see plots

2008-06-22 Thread milton ruser
Hi there,

try to open a graphic device with x11(), may be.

cheers,

miltinho

On 6/22/08, Josep Lluís Figueras [EMAIL PROTECTED] wrote:

 Hi,

 I am using RSPerl package on Ubuntu and Apache2 web server. It is my first
 experience with R language :-)

 I have the next code embedded into a Perl CGI:

 use R;
 use RReferences;

 my @x;
 R::initR(--silent,--no-save);
 R::library(RSPerl);
 @x = R::call(rnorm, 10);
 R::call(plot, [EMAIL PROTECTED]);

 The CGI works but no plot is shown.

 Apache2 web server log says:

 [Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] Error in pdf() :
 unable to start device pdf, referer: http://localhost/html/proveta.html
 [Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] In addition: Warning
 message:, referer: http://localhost/html/proveta.html
 [Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] In pdf() : cannot
 open
 'pdf' file argument 'Rplots.pdf', referer:
 http://localhost/html/proveta.html
 [Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] Caught error in
 R::call(), referer: http://localhost/html/proveta.html

 However, if I use R directly plots are correctly shown.

 Can anybody help me?

 Thanks!

 Josep Lluís Figueras
 (from Barcelona)

[[alternative HTML version deleted]]


 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] I can't see plots

2008-06-22 Thread Daniel Cegielka
Maybe this help you

http://www.rforge.net/Cairo/index.html

http://www.rosuda.org/R/GDD/

daniel cegielka


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of milton ruser
Sent: Sunday, June 22, 2008 5:56 PM
To: Josep Lluís Figueras
Cc: r-help@r-project.org
Subject: Re: [R] I can't see plots

Hi there,

try to open a graphic device with x11(), may be.

cheers,

miltinho

On 6/22/08, Josep Llums Figueras [EMAIL PROTECTED] wrote:

 Hi,

 I am using RSPerl package on Ubuntu and Apache2 web server. It is my first
 experience with R language :-)

 I have the next code embedded into a Perl CGI:

 use R;
 use RReferences;

 my @x;
 R::initR(--silent,--no-save);
 R::library(RSPerl);
 @x = R::call(rnorm, 10);
 R::call(plot, [EMAIL PROTECTED]);

 The CGI works but no plot is shown.

 Apache2 web server log says:

 [Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] Error in pdf() :
 unable to start device pdf, referer: http://localhost/html/proveta.html
 [Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] In addition: Warning
 message:, referer: http://localhost/html/proveta.html
 [Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] In pdf() : cannot
 open
 'pdf' file argument 'Rplots.pdf', referer:
 http://localhost/html/proveta.html
 [Sun Jun 22 12:01:41 2008] [error] [client 127.0.0.1] Caught error in
 R::call(), referer: http://localhost/html/proveta.html

 However, if I use R directly plots are correctly shown.

 Can anybody help me?

 Thanks!

 Josep Llums Figueras
 (from Barcelona)

[[alternative HTML version deleted]]


 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.