I am trying to setup Financial Instrument but I keep getting an error which
I cannot find the cause of.  I am trying to follow the instructions given
by Brian Peterson in previous postings about how to setup persistent data
collections.

I am running Windows 7 64Bit using RStudio version 0.94.106 and R version
2.13.1.  I primarily do things in RStudio but I do open an R window if I
run into issues just to confirm it is not the GUI.

My base_dir is C:/Users/Mark/Documents which is what I get when I run
getwd() or set a variable like mydir <- getwd().

I have a folder under this directory for data for the aussie dollar so
there is a folder called AUDUSD - C:/Users/Mark/Documents/AUDUSD

I updated my R Profile - and run the following from a command line to check
that it works - so that when I start RStudio everything should be setup
including loading packages and financial instruments:
library(quantmod)
library(FinancialInstrument)
currency("USD")
currency("AUD")
exchange_rate("AUDUSD","AUD","USD")

I set the symbol lookup:
setSymbolLookup.FI(base_dir=mydir, storage_method="rda", src="FI")

I also have a file in my base_dir and in the AUDUSD directory
2011.12.17.AUDUSD.rda

I can load this file straight from the base directory using the command:
load("2011.12.17.AUDUSD.rda")

However, when I run the command:
getSymbols("AUDUSD", src="FI")

I get the error:

Error in if (ssd[length(ssd)] != symbol) dir <- paste(dir, symbol, sep = "/") :
  argument is of length zero



I have tried looking through the getSymbols code and searching via RSeek
but cannot find an answer.  Any help would be appreciated.

	[[alternative HTML version deleted]]

