R/parse_text.R

Defines functions parse_text

Documented in parse_text

# copied from Rdpack on 2014-03-30 and modified
#
#    TODO: remove the original from Rdpack after publishing "gbutils" on CRAN
#
                                                                       # 2014-04-06 cleaned up
parse_text <- function(text, ...,  keep = TRUE){            # see comments in parse_usage_text
   ks <- getOption("keep.source")
   if(!identical(keep, ks)){
       on.exit(options(keep.source = ks)) # restore previous value on exit
       options(keep.source = keep)
   }

   parse(text=text, ...)
}
GeoBosh/gbutils documentation built on June 25, 2022, 9:34 a.m.