I have a program with many functions and function calls. So, I edit a function, and want the function definitions to be updated in R environment, but they are not actually called.
I defined a variable Update and when it is TRUE, I want to stop the program just after function definitions.
ReadInput <- function(...) ...
Analyze <- function(...) ...
WriteOutput <- function(...) ...
if (Update)
stop()
# main body
x <- ReadInput()
y <- Analyze(x)
WriteOutput(y)
I ran the stop() function, but it always returns an error message.
Is there any other way to stop this?