Skip to content
Prev 9202 / 15274 Next

Mulitple FI Sources

You should now be able to install with
install.packages("FinancialInstrument",
repos='http://r-forge.r-project.org')

It seems like R-Forge only builds for Windows every several days.  If
you build from source you don't have to wait on R-forge to build for
you.

In my last e-mail, I said the problem was with using setSymbolLookup
with a list.  The problem is really that getSymbols.FI will ignore
arguments you give it if it can find them in the SymbolLookup table.

I patched instrument or instrument_attr so that it works better when
you call them with the "src" argument.

Now, the only value that will be set in the SymbolLookup table will be
the src.  (i.e. "FI").  Anything else will be used to "setDefaults"

So, you should be able to do something like
stock("XXX", currency("USD"), src=list(src='FI', dir='tmpA', extension='rda'))
getSymbols('XXX')
getSymbols('XXX', dir='tmpB')
instrument_attr("XXX", "src", list(src='FI', dir='tmpB', extension='rda'))
getSymbols('XXX')

However, I did not update setSymbolLookup.FI yet.

Also, regarding getting data from the weekend, which we talked about
in our last on-list exchange, I added an argument to getSymbol.FI
called "days_to_omit"  which has a default value of c("Saturday",
"Sunday").
If you call getSymbols with days_to_omit=NULL or days_to_omit="" it
should attempt to get data for all days of the week.

If you use the install.packages command above, you should be able to
install packageVersion "0.9.20"  which has these changes in it.

Garrett
On Thu, Dec 29, 2011 at 6:43 PM, Mark Harrison <harrisonmark1 at gmail.com> wrote: