Skip to content
Back to formatted view

Raw Message

Message-ID: <6375F757-9E2A-48A2-B4FB-C2E60B207324@comcast.net>
Date: 2016-08-31T15:11:01Z
From: David Winsemius
Subject: source() does not include added code
In-Reply-To: <2d5ce5c3-5c16-1f56-fe85-62868614030e@gmail.com>

> On Aug 31, 2016, at 8: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
>  https://r-forge.r-project.org/R/?group_id=316
> install.packages("quantstrat", repos="http://R-Forge.R-project.org")
> 
> 2. I added this line at the end of the R file:
> 
>    t(tradeStats("macross")
> 
> 3. When I enter:
>     source('maCross.R')
> 
> at the prompt, it fails to process the added line of code.

Have you read the help page? On my machine the default for verbose appears to be 

getOption("verbose")
[1] FALSE

> 
> Why not?
> 
> --DAE
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA