I'd like to be able to prevent the <<- assignment operator ("super
assignment") from assigning to the global environment unless the
variable already exists and is not locked. If it does not exist or is
locked, I'd like an error to be produced. This would allow me to
evaluate expressions with
I think that should be the default behaviour. It's pretty late to get
that into R 4.3.0, but I think your proposal (with check.superassignment
= FALSE being the default) could make it in, and 4.4.0 could change the
default to TRUE.
Duncan
On 19/03/2023 12:08 p.m., Henrik Bengtsson wrote:
Not sure who is the webadmin for
https://cran.r-project.org/sources.html, so posting it here:
I just noticed it's not straightforward to find the Subversion URL for
the R source code. A natural search would be to go to
https://cran.r-project.org/, then click 'Source code' to get to
On 19/03/2023 2:43 p.m., Gabriel Becker wrote:
I have to say <<- is a core debugging tool when assigning into the
global environment. I suppose I could use assign but that would be
somewhat annoying.
That said I'm still for this change, the vast overwhelming number of
times that <<- is in my
Why should it make an exception for cases where the about-to-be-assigned-to
name is present in the global environment? I think it should warn or give
an error if the altered variable is in any environment on the search list.
-Bill
On Sun, Mar 19, 2023 at 10:54 AM Duncan Murdoch
wrote:
> I
On 19/03/2023 2:15 p.m., Bill Dunlap wrote:
Why should it make an exception for cases where the
about-to-be-assigned-to name is present in the global environment? I
think it should warn or give an error if the altered variable is in any
environment on the search list.
I'd say code like this
I have to say <<- is a core debugging tool when assigning into the global
environment. I suppose I could use assign but that would be somewhat
annoying.
That said I'm still for this change, the vast overwhelming number of times
that <<- is in my package code - already rare but it does happen - it
Dear All,
Following up on this, I was wondering whether it might be possible to
get a disposition from R developers.
I did find a way to produce a similar effect reasonably concisely using
call alchemy and lazy evaluation. The following function grabs the
specified arguments in the function
Dear BioC team,
I noticed that download stats for BioC packages are not accessible for months:
https://bioconductor.org/packages/stats/bioc/pathview/
https://bioconductor.org/packages/stats/bioc/BiocGenerics/
can you check on this? thanks.
Weijun Luo