[Blotter-commits] r1036 - in pkg/FinancialInstrument: . R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sat Jun 2 21:14:48 CEST 2012
Author: gsee
Date: 2012-06-02 21:14:48 +0200 (Sat, 02 Jun 2012)
New Revision: 1036
Modified:
pkg/FinancialInstrument/DESCRIPTION
pkg/FinancialInstrument/R/saveInstruments.R
Log:
use seq_along instead of i:length to prevent error when loading empy instrument environment.
Modified: pkg/FinancialInstrument/DESCRIPTION
===================================================================
--- pkg/FinancialInstrument/DESCRIPTION 2012-06-02 15:08:44 UTC (rev 1035)
+++ pkg/FinancialInstrument/DESCRIPTION 2012-06-02 19:14:48 UTC (rev 1036)
@@ -11,7 +11,7 @@
meta-data and relationships. Provides support for
multi-asset class and multi-currency portfolios. Still
in heavy development.
-Version: 0.14.4
+Version: 0.14.5
URL: https://r-forge.r-project.org/projects/blotter/
Date: $Date$
Depends:
Modified: pkg/FinancialInstrument/R/saveInstruments.R
===================================================================
--- pkg/FinancialInstrument/R/saveInstruments.R 2012-06-02 15:08:44 UTC (rev 1035)
+++ pkg/FinancialInstrument/R/saveInstruments.R 2012-06-02 19:14:48 UTC (rev 1036)
@@ -90,7 +90,7 @@
require("utils")
if (is.environment(file_name) || is.list(file_name)) {
ilist <- as.list(file_name)
- for (i in 1:length(ilist)) {
+ for (i in seq_along(ilist)) {
assign(names(ilist)[i], ilist[[i]],
pos=FinancialInstrument:::.instrument)
}
More information about the Blotter-commits
mailing list