[Rd] Question about colnames behavior

2005-10-02 Thread Erich Neuwirth
The following code

zzz<-1:10
dim(zzz)<-10
rownames(zzz)
colnames(zzz)

yields NULL for the rownames and colnames calls.
Let us set rownames

rownames(zzz)<-1:10

Now rownames(zzz) returns the expected result, but colnames(zzz)
produces an error:
Error in dn[[2]] : subscript out of bounds

So given a onedimensional structure the return behavior of colnames
is different depending on the fact if rownames are set or not.

Should the behavior of colnames be changed to make the result
independent from this fact?



-- 
Erich Neuwirth, Didactic Center for Computer Science
University of Vienna
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-39902 Fax: +43-1-4277-9399

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Problem Sweaving vignettes: MiKTeX's texi2dvi reports errors

2005-10-02 Thread Peter G. Warren
Hi,
 
I am trying to create a Bioconductor package. Everything installs and checks
fine. Now I'm on my last step, which is to create a vignette. I'm trying to
test the Sweave process, to make sure I can build a vignette. I am stuck at
the texi2dvi stage, which fails when I try to process the example
Sweave-test-1.tex file.
 
I am using Windows binary R distributions, and have the same problem on both
the latest developer version (2.2.0 Beta) and the latest patched version
(2.1.1) . For the Tex processing, I first tried downloading and installing
fpTex, but found that it doesn't have texi2dvi. Some Googling informed me
that recent MiKTeX versions now have that function, so I just downloaded
that (the small installation). Indeed there is a texi2dvi. The first time I
ran it, it downloaded a class file it needed, so now it at least executes.
However, when I try to run it on the test Sweave tex file, I get an error.
Here's the sequence in R:
 
> library(tools)
> example(Sweave)
[...output suppressed]
> texi2dvi("Sweave-test-1.tex", pdf=TRUE, quiet=FALSE)
Error in texi2dvi("Sweave-test-1.tex", pdf=TRUE, quiet = FALSE) : 
running texi2dvi on 'Sweave-test-1.tex' failed

[A command window pops up, and the following is from that window: ]
 
This is pdfeTeX, Version 3.141592-1.20a-rc7.2-2.2 (MiKTeX 2.4)
output format initialized to PDF
entering extended mode
(Sweave-test-1.tex
LaTeX2e <2003/12/01>
Babel  and hyphenation patterns for english, french, german, ngerman,
du
mylang, nohyphenation, loaded.
(C:\MiKTex\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\MiKTex\texmf\tex\latex\base\size10.clo))
(C:\MiKTex\texmf\tex\latex\ltxmisc\a4wide.sty
(C:\MiKTex\texmf\tex\latex\ntgclass\a4.sty))
! Missing \endcsname inserted.

   \protect
l.11 \begin
   {document}
?
 
[ Here, I hit a , and get the following:]

! LaTeX Error: Missing \begin{document}.
 
See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immedi ate help.
 ...
 
l.11 \begin
   {document}
?
 
-
I have also tried running texi2dvi directly on the command line, and get the
same result. I've looked at the manual on the MiKTeX site, but find nothing
that tells me what may be wrong. The Sweave test file looks fine to me. I
have also tried running texify --pdf on the same file on the command line,
but get the same results exactly.
 
I also went to the R-tools site, and went through their page on MiKTeX
issues. Using their second suggestion (since I'm using the recent MiKTeX
version, which defaults to e-TeX mode), I tried changing the mode for
texinfo from e-TeX Extended to e-TeX Compatibility mode: no change in
results. (I'm assuming that texi2dvi is part of texinfo package - please
correct me if I'm wrong.) [I also tried changing texinfo from e-TeX to TeX
mode, and rebuilt/reloade/refreshed, but this did not seem to take: texi2dvi
still reports that it's in e-TeX mode.]
 
Finally, I did try posting this to the bioc-devel list, and got some good
suggestions (which I've tried, results above). They then suggested I move
the question over here.
 
Regards, and thanks,
- Peter Warren
 
 

 

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Problem Sweaving vignettes: MiKTeX's texi2dvi reports errors

2005-10-02 Thread Prof Brian Ripley
I get

> texi2dvi("Sweave-test-1.tex", pdf=TRUE, quiet=FALSE)
This is pdfeTeX, Version 3.141592-1.20a-rc7.2-2.2 (MiKTeX 2.4)
output format initialized to PDF
entering extended mode
(Sweave-test-1.tex
LaTeX2e <2003/12/01>
Babel  and hyphenation patterns for english, french, german, 
ngerman, dumylang, nohyphenation, loaded.
(C:\packages\MikTeX\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\packages\MikTeX\tex\latex\base\size10.clo))
(C:\packages\MikTeX\tex\latex\ltxmisc\a4wide.sty
(C:\packages\MikTeX\tex\latex\ntgclass\a4.sty))
(d:/R/svn/trunk/share/texmf/Sweave.sty

LaTeX Warning: You have requested package 
`d:/R/svn/trunk/share/texmf/Sweave',
but the package provides `Sweave'.

so my guess is that this a path problem with your MiKTeX and it is not 
finding Sweave.sty.

Simple questions: where did you install R?  Is there a space in the path?


On Sun, 2 Oct 2005, Peter G. Warren wrote:

> Hi,
>
> I am trying to create a Bioconductor package. Everything installs and checks
> fine. Now I'm on my last step, which is to create a vignette. I'm trying to
> test the Sweave process, to make sure I can build a vignette. I am stuck at
> the texi2dvi stage, which fails when I try to process the example
> Sweave-test-1.tex file.
>
> I am using Windows binary R distributions, and have the same problem on both
> the latest developer version (2.2.0 Beta) and the latest patched version
> (2.1.1) . For the Tex processing, I first tried downloading and installing
> fpTex, but found that it doesn't have texi2dvi. Some Googling informed me
> that recent MiKTeX versions now have that function, so I just downloaded
> that (the small installation). Indeed there is a texi2dvi. The first time I
> ran it, it downloaded a class file it needed, so now it at least executes.
> However, when I try to run it on the test Sweave tex file, I get an error.
> Here's the sequence in R:
>
>> library(tools)
>> example(Sweave)
> [...output suppressed]
>> texi2dvi("Sweave-test-1.tex", pdf=TRUE, quiet=FALSE)
> Error in texi2dvi("Sweave-test-1.tex", pdf=TRUE, quiet = FALSE) :
>running texi2dvi on 'Sweave-test-1.tex' failed
>
> [A command window pops up, and the following is from that window: ]
>
> This is pdfeTeX, Version 3.141592-1.20a-rc7.2-2.2 (MiKTeX 2.4)
> output format initialized to PDF
> entering extended mode
> (Sweave-test-1.tex
> LaTeX2e <2003/12/01>
> Babel  and hyphenation patterns for english, french, german, ngerman,
> du
> mylang, nohyphenation, loaded.
> (C:\MiKTex\texmf\tex\latex\base\article.cls
> Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
> (C:\MiKTex\texmf\tex\latex\base\size10.clo))
> (C:\MiKTex\texmf\tex\latex\ltxmisc\a4wide.sty
> (C:\MiKTex\texmf\tex\latex\ntgclass\a4.sty))
> ! Missing \endcsname inserted.
> 
>   \protect
> l.11 \begin
>   {document}
> ?
>
> [ Here, I hit a , and get the following:]
>
> ! LaTeX Error: Missing \begin{document}.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H   for immedi ate help.
> ...
>
> l.11 \begin
>   {document}
> ?
>
> -
> I have also tried running texi2dvi directly on the command line, and get the
> same result. I've looked at the manual on the MiKTeX site, but find nothing
> that tells me what may be wrong. The Sweave test file looks fine to me. I
> have also tried running texify --pdf on the same file on the command line,
> but get the same results exactly.
>
> I also went to the R-tools site, and went through their page on MiKTeX
> issues. Using their second suggestion (since I'm using the recent MiKTeX
> version, which defaults to e-TeX mode), I tried changing the mode for
> texinfo from e-TeX Extended to e-TeX Compatibility mode: no change in
> results. (I'm assuming that texi2dvi is part of texinfo package - please
> correct me if I'm wrong.) [I also tried changing texinfo from e-TeX to TeX
> mode, and rebuilt/reloade/refreshed, but this did not seem to take: texi2dvi
> still reports that it's in e-TeX mode.]
>
> Finally, I did try posting this to the bioc-devel list, and got some good
> suggestions (which I've tried, results above). They then suggested I move
> the question over here.
>
> Regards, and thanks,
> - Peter Warren
>
>
>
>
>
>   [[alternative HTML version deleted]]
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel