# NOT RUN {
pd <- readProfileData(system.file("samples", "glmEx.out", package="proftools"))
printProfileCallGraph(pd)
# }
# NOT RUN {
## If you have graphviz and cgprof installed on a UNIX-like system
## then in R do:
pd <- readProfileData(system.file("samples", "glmEx.out", package="proftools"))
printProfileCallGraph(pd, "foo.graph")
## and then in a shell do (to use the interactive dotty):
cgprof -TX foo.graph
## or (to create a postscript version and view with gv):
cgprof -Tps foo.graph > foo.ps
gv foo.ps
# }
Run the code above in your browser using DataLab