[R] Unexpected input error

Alan Randolph
Thu, 26 Sep 2013 19:35:46 -0000

Hi,
I am newbie to R so pardon me if this is not the forum for asking this question.
I am getting the error "unexpected input in "evalq({‚" in the
Boost Tutorial example section 13.3 of Graham William's, "Data Mining
with Rattle and R.  Below is the line as I have entered it and version
information.  (note: 2.14.2 is the latest version I can get to run on my
MacBookPro)
What can I can I try other than other R versions to resolve this error?

> evalq({

    data <- weather

    nobs <- nrow(weather)

    vars <- -grep('^(Date|Location|RISK_)', names(data))

    form <- formula(RainTomorrow ~ .)

    target <- all.vars(form)[1]

    set.seed(42)

    train <- sample(nobs, 0.7*nobs)

}, weatherDS)

Error: unexpected input in "evalq({‚"
> Mac OS X version 10.8.5
> platform       i386-apple-darwin9.8.0
> arch           i386
> os             darwin9.8.0
> system         i386, darwin9.8.0
> status
> major          2
> minor          14.2
> year           2012
> month          02
> day            29
> svn rev        58522
> language       R
> version.string R version 2.14.2 (2012-02-29)
>         [[alternative HTML version deleted]]
>


	[[alternative HTML version deleted]]