You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A feature I would find useful is to repeat the last call without having to pass any parameters.
When debugging if there is a complex setup to generate the parameters possibly done through a gui that runs a function f then it would nice to be able to re-run f without the gui by just running f(), say.
Currently I do this (plus various error check that are not shown):
f <- function(x) {
if (nargs() == 0) return(do.call("f", .GlobalEnv$.f))
assign(".f", mget(ls()), .GlobalEnv)
x+1
}
f(3)
## [1] 4
f() # rerun using last set of arguments
## [1] 4
The text was updated successfully, but these errors were encountered:
A feature I would find useful is to repeat the last call without having to pass any parameters.
When debugging if there is a complex setup to generate the parameters possibly done through a gui that runs a function f then it would nice to be able to re-run f without the gui by just running f(), say.
Currently I do this (plus various error check that are not shown):
The text was updated successfully, but these errors were encountered: