View source: R/cheers_checker.R
extract_function_name | R Documentation |
Extract function name from a long string. This works by identifying "function(" in the string and then finding the operand before and splitting on that before keeping the character there.
extract_function_name(string)
string |
A string containing a function definition, this must contain the word 'function' |
A string containing the function name
extract_function_name("better_name <- function(x){\n more code} asfdas <- function(x){}")
extract_function_name("better_name <- function(x){\n more code}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.