[R] Debugging functions defined (locally) inside another functions
Iago Giné Vázquez
|@go@g|ne @end|ng |rom @jd@e@
Fri Apr 12 14:15:07 CEST 2024
Hi all, I am trying to debug an error of a function g defined and used inside another function f of a package.
So I have
f <- function(whatever){
...
g <- function(whatever2){
...
}
...
}
If I wanted to debug some thing directly inside f I would do debug(f). But this does not go inside g code. On the other hand, debug(g) does not work as g is not a defined function in the namespace of the package.
Is there some way to debug errors inside g?
Thank you in advance.
All the best,
Iago
[[alternative HTML version deleted]]
More information about the R-help
mailing list