~ubuntu-branches/ubuntu/saucy/ess/saucy-proposed

« back to all changes in this revision

Viewing changes to etc/R-ESS-bugs.R

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2010-11-08 16:52:27 UTC
  • mfrom: (1.2.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20101108165227-u844l0tlegcdn89k
Tags: 5.12-1
* New upstream version released today

* debian/emacen-startup: Follow suggestion by Kevin Ryde in #594750 and
  use debian-pkg-add-load-path-item as well; also improved emacsen-install
  script by using soft links instead of copies  (Closes: #594750)

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
    return(x)
230
230
}
231
231
 
 
232
 
 
233
## From: "Sebastian P. Luque" <spluque@gmail.com>
 
234
## To: ess-bugs@stat.math.ethz.ch
 
235
## Subject: [ESS-bugs] ess-mode 5.12; `ess-indent-line' error
 
236
## Date: Tue, 17 Aug 2010 13:08:25 -0500
 
237
 
 
238
## With the following input, and point on the line with "Table 8.3":
 
239
 
 
240
if (require(lme4)) {
 
241
    ## Model in p. 213
 
242
    (fm1 <- lmer(logFEV1 ~ age + log(height) + age0 + log(height0) + (age | id),
 
243
                 data=fev1, subset=logFEV1 > -0.5))
 
244
    ## Table 8.3
 
245
    VarCorr(fm1)$id * 100
 
246
    
 
247
    ## Model in p. 216
 
248
    (fm2 <- update(fm1, . ~ . - (age | id) + (log(height) | id)))
 
249
}
 
250
 
 
251
## hitting TAB (`ess-indent-command'), which calls `ess-indent-line' I get
 
252
## the following trace:
 
253
 
 
254
## ....: (scan-error "Containing expression ends prematurely" 20 20)
 
255
##   scan-sexps(177 -2)
 
256
##   forward-sexp(-2)
 
257
##   ...
 
258
##   ess-continued-statement-p()
 
259
## ......................
 
260
 
 
261
## Interestingly, if the lines 2-4 are absent, then the problem is gone.
 
262
## The problem is also there in ESS 5.11.
 
263
 
 
264
## I'll try to find out what is going on in `ess-continued-statement-p' but
 
265
## given that I'm not very familiar with the stuff in ess-mode.el, I'm
 
266
## submitting the report in case somebody can detect the issue sooner.