Skip to content
Prev 62249 / 63424 Next

capture "->"

Dear Duncan,

On Fri, Mar 1, 2024 at 11:30?AM Duncan Murdoch <murdoch.duncan at gmail.com>
wrote:
Thank you, this gets me closer but it still needs a little push:
x <- substitute(x)
  return(attr(x, "srcref")[[2]])
}
NULL

This seems to work, however:
A -> B

Is there a way to treat the formula as if it was enclosed between the curly
brackets?
Dmitri