search for: check_use_of_r41_syntax

Displaying 6 results from an estimated 6 matches for "check_use_of_r41_syntax".

2025 Jan 16
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...e that uses |> in the source code would fail to parse and install. Index: src/library/tools/R/QC.R =================================================================== --- src/library/tools/R/QC.R (revision 87545) +++ src/library/tools/R/QC.R (working copy) @@ -10367,7 +10367,29 @@ } } +.check_use_of_R41_syntax <- +function(files) +{ + out <- vapply(files, + function(f) tryCatch( + any(getParseData(parse(f, keep.source = TRUE))$token %in% c("PIPE", "'\\\\'")), + error = function(e) FALSE + ), + FALSE) + out &...
2025 Jan 16
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...rse and install. > > Index: src/library/tools/R/QC.R > =================================================================== > --- src/library/tools/R/QC.R (revision 87545) > +++ src/library/tools/R/QC.R (working copy) > @@ -10367,7 +10367,29 @@ > } > } > > +.check_use_of_R41_syntax <- > +function(files) > +{ > + out <- vapply(files, > + function(f) tryCatch( > + any(getParseData(parse(f, keep.source = TRUE))$token %in% c("PIPE", "'\\\\'")), > + error = function(e) FALSE > +...
2025 Jan 17
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...Index: src/library/tools/R/QC.R >> =================================================================== >> --- src/library/tools/R/QC.R (revision 87545) >> +++ src/library/tools/R/QC.R (working copy) >> @@ -10367,7 +10367,29 @@ >> } >> } >> >> +.check_use_of_R41_syntax <- >> +function(files) >> +{ >> + out <- vapply(files, >> + function(f) tryCatch( >> + any(getParseData(parse(f, keep.source = TRUE))$token %in% c("PIPE", "'\\\\'")), >> + error = function...
2025 Jan 19
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...>>> =================================================================== >>> --- src/library/tools/R/QC.R (revision 87545) >>> +++ src/library/tools/R/QC.R (working copy) >>> @@ -10367,7 +10367,29 @@ >>> } >>> } >>> >>> +.check_use_of_R41_syntax <- >>> +function(files) >>> +{ >>> + out <- vapply(files, >>> + function(f) tryCatch( >>> + any(getParseData(parse(f, keep.source = TRUE))$token %in% c("PIPE", "'\\\\'")), >>> +...
2025 Jan 22
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...==================================================== >>>> --- src/library/tools/R/QC.R (revision 87545) >>>> +++ src/library/tools/R/QC.R (working copy) >>>> @@ -10367,7 +10367,29 @@ >>>> } >>>> } >>>> >>>> +.check_use_of_R41_syntax <- >>>> +function(files) >>>> +{ >>>> + out <- vapply(files, >>>> + function(f) tryCatch( >>>> + any(getParseData(parse(f, keep.source = TRUE))$token %in% c("PIPE", "'\\\\'")), &...
2025 Jan 22
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...================== > >>>> --- src/library/tools/R/QC.R (revision 87545) > >>>> +++ src/library/tools/R/QC.R (working copy) > >>>> @@ -10367,7 +10367,29 @@ > >>>> } > >>>> } > >>>> > >>>> +.check_use_of_R41_syntax <- > >>>> +function(files) > >>>> +{ > >>>> + out <- vapply(files, > >>>> + function(f) tryCatch( > >>>> + any(getParseData(parse(f, keep.source = TRUE))$token > %in% c("PIPE", &...