parse_code_blocks: extract code blocks from server.R code

Description Usage Arguments

View source: R/parse.R

Description

identify, annotate and extract code blocks in shiny server.R code. Annotating the name, function, body, options, expr and isolates <name> <- <function>\( <body> <options> { <expr> <isolates>} <options>\)

Usage

1
2
3
parse_code_blocks(code,
  regex_function = regex_pattern()$function_pattern,
  regex_block = regex_pattern()$shiny_server_blocks)

Arguments

code

string server.R code

regex_function

string regex pattern to detect function blocks

regex_block

string regex pattern to detect code blocks


basf/reactflush documentation built on Feb. 15, 2021, 12:12 a.m.