[Blotter-commits] r213 - pkg/blotter/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Jan 28 17:03:54 CET 2010
Author: braverock
Date: 2010-01-28 17:03:54 +0100 (Thu, 28 Jan 2010)
New Revision: 213
Modified:
pkg/blotter/R/updatePortf.R
Log:
- remove extraneous instrument check
Modified: pkg/blotter/R/updatePortf.R
===================================================================
--- pkg/blotter/R/updatePortf.R 2010-01-28 15:11:34 UTC (rev 212)
+++ pkg/blotter/R/updatePortf.R 2010-01-28 16:03:54 UTC (rev 213)
@@ -21,11 +21,7 @@
symbols = names(Portfolio)
for(symbol in symbols){
tmp_instr<-try(getInstrument(symbol))
- if(inherits(tmp_instr,"try-error") | !is.instrument(tmp_instr)){
- message(paste("Instrument",symbol," not found, assuming non-synthetic"))
- } else {
- updatePosPL(pname, symbol, Dates, Cl(get(symbol)))
- }
+ updatePosPL(pname, symbol, Dates, Cl(get(symbol)))
}
return(pname) #not sure this is a good idea
}
More information about the Blotter-commits
mailing list