[Rd] Proposing a change in the base::sink interface for type argument

2015-03-17 Thread Hamid Bazzaz
Hi folks, Here is the current interface: sink(file=NULL, append=FALSE, type = c("output", "message"), split=FALSE) However, reading the implementation there is implicit assumption that type is a single character value: https://github.com/wch/r-source/blob/trunk/src/library/base/R/sink.R#L23 I'm

Re: [Rd] Proposing a change in the base::sink interface for type argument

2015-03-18 Thread Hamid Bazzaz
rg(arg) : 'arg' should be one of "aa", "bb", "cc" >> > >> > foo('aa') >> aa >> >> >> >> >> Being "non-intuitive" or puzzling to people coming from other languages is >> not a suff