Re: [R] Regarding the De-bugger in R

2010-04-01 Thread Tal Galili
One way I can think of is putting your loop inside a function (let's say "func3") and then use: library(debug) mtrace(func3) func3() # and this at the end: mtrace.off() And see the steps... Tal Contact Details:--- Contact me:

Re: [R] Regarding the De-bugger in R

2010-04-01 Thread Ayush Raman
Snippet of my code: library(foreign) function1 <- function(y,t){ ###do some matrix operations ## } function2 <- function(y){ y1 = permute(y) F1 = function1(y1) } setwd("C:\\Results\\") ## Read Multiple Files files.total = list.files() for (j in files.total){ table1 = read.table(j) ###

Re: [R] Regarding the De-bugger in R

2010-04-01 Thread Tal Galili
Hi Ayush, Could you supply with a simple code to try to give an answer on ? Thanks, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebre

[R] Regarding the De-bugger in R

2010-04-01 Thread Ayush Raman
Hi, I would like to know if there is some debugger in R where I can check that I am not using or not doing calculation on my previously stored objects. I can't use rm (list = ls()) to remove all the objects since I am using a for loop for reading 500 files and making making common calculation for