[Rd] using function names as parameters (PR#469)

hothorn@ci.tuwien.ac.at
Fri, 03 Mar 2000 09:10:59 -0000

When using a function name as parameter, here date, the following happends:

R> foo <- function(date=date()) cat(date, "\n")
R> foo()
Error in cat(date, "\n") : recursive default argument reference

R> foo("Good Morning!")
Good Morning!

works.

Torsten

--please do not edit the information below--

Version:
 platform = i686-unknown-linux
 arch = i686
 os = linux
 system = i686, linux
 status =
 major = 1
 minor = 0.0
 year = 2000
 month = February
 day = 29
 language = R

Search Path:
 .GlobalEnv, Autoloads, package:base