Tools for tokenizing R code.
1 2 3 4 5
A file path.
R code as a character vector of length one.
data.frame with the following columns:
||The token's contents, as a string.|
||The row where the token is located.|
||The column where the token is located.|
||The token type, as a string.|
Line numbers are determined by existence of the
line feed character, under the assumption that code being tokenized
will use either
\n to indicate newlines (as on modern
Unix systems), or
\r\n as on Windows.
tokenize_string("x <- 1 + 2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.