Re: [R] RPostgreSQL package and libpq.dll file

2009-09-14 Thread Lore M

It still doesn't work. Now, R is asking me for the SSLEAY32.dll. If I download 
it from the internet, and then put it in the file 
\R-2.8.1\library\RPostgreSQL\libs, now they ask me for the VSINIT.dll file ! 
it's like an infinite loop... I've tried to intall again the RPostgreSQL 
library but nothing's changed. I don't understand because Postgres is fine, it 
works. Should I install it again ? :s
Thanks everyone.

> Date: Fri, 11 Sep 2009 08:21:59 -0700
> From: m...@joeconway.com
> To: tchiba...@hotmail.com
> CC: r-help@r-project.org
> Subject: Re: [R] RPostgreSQL package and libpq.dll file
> 
> Lore M wrote:
> > Dear all, I'd like to use the package RPostgreSQL. I'm using R
> > version 2.8.1 and I've download the last version RPostgreSQL. When I
> > load the package, I get something like "the file LIBPQ.DLL is
> > missing". Do you have any idea about what I'm suppose to do ? Thanks
> > everyone.
> 
> libpq.dll is the PostgreSQL client library. You should be able to get it
> here: http://www.postgresql.org/download/windows
> 
> HTH
> 
> Joe
> 

_
[[elided Hotmail spam]]

[[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] RPostgreSQL package and libpq.dll file

2009-09-11 Thread Lore M

Dear all,
I'd like to use the package RPostgreSQL. I'm using R version 2.8.1 and I've 
download the last version RPostgreSQL. When I load the package, I get something 
like "the file LIBPQ.DLL is missing".
Do you have any idea about what I'm suppose to do ? Thanks everyone.

_
[[elided Hotmail spam]]

[[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] using Sweave, how to save a plot in a given size

2009-04-15 Thread Lore M

I just want to add that I didn't have any overful box before I use :

<>=
pdf("fig1.pdf", 
width = wid, heigth = hei)
plot(1:10)
plot(1:10)
dev.off()
cat("\\begin{figure}[h]")
cat("\\centering")
cat("\\multido{\i=1+1}{7}{\includegraphics[page=\i,width=1.5in, height = 
1.5in]{images.pdf}}") 
cat("\\end{figure}")
@

but just :

\SweaveOpts{prefix.string=proj1} 
<>=
plot(1:10)
@
\begin{figure}[h]
\multido{\i=1+1}{7}{\includegraphics[page=\i,width=1.5in, height = 
1.5in]{images.pdf}}
\end{figure}

I don't know if this information can help... Thanks a lot everyone.


Subject: RE: [R] using Sweave, how to save a plot in a given size
Date: Wed, 15 Apr 2009 16:29:38 +0200
From: thierry.onkel...@inbo.be
To: tchiba...@hotmail.com; r-help@r-project.org










This seems more a LaTeX problem than an R problem. But can you 
provide us (an sample example of) the LaTeX code the yields the overfull 
box.
 
Van: Lore M [mailto:tchiba...@hotmail.com] 

Verzonden: woensdag 15 april 2009 15:44
Aan: ONKELINX, 
Thierry; R Help
Onderwerp: RE: [R] using Sweave, how to save a plot in 
a given size


After few corrections, it does work. But I have several plots to 
include in my document and, because of those commands, they're all on the same 
line even if there are 20 plots. I mean that Latex doesn't car about textwidth 
anymore and I get an overfull box (too wide).
What could I do to correct that 
?
Thanks. 

> Subject: RE: [R] using Sweave, how to save a plot in a 
given size
> Date: Wed, 15 Apr 2009 13:55:57 +0200
> From: 
thierry.onkel...@inbo.be
> To: tchiba...@hotmail.com; 
wolfgang.raffelsber...@igbmc.fr; r-help@r-project.org
> 
> Dear 
Lore,
> 
> The easiest thing to do is to write a function that saves 
your plot to a file and generates the latex code.
> 
> 
<>=
> pdf("fig1.pdf", 
width = wid, heigth = hei)
> plot(1:10)
> dev.off()
> 
cat("\begin{figure}\")
> cat("\includegraphics[width = ", wid, ", height = 
", hei, "]{proj1-fig1}\"}
> cat("\end{figure}")
> @
> 
> 
HTH,
> 
> Thierry
> 
> -Oorspronkelijk 
bericht-
> Van: r-help-boun...@r-project.org 
[mailto:r-help-boun...@r-project.org] Namens Lore M
> Verzonden: woensdag 
15 april 2009 13:46
> Aan: wolfgang.raffelsber...@igbmc.fr; R Help
> 
Onderwerp: Re: [R] using Sweave, how to save a plot in a given size
> 

> 
> Yes it works, but I still have a problem.
> The thing is 
that I know the dimensions of my plot but in the R code, not in the latex code. 
So I tried to do :
> 
> \SweaveOpts{prefix.string=proj1}
> 

> <>=
> plot(1:10)
> @
> 
> 
\begin{figure}
> \includegraphics {proj1-fig1} %% show
> 
\end{figure}
> 
> But Latex doen't find the value of "wid" and "hei" 
when it creates the chunk code. But in the Latex code, it works and I do have 
the right value for "wid" and "hei".
> 
> Lore.
> 
> 

> > Date: Tue, 14 Apr 2009 12:42:16 +0200
> > From: 
wr...@titus.u-strasbg.fr
> > To: tchiba...@hotmail.com
> > CC: 
r-help@r-project.org
> > Subject: Re: [R] using Sweave, how to save a 
plot in a given size
> > 
> > Hi I do somthing like:
> 
> 
> > \SweaveOpts{prefix.string=proj1}
> > 
> > 
<>=
> > 
plot(1:10)
> > @
> > 
> > \begin{figure}
> > 
\includegraphics {proj1-fig1} %% show
> > \label{..}
> > 
\end{figure}
> > 
> > 
> > Wolfgang
> > 

> > 
> > Lore M a écrit :
> > >
> > 
>
> > >
> > >
> > >
> > 
>
> > > Hi,
> > > 
> > > I'm trying to 
realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using 
Sweave(). 
> > > I'd like to save my plots in a given size. How can 
I do that ? The code is :
> > > 
> > > 
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
> > 
> <>= 
> > 
> plotFunction()
> > > @
> > > 
\includepdf[pages=-]{figs/plot-partI}
> > >
> > > When I 
use par(pin=c(width,height)), I get the plot with the right size but saved in a 
too big pdf page (7in x 7in, the default size of the window).
> > > 
So I tried to change the size of the window with the command windows() but 
then, 
Sweave can't save the plot correctly.
> > >
> > > Thanks 
everyone.
> > > 
> > > Lore.




Souhaitez vous  « être au bureau sans y être » ? Oui 
je le veux ! 

Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer 
en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is
door een geldig ondertekend document. The views expressed in  this message 
and any annex are purely those of the writer and may not be regarded as stating 
an official position of INBO, as long as the message is not confirmed by a duly 
signed document.
_
Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger ! 

[[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] using Sweave, how to save a plot in a given size

2009-04-15 Thread Lore M

You're right, I'm sorry to disturb you with my Latex problem. 
If anyone has an idea, here is the Latex code that I get : 

\begin{figure}
\multido{\i=1+1}{7}{\includegraphics[page=\i,width=1.5in, height = 
1.5in]{image.pdf} \\ }
\end{figure}

I tried to break the line with "\\" or with "\linebreak" but it still doesn't 
want to work.

Subject: RE: [R] using Sweave, how to save a plot in a given size
Date: Wed, 15 Apr 2009 16:29:38 +0200
From: thierry.onkel...@inbo.be
To: tchiba...@hotmail.com; r-help@r-project.org










This seems more a LaTeX problem than an R problem. But can you 
provide us (an sample example of) the LaTeX code the yields the overfull 
box.
  



Van: Lore M [mailto:tchiba...@hotmail.com] 

Verzonden: woensdag 15 april 2009 15:44
Aan: ONKELINX, 
Thierry; R Help
Onderwerp: RE: [R] using Sweave, how to save a plot in 
a given size


After few corrections, it does work. But I have several plots to 
include in my document and, because of those commands, they're all on the same 
line even if there are 20 plots. I mean that Latex doesn't car about textwidth 
anymore and I get an overfull box (too wide).
What could I do to correct that 
?
Thanks. 

> Subject: RE: [R] using Sweave, how to save a plot in a 
given size
> Date: Wed, 15 Apr 2009 13:55:57 +0200
> From: 
thierry.onkel...@inbo.be
> To: tchiba...@hotmail.com; 
wolfgang.raffelsber...@igbmc.fr; r-help@r-project.org
> 
> Dear 
Lore,
> 
> The easiest thing to do is to write a function that saves 
your plot to a file and generates the latex code.
> 
> 
<>=
> pdf("fig1.pdf", 
width = wid, heigth = hei)
> plot(1:10)
> dev.off()
> 
cat("\begin{figure}\")
> cat("\includegraphics[width = ", wid, ", height = 
", hei, "]{proj1-fig1}\"}
> cat("\end{figure}")
> @
> 
> 
HTH,
> 
> Thierry
> 
> -Oorspronkelijk 
bericht-
> Van: r-help-boun...@r-project.org 
[mailto:r-help-boun...@r-project.org] Namens Lore M
> Verzonden: woensdag 
15 april 2009 13:46
> Aan: wolfgang.raffelsber...@igbmc.fr; R Help
> 
Onderwerp: Re: [R] using Sweave, how to save a plot in a given size
> 

> 
> Yes it works, but I still have a problem.
> The thing is 
that I know the dimensions of my plot but in the R code, not in the latex code. 
So I tried to do :
> 
> \SweaveOpts{prefix.string=proj1}
> 

> <>=
> plot(1:10)
> @
> 
> 
\begin{figure}
> \includegraphics {proj1-fig1} %% show
> 
\end{figure}
> 
> But Latex doen't find the value of "wid" and "hei" 
when it creates the chunk code. But in the Latex code, it works and I do have 
the right value for "wid" and "hei".
> 
> Lore.
> 
> 

> > Date: Tue, 14 Apr 2009 12:42:16 +0200
> > From: 
wr...@titus.u-strasbg.fr
> > To: tchiba...@hotmail.com
> > CC: 
r-help@r-project.org
> > Subject: Re: [R] using Sweave, how to save a 
plot in a given size
> > 
> > Hi I do somthing like:
> 
> 
> > \SweaveOpts{prefix.string=proj1}
> > 
> > 
<>=
> > 
plot(1:10)
> > @
> > 
> > \begin{figure}
> > 
\includegraphics {proj1-fig1} %% show
> > \label{..}
> > 
\end{figure}
> > 
> > 
> > Wolfgang
> > 

> > 
> > Lore M a écrit :
> > >
> > 
>
> > >
> > >
> > >
> > 
>
> > > Hi,
> > > 
> > > I'm trying to 
realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using 
Sweave(). 
> > > I'd like to save my plots in a given size. How can 
I do that ? The code is :
> > > 
> > > 
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
> > 
> <>= 
> > 
> plotFunction()
> > > @
> > > 
\includepdf[pages=-]{figs/plot-partI}
> > >
> > > When I 
use par(pin=c(width,height)), I get the plot with the right size but saved in a 
too big pdf page (7in x 7in, the default size of the window).
> > > 
So I tried to change the size of the window with the command windows() but 
then, 
Sweave can't save the plot correctly.
> > >
> > > Thanks 
everyone.
> > > 
> > > Lore.


_
Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger ! 

[[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] using Sweave, how to save a plot in a given size

2009-04-15 Thread Lore M

After few corrections, it does work. But I have several plots to include in my 
document and, because of those commands, they're all on the same line even if 
there are 20 plots. I mean that Latex doesn't car about textwidth anymore and I 
get an overfull box (too wide).
What could I do to correct that ?
Thanks. 

> Subject: RE: [R] using Sweave, how to save a plot in a given size
> Date: Wed, 15 Apr 2009 13:55:57 +0200
> From: thierry.onkel...@inbo.be
> To: tchiba...@hotmail.com; wolfgang.raffelsber...@igbmc.fr; 
> r-help@r-project.org
> 
> Dear Lore,
> 
> The easiest thing to do is to write a function that saves your plot to a file 
> and generates the latex code.
> 
> <>=
> pdf("fig1.pdf", width = wid, heigth = hei)
>   plot(1:10)
> dev.off()
> cat("\begin{figure}\")
> cat("\includegraphics[width = ", wid, ", height = ", hei, "]{proj1-fig1}\"}
> cat("\end{figure}")
> @
> 
> HTH,
> 
> Thierry
> 
> -Oorspronkelijk bericht-
> Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] 
> Namens Lore M
> Verzonden: woensdag 15 april 2009 13:46
> Aan: wolfgang.raffelsber...@igbmc.fr; R Help
> Onderwerp: Re: [R] using Sweave, how to save a plot in a given size
> 
> 
> Yes it works, but I still have a problem.
> The thing is that I know the dimensions of my plot but in the R code, not in 
> the latex code. So I tried to do :
> 
> \SweaveOpts{prefix.string=proj1}
>  
> <>=
> plot(1:10)
> @
> 
> \begin{figure}
> \includegraphics {proj1-fig1}   %% show
> \end{figure}
> 
> But Latex doen't find the value of "wid" and "hei" when it creates the chunk 
> code. But in the Latex code, it works and I do have the right value for "wid" 
> and "hei".
> 
> Lore.
> 
> 
> > Date: Tue, 14 Apr 2009 12:42:16 +0200
> > From: wr...@titus.u-strasbg.fr
> > To: tchiba...@hotmail.com
> > CC: r-help@r-project.org
> > Subject: Re: [R] using Sweave, how to save a plot in a given size
> > 
> > Hi I do somthing like:
> > 
> > \SweaveOpts{prefix.string=proj1}
> > 
> > <>=
> > plot(1:10)
> > @
> > 
> > \begin{figure}
> > \includegraphics {proj1-fig1}   %% show
> > \label{..}
> > \end{figure}
> > 
> > 
> > Wolfgang
> > 
> > 
> > Lore M a écrit :
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi,
> > >  
> > > I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex 
> > > for Windows) using Sweave(). 
> > > I'd like to save my plots in a given size. How can I do that ? The code 
> > > is :
> > >  
> > > \SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
> > > <>=  
> > > plotFunction()
> > > @
> > > \includepdf[pages=-]{figs/plot-partI}
> > >
> > > When I use par(pin=c(width,height)), I get the plot with the right size 
> > > but saved in a too big pdf page (7in x 7in, the default size of the 
> > > window).
> > > So I tried to change the size of the window with the command windows() 
> > > but then, Sweave can't save the plot correctly.
> > >
> > > Thanks everyone.
> > >  
> > > Lore.


_
Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger ! 

[[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] using Sweave, how to save a plot in a given size

2009-04-15 Thread Lore M

Yes it works, but I still have a problem.
The thing is that I know the dimensions of my plot but in the R code, not in 
the latex code. So I tried to do :

\SweaveOpts{prefix.string=proj1}
 
<>=
plot(1:10)
@

\begin{figure}
\includegraphics {proj1-fig1}   %% show
\end{figure}

But Latex doen't find the value of "wid" and "hei" when it creates the chunk 
code. But in the Latex code, it works and I do have the right value for "wid" 
and "hei".

Lore.


> Date: Tue, 14 Apr 2009 12:42:16 +0200
> From: wr...@titus.u-strasbg.fr
> To: tchiba...@hotmail.com
> CC: r-help@r-project.org
> Subject: Re: [R] using Sweave, how to save a plot in a given size
> 
> Hi I do somthing like:
> 
> \SweaveOpts{prefix.string=proj1}
> 
> <>=
> plot(1:10)
> @
> 
> \begin{figure}
> \includegraphics {proj1-fig1}   %% show
> \label{..}
> \end{figure}
> 
> 
> Wolfgang
> 
> 
> Lore M a écrit :
> >
> >
> >
> >
> >
> >
> > Hi,
> >  
> > I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex 
> > for Windows) using Sweave(). 
> > I'd like to save my plots in a given size. How can I do that ? The code is :
> >  
> > \SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
> > <>=  
> > plotFunction()
> > @
> > \includepdf[pages=-]{figs/plot-partI}
> >
> > When I use par(pin=c(width,height)), I get the plot with the right size but 
> > saved in a too big pdf page (7in x 7in, the default size of the window).
> > So I tried to change the size of the window with the command windows() but 
> > then, Sweave can't save the plot correctly.
> >
> > Thanks everyone.
> >  
> > Lore.
> > _
> >
> > ? Lancez-vous !
> >
> > [[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.
> >
> >
> >   
> 
> 
> -- 
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> Wolfgang Raffelsberger, PhD
> Laboratoire de BioInformatique et Génomique Intégratives
> CNRS UMR7104, IGBMC 
> 1 rue Laurent Fries,  67404 Illkirch  Strasbourg,  France
> Tel (+33) 388 65 3300 Fax (+33) 388 65 3276
> wolfgang.raffelsberger (at) igbmc.fr 
> 
> 
> 

_

[[elided Hotmail spam]]

[[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] using Sweave, how to save a plot in a given size

2009-04-14 Thread Lore M








Hi,
 
I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for 
Windows) using Sweave(). 
I'd like to save my plots in a given size. How can I do that ? The code is :
 
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
<>=  
plotFunction()
@
\includepdf[pages=-]{figs/plot-partI}

When I use par(pin=c(width,height)), I get the plot with the right size but 
saved in a too big pdf page (7in x 7in, the default size of the window).
So I tried to change the size of the window with the command windows() but 
then, Sweave can't save the plot correctly.

Thanks everyone.
 
Lore.
_

? Lancez-vous !

[[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] Sweave, how to save plots with a defined size and how to include several pdf pages on the same line

2009-04-10 Thread Lore M

Hi there,

I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for 
Windows) using Sweave(). 

I'd like to save my plots with a given size. How can I do that ? The issue is 
that I have several plots created (but it's not always the same numbers of 
plots, in depends on the data), so I save them in a .pdf file automatically 
with Latex. Each plot is on one page of the pdf file. And then, I include all 
the pages of this pdf file. So, I don't have to deal with the number of plots 
created by Sweave, I just have to include all the pages of my document. The 
probleme is that I don't know how to set the size of my plots, so the size of 
the pdf page. The code is :

\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}

<>=  
plotFunction()
@

\includepdf[pages=-, noautoscale=TRUE]{figs/plot-partI}


And I have a second problem. Then I'd like to have several plots on the same 
line, that is to say several pdf pages inserted on the same line. I heard about 
the option column=TRUE but it doesn't work. Do you have any idea of how I could 
do that ?

Thanks a lot !

Lore.

_
Découvrez toutes les possibilités de communication avec vos proches

[[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] trying to run odfWeave()

2009-03-11 Thread Lore M

Hi there !

I'm working with windows and R GUI and I'm trying to generate an automatic 
repport using odfWeave. 

I have taken the basic template available on line at : 
http://www.biostat.uzh.ch/services/templates.html
which is SampleOdf.odt  I've imported the package "odfWeave" and the 
corresponding library. And then I run : 

> file.in="E:/Tex/SampleOdf.odt"
> file.out="E:/Tex/RepportOdf.odt"
> odfWeave(file.in, file.out)
  Copying  E:/Tex/SampleOdf.odt 
  Setting wd to  C:\DOCUME~1\Lore\LOCALS~1\Temp\RtmpSjnx0I/odfWeave11100313419 
  Unzipping ODF file using unzip -o "SampleOdf.odt" 
Erreur dans odfWeave(file.in, file.out) : Error unzipping file
De plus : Warning message:
In system(zipCmd[2], invisible = TRUE) : unzip introuvable 

Is there someone who has an idea of what's the problem here ?

Then, I have a second question, which totally independent from the one above (I 
have an error in both cases...) : is RepportOdf.odt automatically 
generated/created or should I create the document before ? 

Thanks a lot everyone for your help !

Lo.

_
[[elided Hotmail spam]]

[[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.