R/trySource.R

### Try to source a script file and returns a structured error if it fails
### Romain Francois <francoisromain@free.fr>
trySource <- function (file)
{
	out <- try(source(file), silent = TRUE)
	if (inherits(out, "try-error"))
		out <- parseError(out)
	return(invisible(out))  
}

Try the svTools package in your browser

Any scripts or data that you put into this service are public.

svTools documentation built on May 2, 2019, 3:21 a.m.