From h.wickham at gmail.com  Fri Feb 15 16:45:18 2013
From: h.wickham at gmail.com (Hadley Wickham)
Date: Fri, 15 Feb 2013 09:45:18 -0600
Subject: [Rd] Printing of anonymous functions in calls is sub-optimal
Message-ID: <CABdHhvEgK1g4gYhmovu_EbvSN185g9LnLAacC5ojWup3_aG07w@mail.gmail.com>

e.g.

substitute(f(x), list(f = function(x) x + 1))
# function (x)
# x + 1(x)

An extra pair of parentheses would really help:

(function(x)
x + 1)(x)

(Better indenting etc would be nice, but not necessary for correct
understand of the code)

Hadley

-- 
Chief Scientist, RStudio
http://had.co.nz/



[Rd] Printing of anonymous functions in calls is sub-optimal
Hadley Wickham