Understanding how .Internal C functions are handled in R
I wonder if anyone can illustrate to me how R executes a C call from an R command typed at the console prompt. I am particularly confused by R 's treatment of a) function arguments and b) the function call itself. Let's take an example, in this case set.seed() . Wondering how it works I type the name in at the prompt, get the source ( look here for more on that ), see there is eventually a .Internal(set.seed(seed, i.knd, normal.kind) , so dutifully look up the relevant function name in the .Internals section of /src/names.c , find it is called do_setseed and is in RNG.c which leads me to...