[R-SIG-Finance] How to suppress getSymbols error message
George Kumar
grgkumar4 at gmail.com
Tue Dec 29 07:34:06 CET 2015
Hi all,
I am using getSymbols to with the following options:
setDefaults(getSymbols,src='csv')
The problem is that when it cannot find the file locally it gives an error
message like the following:
file abcd.csv does not exist in ....skipping ..
It is coming from the following lines of source code:
if(!file.exists(sym.file)) {
cat("\nfile ",paste(Symbols[[i]],extension,sep='.')," does not exist ",
"in ",dir,"....skipping\n")
next
}
If would have been nice if the cat statement above was under a if (verbose)
check.
Anyway to suppress this message ? I have tried using try statement too.
Still no luck.
Thanks in advance.
George
[[alternative HTML version deleted]]
More information about the R-SIG-Finance
mailing list