From m@echler @ending from @t@t@m@th@ethz@ch  Mon Oct  8 12:53:22 2018
From: m@echler @ending from @t@t@m@th@ethz@ch (Martin Maechler)
Date: Mon, 8 Oct 2018 12:53:22 +0200
Subject: [Rd] Redundant code in 'split.default' in R devel
In-Reply-To: <812236401.4971991.1538759610466@mail.yahoo.com>
References: <812236401.4971991.1538759610466.ref@mail.yahoo.com>
 <812236401.4971991.1538759610466@mail.yahoo.com>
Message-ID: <23483.14114.153422.975557@stat.math.ethz.ch>

>>>>> Suharto Anggono via R-devel 
>>>>>     on Fri, 5 Oct 2018 17:13:30 +0000 writes:

> After r75387, function 'split.default' in R devel still has this part that no longer has effect.

>     lf <- levels(f)
>     y <- vector("list", length(lf))
>     names(y) <- lf

Indeed  -->   removed now.

Thank you very much, Suharto!
Martin

------- --------

"Exercise" (tongue in cheek) to the reader:

Write a "code walker" (an R function itself) that takes an
argument 'expr', which is an R expression (think of a *body* of a
function 'f')  and is able to  mark e.g.  warn about  such
"dead" code in 'expr' (and hence in function 'f' ...)  --- with 
the important underlying assumption that all functions that are
called inside 'f' have "no side effects".



[Rd] Redundant code in 'split.default' in R devel
Martin Maechler