Re: [Rd] [External] exists, get and get0 accept silently inputs of length > 1

2020-11-16 Thread Hugh Parsonage
I noticed the recent commit to R-dev (r79434). Is this wise? I've often used get() in constructions like for (j in ls()) if (is.numeric(x <- get(j))) ... (and often interactively, rather than in a package) Am I to understand that get(j) will now be equivalent to `j` even if j is a string referr

Re: [Rd] [External] exists, get and get0 accept silently inputs of length > 1

2020-11-16 Thread Gabriel Becker
Hi all, I have used variable values in get() as well, and including, I think, in package code (though pretty infrequently). Perhaps a character.only argument similar to library? ~G On Mon, Nov 16, 2020 at 5:31 PM Hugh Parsonage wrote: > I noticed the recent commit to R-dev (r79434). Is this

Re: [Rd] [External] exists, get and get0 accept silently inputs of length > 1

2020-11-16 Thread luke-tierney
Come on, folks. There is no NSE involved in calls to get(): it's standard evaluation all the way into the C code. Prior to the change a first argument that is anything other than a character vector would produce an error. After the change, passing in a symbol will do the obvious thing. Code that w

Re: [Rd] [External] exists, get and get0 accept silently inputs of length > 1

2020-11-16 Thread Gabriel Becker
Hi Luke et al., Apologies. I knew there was no NSE before but incorrectly inferred from the previous message that some had been added. Should have looked at the commit myself before chiming in. Sorry for the noise. ~G On Mon, Nov 16, 2020 at 8:39 PM wrote: > Come on, folks. There is no NSE inv