search for: islinecomplet

Displaying 1 result from an estimated 1 matches for "islinecomplet".

Did you mean: islinecomplete
2006 Oct 29
3
R GUI API: suggestion for R function to put in there?
...is is discussed in a previous thread. We now have withVisible(). - To know if some R code is complete or is continued to the next line. The following trick was suggested by Peter Dalgaard once, but it is fragile because it depends on the way R prints errors, and that may change in the future: isLineComplete <- function(x) { # x is a character string vector with R code # The function determines if the parser is satisfied with it # or it needs more input (code is continued at the next line) # First parse code con <- textConnection(x) expr <- try(parse...