Skip to content

quantstrat: Missing function?

5 messages · Daniel Cegiełka, km

#
try:

?getPosLimit


2010/7/1 km <krish.maheswaran at gmail.com>:
#
There is problem with NAMESPACE.
 You need add line:

export(getPosLimit) in to quantstrat/NAMESPACE file and then reinstall
quantstrat package.

regards,
daniel
km
#
Ok. Thx. I did that prior to posting.

Normally, I can see what the function is doing by typing the function name
at the prompt. In this case I cannot. So can I assume that this function is
there but not exposed?

Many thx.
#
2010/7/1 km <krish.maheswaran at gmail.com>:
Yes.

https://r-forge.r-project.org/scm/viewvc.php/pkg/quantstrat/R/traderules.R?view=markup&revision=347&root=blotter

if you have linux (or *nix):

wget https://r-forge.r-project.org/src/contrib/quantstrat_0.2.tar.gz
tar xvzf quantstrat*
echo "export(getPosLimit)" >> quantstrat/NAMESPACE
R CMD build quantstrat
R CMD INSTALL quantstrat_*

regards
daniel