Tag Archives: FinancialInstrument

Solution for FinancialInstrument R package: object ‘.instrument’ not found

Solution for FinancialInstrument R package: object '.instrument' not found

If you get get error message of from FinancialInstrument:

 object '.instrument' not found 

ltportfolio='longtrend' > ltaccount='longtrend' > initPortf(ltportfolio,'GSPC', initDate=initDate) Error in exists(paste("portfolio", name, sep = "."), envir = .blotter,  :  object '.blotter' not found

solution:
Prior to 2012, the .instrument environment was also stored in the .GlobalEnv, but with FinancialInstrument version 0.10.0, it was moved to live in the top level of the package. Therefore, the .instrument environment doesn't get wiped out if the user clears their workspace. But, it appears to be missing unless you know where to look. This should work ls(FinancialInstrument:::.instrument) But, it's not as robust as using ls_instruments()

https://stat.ethz.ch/pipermail/r-sig-finance/2012q2/010169.html

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!