Displaying 4 results from an estimated 4 matches for "r_check_superassign".
2023 Mar 19
1
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
...; in the current
design. For those who truly intends to assign to the global, could
use assign(var, value, envir = globalenv()) or globalenv()[[var]] <-
value.
'R CMD check' could temporarily set 'check.superassignment = TRUE'
during checks. If we let environment variable
'R_CHECK_SUPERASSIGNMENT' set the default value of option
'check.superassignment' on R startup, it would be possible to check
packages optionally this way, but also to run any "non-trusted" R
script in the "strict" mode.
TEASER:
Here's an example why using <<- for assigning...
2023 Mar 19
2
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
...sign to the global, could
> > use assign(var, value, envir = globalenv()) or globalenv()[[var]] <-
> > value.
> >
> > 'R CMD check' could temporarily set 'check.superassignment = TRUE'
> > during checks. If we let environment variable
> > 'R_CHECK_SUPERASSIGNMENT' set the default value of option
> > 'check.superassignment' on R startup, it would be possible to check
> > packages optionally this way, but also to run any "non-trusted" R
> > script in the "strict" mode.
> >
> >
> > TEASER:...
2023 Mar 19
1
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
...those who truly intends to assign to the global, could
> use assign(var, value, envir = globalenv()) or globalenv()[[var]] <-
> value.
>
> 'R CMD check' could temporarily set 'check.superassignment = TRUE'
> during checks. If we let environment variable
> 'R_CHECK_SUPERASSIGNMENT' set the default value of option
> 'check.superassignment' on R startup, it would be possible to check
> packages optionally this way, but also to run any "non-trusted" R
> script in the "strict" mode.
>
>
> TEASER:
>
> Here's an ex...
2023 Mar 19
1
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
...> > use assign(var, value, envir = globalenv()) or globalenv()[[var]] <-
> > > value.
> > >
> > > 'R CMD check' could temporarily set 'check.superassignment = TRUE'
> > > during checks. If we let environment variable
> > > 'R_CHECK_SUPERASSIGNMENT' set the default value of option
> > > 'check.superassignment' on R startup, it would be possible to check
> > > packages optionally this way, but also to run any "non-trusted" R
> > > script in the "strict" mode.
> > >
> &g...