[R] cannot have a function argument named 'break'

Spencer Graves spencer.graves at pdf.com
Sun Nov 2 22:07:00 CET 2003


Yup.  R 1.8.0 gives me a syntax error from "if", also: 

 > iff <- function(if)if
Error: syntax error

spencer graves

Thomas W Blackwell wrote:

>Dear list  -
>
>I just discovered to my surprise that I cannot define
>a function with an argument named 'break' or 'while'!
>'breaks' is okay.  Maybe this is no surprise to the R
>developers.
>
>R-1.7.1,  2003-06-16,  i686-pc-linux-gnu.
>
>-  tom blackwell  -  u michigan medical school  -  ann arbor  -
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>  
>




More information about the R-help mailing list