[R] source() does not include added code
josh.m.ulrich at gmail.com
Wed Aug 31 17:10:58 CEST 2016
On Wed, Aug 31, 2016 at 10:05 AM, Doug Edmunds <dougedmunds at gmail.com> 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
> install.packages("quantstrat", repos="http://R-Forge.R-project.org")
> 2. I added this line at the end of the R file:
> 3. When I enter:
> at the prompt, it fails to process the added line of code.
> Why not?
My guess is that you forgot to save the file after you made your
change. That never happens to me. :P
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Joshua Ulrich | about.me/joshuaulrich
FOSS Trading | www.fosstrading.com
R/Finance 2016 | www.rinfinance.com
More information about the R-help