Displaying 2 results from an estimated 2 matches for "testfun1".
Did you mean:
testfunc
2012 Mar 13
0
ess-tracebug to open a file
...hard work. I am
watching the project closely and witnessing the improvements day by day.
Besides I found a strange situation using `ess-tracebug'. Please tell me
if I am wrong or this is a bug.
Start Emacs with "emacs -Q" and load ESS and enable ess-tracebug.
Create a file named `testFun1.R' with the following contents
> testFun1<-function(x)
> {
> y <- x+2
> browser()
> return(y)
> }
>
> testFun1(2)
Then start R under the same directory and run the command
> source("testFun1.R")
which will show the following informati...
2012 Oct 07
3
get: problem with environments
Dear R users,
I am running R-2.15.1 in Linux Slackware64-14.0. Here is my minimal working example:
testfun <- function (x) {
a <- 0;
sapply(X="a", FUN=get, envir=sys.frame(which=x));
}
Inside R, that is R called from within a Linux terminal, the following code works:
testfun(x=5)
print(testfun(x=6))
But within rkward the above code fails and the following works:
testfun(x=1)