Built-ins where to_ast()
fails:
Adobe_glyphs
-- This is not a function; unclear how/what rstatic
should do with this or how it relates to code analysis.tools::charset_to_Unicode
-- This is not a function.[ ] package:stats - selfStart objects
[1] "SSasymp" "SSasympOff" "SSasympOrig" "SSbiexp"
[5] "SSfol" "SSfpl" "SSgompertz" "SSlogis"
[9] "SSmicmen" "SSweibull"
These are functions that have unusual classes.
[ ] Warnings about formals(args(fn))
on primitives that do not have named
parameters.
Code Normalization
repeat
is while (TRUE)
length(x) <- 6
as
"<-"(length(x), 6)
but the meaning is "length<-"(x, 6)
. That is, this is
a call to a replacement function, not an assignment to a call.return()
at end of function[x] non-breaking: dead code after return()
, next
, break
Code Analysis
[ ] Collect global uses by called functions. Currently toSSA()
only
detects global uses in the function being converted to SSA form (and not in
the functions that function calls).
Syntax Objects (ASTNode subclasses)
...
<<-
(
break
and next
invisible()
[
and [[
::
and :::
?Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.