Re: [R] source() does not include added code

2016-08-31 Thread Doug Edmunds
Thank you. That explains it (auto-printing is not done). On 8/31/2016 8:35 AM, Joshua Ulrich wrote: I have quantstrat installed and it works fine for me. If you're asking why the output of t(tradeStats('macross')) isn't being printed, that's because of what's described in the first paragraph i

Re: [R] source() does not include added code

2016-08-31 Thread Doug Edmunds
1. File is (was) saved. 2. The added code is t(tradeStats("macross")) with 2 )'s. I'd appreciate if someone with QuantStrat installed, to try this and see if they get a different result. My R and RStudio and QuantStrat libraries are all current. I get the chart and this much output. > sour

[R] source() does not include added code

2016-08-31 Thread Doug Edmunds
I am trying to understand why "source" does not process all the code in this R file. 1. I copied maCross.R from the quantstrat/demo directory into my project area. QuantStrat is available at https://r-forge.r-project.org/R/?group_id=316 install.packages("quantstrat", repos="http://R-Forge.R-pr

[R] removing lines from text file

2012-08-22 Thread Doug Edmunds
I downloaded a text file which has several lines of text before the header line of the data, similar to this: ---start--- "Corn December 2012 (CZ2012)" Source: Wikiposit Open Data via wikiposit.org (http://wikiposit.org/uid?FUTURE.CZ2012) Update: http://wikiposit.org/w?action=dl&dltypes=comma