[Rd] Error in options(...) : invalid continue parameter

Gregor Gorjanc gregor.gorjanc at bfro.uni-lj.si
Wed Aug 16 13:18:58 CEST 2006


Hello!

It seems that prompt and continue argument of options() must be at least
of length one i.e.

> options(prompt="")
Error in options(...) : prompt parameter invalid
> options(prompt=" ")
 # bla, bla, ...
> options(prompt="> ")
> # bla, bla, ...

> options(continue="")
Error in options(...) : invalid continue parameter
> options(continue=" ")
> ls(
 )

This could be properly documented as shown bellow. I do not think that
it is worth bothering with modifying the code to allow empty prompt and
continue argument.

Cheers!

Index: R/src/library/base/man/options.Rd
===================================================================
--- options.Rd  (revision 38890)
+++ options.Rd  (working copy)
@@ -58,7 +58,7 @@
       like \code{x <- 1:3; x[5] <- 6}.}

     \item{\code{continue}:}{a string setting the prompt used for lines
-      which continue over one line.}
+      which continue over one line. Must be at least of length 1.}

     \item{\code{defaultPackages}:}{the packages that are attached by
       default when \R starts up.  Initially set from value of the
@@ -179,7 +179,7 @@
       argument.}

     \item{\code{prompt}:}{a string, used for \R's prompt; should usually
-      end in a blank (\code{" "}).}
+      end in a blank (\code{" "}). Must be at least of length 1.}

-- 
Lep pozdrav / With regards,
    Gregor Gorjanc

----------------------------------------------------------------------
University of Ljubljana     PhD student
Biotechnical Faculty
Zootechnical Department     URI: http://www.bfro.uni-lj.si/MR/ggorjan
Groblje 3                   mail: gregor.gorjanc <at> bfro.uni-lj.si

SI-1230 Domzale             tel: +386 (0)1 72 17 861
Slovenia, Europe            fax: +386 (0)1 72 17 888

----------------------------------------------------------------------
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.



More information about the R-devel mailing list