On Wed, 21 Mar 2012, Vitalie Spinu wrote:

Vitalie Spinu <spinu...@gmail.com>
on Wed, 21 Mar 2012 14:39:52 +0100 wrote:

<luke-tier...@uiowa.edu>
on Wed, 21 Mar 2012 07:46:21 -0500 wrote:

 >> I can't reproduce this in either 2.14.1 or R-devel.

 > Hm .. I cannot reproduce it, nor with the latest R-devel, nor with 2.14.2
 > anymore. Some local glitch or something ...

Instead I can reproduce similar problem as pointed by Feng:

compiler::enableJIT(1)
foo <- function(){
   browser()
   cat("here\n")
   cat("here\n")
}

foo()

and then "n RET". Everything is skipped.

Then the cunction call continues as it would vor 'c' -- you can't
single step through compiled code (and debugging a compiled function
switches to the interpreted version for that reason). I thought I had
put a note about this in ?browser and ?debug but apparently not --
will do soon. Thanks for pointing this out.

luke


If this is the intended behavior then a very loud note would be really
welcome in the "compile" help page.

Thanks,
Vitalie.

version
              _
platform       i686-pc-linux-gnu
arch           i686
os             linux-gnu
system         i686, linux-gnu
status         Under development (unstable)
major          2
minor          16.0
year           2012
month          03
day            20
svn rev        58793
language       R
version.string R Under development (unstable) (2012-03-20 r58793)



--
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
   Actuarial Science
241 Schaeffer Hall                  email:   luke-tier...@uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to