Skip to content
Back to formatted view

Raw Message

Message-ID: <1323686353881-4185492.post@n4.nabble.com>
Date: 2011-12-12T10:39:13Z
From: Alexander
Subject: Script analysing

Hello,
I am trying to write a script to analyse R scripts, which contain only
functions. Therefor, I want to test the R script if it contains onyl correct
code. Is there a nicer and more efficent function than

test <- try(source("someRscript"))
if(class(test) == "try-error"){
    print("Not executable")
}

?

Another question : Does a package exist to analyse functions? For example to
get all defined function names, argument, nestings, etc...
Does a package exists which creates a flowchart of a script which contains a
sequel of functions?

Thank you

--
View this message in context: http://r.789695.n4.nabble.com/Script-analysing-tp4185492p4185492.html
Sent from the R help mailing list archive at Nabble.com.