move.Rd
Move stan code elsewere
move(x, lines, ...)
a stanedit
object
vector of line numbers to move
arguments passed to insert_lines
a character vector of variable names
model_file_name <- system.file(package = "stanedit", "regression.stan")
reg <- stanedit(filename = model_file_name)
move(reg, find_declaration(reg, "alpha"), at_end_of = "data")
#> data {