Re: [R-SIG-Finance] Installed quantstrat along with blotter and FinancialInstrument but seems I'm missing .instrument

2013-01-02 Thread G See
The .instrument environment is now stored in the FinancialInstrument
NAMESPACE.

.instrument is now FinancialInstrument:::.instrument

 I don't know what the rest of the pdf does, so I'm not sure what's
keeping you from following through.  I suppose you could do this
assignment

.instrument - FinancialInstrument:::.instrument

I'd guess that will make things work for you since environments are by
reference, but it's probably necessary.  What specifically is holding
you back?

Garrett





On Wed, Jan 2, 2013 at 7:50 PM, rquantnoob kpomichow...@gmail.com wrote:
 I'm following quantstrat-I.pdf by Guy Yollin to learn the language.  But it
 seems the .instrument does not load for me as it does in the .pdf.
 Installing quanstrat, installed 3 packages, blotter,financialinstrument
 and quantstrat.

 .PDF example

 R Code:
 ls(all=T)
 [1] .blotter .instrument

 ___

 Mine.

 ls(all=T)
 [1] .blotter

 Since I'm missing .instrument it isn't allowing me to follow through with
 the next step.

 The installation seemed to have gone through fine, please help.

 Thank you.



 --
 View this message in context: 
 http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469.html
 Sent from the Rmetrics mailing list archive at Nabble.com.

 ___
 R-SIG-Finance@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-sig-finance
 -- Subscriber-posting only. If you want to post, subscribe first.
 -- Also note that this is not the r-help list where general R questions 
 should go.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.


Re: [R-SIG-Finance] Installed quantstrat along with blotter and FinancialInstrument but seems I'm missing .instrument

2013-01-02 Thread G See
I mean it's probably NOT necessary to assign it to your workspace.

On Wed, Jan 2, 2013 at 8:04 PM, G See gsee...@gmail.com wrote:
 The .instrument environment is now stored in the FinancialInstrument
 NAMESPACE.

 .instrument is now FinancialInstrument:::.instrument

  I don't know what the rest of the pdf does, so I'm not sure what's
 keeping you from following through.  I suppose you could do this
 assignment

 .instrument - FinancialInstrument:::.instrument

 I'd guess that will make things work for you since environments are by
 reference, but it's probably necessary.  What specifically is holding
 you back?

 Garrett





 On Wed, Jan 2, 2013 at 7:50 PM, rquantnoob kpomichow...@gmail.com wrote:
 I'm following quantstrat-I.pdf by Guy Yollin to learn the language.  But it
 seems the .instrument does not load for me as it does in the .pdf.
 Installing quanstrat, installed 3 packages, blotter,financialinstrument
 and quantstrat.

 .PDF example

 R Code:
 ls(all=T)
 [1] .blotter .instrument

 ___

 Mine.

 ls(all=T)
 [1] .blotter

 Since I'm missing .instrument it isn't allowing me to follow through with
 the next step.

 The installation seemed to have gone through fine, please help.

 Thank you.



 --
 View this message in context: 
 http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469.html
 Sent from the Rmetrics mailing list archive at Nabble.com.

 ___
 R-SIG-Finance@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-sig-finance
 -- Subscriber-posting only. If you want to post, subscribe first.
 -- Also note that this is not the r-help list where general R questions 
 should go.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.


Re: [R-SIG-Finance] Installed quantstrat along with blotter and FinancialInstrument but seems I'm missing .instrument

2013-01-02 Thread G See
 getInstrument(USD)
primary_id :USD
currency   :USD
multiplier :1
tick_size  :0.01
identifiers: list()
type   :currency

Please have a look at the demo directory of the package.

Best,
Garrett

On Wed, Jan 2, 2013 at 8:08 PM, rquantnoob kpomichow...@gmail.com wrote:
 First, thank you for taking your time to reply to my message.

 Here is the next step that perhaps will shed light on what's happening.

 currency(USD)
 [1] USD

   get(USD,envir=.instrument)
 Error in get(USD, envir = .instrument) : object '.instrument' not found





 --
 View this message in context: 
 http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469p4654475.html
 Sent from the Rmetrics mailing list archive at Nabble.com.

 ___
 R-SIG-Finance@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-sig-finance
 -- Subscriber-posting only. If you want to post, subscribe first.
 -- Also note that this is not the r-help list where general R questions 
 should go.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.


Re: [R-SIG-Finance] Installed quantstrat along with blotter and FinancialInstrument but seems I'm missing .instrument

2013-01-02 Thread G See
If you specifically want to use get

 get(USD, envir=FinancialInstrument:::.instrument)
primary_id :USD
currency   :USD
multiplier :1
tick_size  :0.01
identifiers: list()
type   :currency

or, I think this works too

 .instrument - FinancialInstrument:::.instrument
 get(USD, envir=.instrument)
primary_id :USD
currency   :USD
multiplier :1
tick_size  :0.01
identifiers: list()
type   :currency

Garrett

On Wed, Jan 2, 2013 at 8:11 PM, G See gsee...@gmail.com wrote:
 getInstrument(USD)
 primary_id :USD
 currency   :USD
 multiplier :1
 tick_size  :0.01
 identifiers: list()
 type   :currency

 Please have a look at the demo directory of the package.

 Best,
 Garrett

 On Wed, Jan 2, 2013 at 8:08 PM, rquantnoob kpomichow...@gmail.com wrote:
 First, thank you for taking your time to reply to my message.

 Here is the next step that perhaps will shed light on what's happening.

 currency(USD)
 [1] USD

   get(USD,envir=.instrument)
 Error in get(USD, envir = .instrument) : object '.instrument' not found





 --
 View this message in context: 
 http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469p4654475.html
 Sent from the Rmetrics mailing list archive at Nabble.com.

 ___
 R-SIG-Finance@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-sig-finance
 -- Subscriber-posting only. If you want to post, subscribe first.
 -- Also note that this is not the r-help list where general R questions 
 should go.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.


Re: [R-SIG-Finance] Installed quantstrat along with blotter and FinancialInstrument but seems I'm missing .instrument

2013-01-02 Thread rquantnoob
That worked, you are awesome!

Thank you so much.



--
View this message in context: 
http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469p4654482.html
Sent from the Rmetrics mailing list archive at Nabble.com.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.


Re: [R-SIG-Finance] Installed quantstrat along with blotter and FinancialInstrument but seems I'm missing .instrument

2013-01-02 Thread rquantnoob
I don't see your last post but I have the email.  Thank you for your
suggestion and I appreciate it, I started yesterday I'm really new, I'll
take anything at this point. :)



--
View this message in context: 
http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469p4654484.html
Sent from the Rmetrics mailing list archive at Nabble.com.

___
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should 
go.