Re: [R] Not display message when using system()

2014-08-31 Thread Henrik Bengtsson
On Sun, Aug 31, 2014 at 6:49 AM, Marc Girondot wrote: > Dear Henrik and list-members, > > Thanks for your proposition but it is the same: > > For example, no error message but no result: >> pathfile <- system2(command="find", args="$HOME -type f -name >> 'PuertoSanJose.csv'", stderr = FALSE, stdou

Re: [R] Not display message when using system()

2014-08-31 Thread Marc Girondot
Dear Henrik and list-members, Thanks for your proposition but it is the same: For example, no error message but no result: > pathfile <- system2(command="find", args="$HOME -type f -name 'PuertoSanJose.csv'", stderr = FALSE, stdout="") /Users/marc/Dropbox/DropBoxPerso/Data_Ale/Original/PuertoSa

Re: [R] Not display message when using system()

2014-08-29 Thread Henrik Bengtsson
As a start try to use system2() instead and look at its argument for how to capture stdout and/or stderr. It's a neater function. It may be that those messages cannot be captured easily, but hopefully they are. My $0.02 Henrik On Aug 29, 2014 12:21 PM, "Marc Girondot" wrote: > Dear list member

[R] Not display message when using system()

2014-08-29 Thread Marc Girondot
Dear list members, My question concerns the use of system() in R version 3.1.1 patched and MacosX 10.9.4. I want capture the result of a system command without displaying error message. I give exemple. In terminal, if I do this command: find $HOME -type f -name 'PuertoSanJose.csv' I get the