kjetil brinchmann halvorsen
2003-Jul-29 04:40 UTC
[R] Problems with Rcmd build --- windows
Hola!
I am using Rcmd build --binary ... on a windows XP system, and am
encountering a strange problem. Rcmd claims there are syntax errors
in one of mine .Rd files
******* Syntax error: mismatched or missing brackets in
I take "brackets" to mean [], and I have none of them in the file,
and don't think they are needed. Rcmd prints out the offending file,
and in the printout I can find:
\itemnormal-bracket1001bracket-normalVALUnormal-bracket1001bracket-
normal{a factor, did you ever in life use alucinogenos, with levels
\code{No} \code{Si}}
Which is of course not what I have in my file, I have
\item{VALU}{a factor, did you ever in life use alucinogenos, with
levels
\code{No} \code{Si}}
This strange expansion of the braces {} does not occur any other
place. I am running Rcmd from a shell window in Xemacs.
Any explanation of this strange happening?
Kjetil Halvorsen
Please note (because you keep saying it): this is not Rcmd. Rcmd runs Perl to run the Perl script build. The perl script build --binary runs INSTALL to install your package. INSTALL runs Rdconv, and it is Rdconv which is complaining. So the problem is installing your package: did you try installing it from the sources? On Tue, 29 Jul 2003, kjetil brinchmann halvorsen wrote:> Hola! > > I am using Rcmd build --binary ... on a windows XP system, and am > encountering a strange problem. Rcmd claims there are syntax errors > in one of mine .Rd files > > ******* Syntax error: mismatched or missing brackets in > > I take "brackets" to mean [], and I have none of them in the file, > and don't think they are needed.It means braces, { }.> Rcmd prints out the offending file, > and in the printout I can find: > > \itemnormal-bracket1001bracket-normalVALUnormal-bracket1001bracket- > normal{a factor, did you ever in life use alucinogenos, with levels > \code{No} \code{Si}} > > Which is of course not what I have in my file, I have > > \item{VALU}{a factor, did you ever in life use alucinogenos, with > levels > \code{No} \code{Si}} > > This strange expansion of the braces {} does not occur any other > place. I am running Rcmd from a shell window in Xemacs.Yes it does! It's a normal part of Rd conversion.> Any explanation of this strange happening?Yes, there are syntax errors in your .Rd file, or a bug in Rdconv (but unlikely as it has successfully processed many files -- is this one particularly large?). Try removing bits of the .Rd file to narrow the problem down. -- Brian D. Ripley, ripley at stats.ox.ac.uk 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, UK Fax: +44 1865 272595
kjetil brinchmann halvorsen
2003-Jul-29 14:27 UTC
[R] Problem with INSTALL packages (was: Problems with Rcmd build --- windows)
On 29 Jul 2003 at 7:53, Prof Brian Ripley wrote:
Uwe Ligges thought it might be an Xemacs problem, it is nit, see
below. I have run the scripts in different manners from different
places, same problem.
Also, I don't think there is a syntax problem in the file. It is
thouroghly checked. What seems more probable, is there is a problem
with size. The complete file have 706 lines. When I omit (almost) all
the content from the
\format{ ...
\describe{ ...
...
part, and so reduce the file to 35 lines, the problems disappear. I
did this reduction in parts, and each time the output of the form
\itemnormal-bracket1001bracket-normalVALUnormal-bracket1001bracket-
appears at about the same line number, until the file is small enough
it disappears.
Kjetil Halvorsen
> Please note (because you keep saying it): this is not Rcmd.
>
> Rcmd runs Perl to run the Perl script build.
>
> The perl script build --binary runs INSTALL to install your package.
>
> INSTALL runs Rdconv, and it is Rdconv which is complaining.
>
> So the problem is installing your package: did you try installing it from
> the sources?
>
> On Tue, 29 Jul 2003, kjetil brinchmann halvorsen wrote:
>
> > Hola!
> >
> > I am using Rcmd build --binary ... on a windows XP system, and am
> > encountering a strange problem. Rcmd claims there are syntax errors
> > in one of mine .Rd files
> >
> > ******* Syntax error: mismatched or missing brackets in
> >
> > I take "brackets" to mean [], and I have none of them in the
file,
> > and don't think they are needed.
>
> It means braces, { }.
>
> > Rcmd prints out the offending file,
> > and in the printout I can find:
> >
> > \itemnormal-bracket1001bracket-normalVALUnormal-bracket1001bracket-
> > normal{a factor, did you ever in life use alucinogenos, with levels
> > \code{No} \code{Si}}
> >
> > Which is of course not what I have in my file, I have
> >
> > \item{VALU}{a factor, did you ever in life use alucinogenos, with
> > levels
> > \code{No} \code{Si}}
> >
> > This strange expansion of the braces {} does not occur any other
> > place. I am running Rcmd from a shell window in Xemacs.
>
> Yes it does! It's a normal part of Rd conversion.
>
> > Any explanation of this strange happening?
>
> Yes, there are syntax errors in your .Rd file, or a bug in Rdconv (but
> unlikely as it has successfully processed many files -- is this one
> particularly large?). Try removing bits of the .Rd file to narrow the
> problem down.
>
>
> --
> Brian D. Ripley, ripley at stats.ox.ac.uk
> 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, UK Fax: +44 1865 272595
>