How to capture console output in R language? -


i'm running script of r, , script i'm using function system() delete directory, problem have problem it, , need know specific problem, don't have opened console verify, how can capture of output, message, , exception in console, , may redirect file. i'm trying sink(), , capture.output() don't know why doesn't work me.

example:

system("rm -r ../dirtodelete") "capture message throwing function" 

thanks all.

see help(system) details setting intern may need:

r> txt <- system("date", intern=true) r> txt [1] "tue sep 24 10:08:23 cdt 2013" r>  

as removing files (and directories), see help(unlink).


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -