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

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

2016-08-31 Thread Joshua Ulrich
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 in the *Details* section of help("source"): Note that running code via ‘source’ differs in a few

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. >

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

2016-08-31 Thread Joshua Ulrich
On Wed, Aug 31, 2016 at 10:05 AM, Doug Edmunds wrote: > 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 >

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

2016-08-31 Thread Sarah Goslee
If it doesn't do ANYTHING, you may have failed to save the file. Unless that file contains a function, in which case it isn't supposed to do anything except load the function into your global environment. But it should have thrown an error in that case, as Duncan said. On Wed, Aug 31, 2016 at

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

2016-08-31 Thread David Winsemius
> On Aug 31, 2016, at 8:05 AM, Doug Edmunds wrote: > > 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 >

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

2016-08-31 Thread Duncan Murdoch
On 31/08/2016 11:05 AM, Doug Edmunds wrote: 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