Created
June 23, 2015 15:23
-
-
Save nassimhaddad/b2025f02f0a58f808bfe to your computer and use it in GitHub Desktop.
Here's how to capture the call to a function - from within that function. And to get it into a string using deparse().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: http://r.789695.n4.nabble.com/get-arguments-passed-to-function-inside-a-function-td3783894.html | |
tmpfun2 <- function(x,y,z,...) { | |
( match.call() ) | |
} | |
temp <- (tmpfun2(1,2,3)) | |
temp <- deparse(temp) | |
class(temp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment