[R] problem while building a package

Renaud Lancelot renaud.lancelot at cirad.fr
Mon May 27 22:57:45 CEST 2002


ripley at stats.ox.ac.uk wrote:
> 
> On Mon, 27 May 2002, Renaud Lancelot wrote:
> 
> > Please reply to: lancelot at sentoo.sn
> > because my address: renaud.lancelot at cirad.fr
> > is broken (should be fixed soon...).
> >
> > platform i386-pc-mingw32
> > arch     i386
> > os       mingw32
> > system   i386, mingw32
> > status   Patched
> > major    1
> > minor    5.0
> > year     2002
> > month    05
> > day      15
> > language R
> >
> > win98 (sigh !)
> >
> > This is my first attempt to build a package so the question is probably
> > trivial. I try to gather a small set of pure-R functions (5) and their
> > help file (Rd format) in a package (rmisc) using tools provided by Pr
> > Ripley (http://www.stats.ox.ac.uk/pub/Rtools/tools.zip) and perl
> > (ActivePerl-5.6.1). The make pkg command runs smoothly, but errors are
> > found by make pkgcheck. The strange thing is that if I try to make a
> > package with any one (and even up to 4) of the 5 functions, everything
> > is ok (including make pkgcheck). The error msg from make pkgcheck is not
> > informative (for me...): the last lines of the Rout file written in
> > subdirectory check are:
> > >
> > > library('rmisc')
> > Error in parse(file, n, text, prompt) : syntax error on line 56
> > Execution halted
> >
> > How can I debug this ? How can I find what is on line 56 ?
> 
> Look at library\\rmisc\R\\rmisc around line 56.

Bon sang, mais c'est bien sûr ! Sorry I'm dumb: I had not figured out
that rmisc was a text file. The problem came from a missing carriage
return after the closing brace of one of the functions. In fact, the
error msg was VERY informative !

Many thanks,

Renaud

-- 
Dr Renaud Lancelot, vétérinaire
CIRAD, Département Elevage et Médecine Vétérinaire (CIRAD-Emvt)
Programme Productions Animales
http://www.cirad.fr/presentation/programmes/prod-ani.shtml

ISRA-LNERV                      tel    (221) 832 49 02
BP 2057 Dakar-Hann              fax    (221) 821 18 79 (CIRAD)
Senegal                         e-mail renaud.lancelot at cirad.fr
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list