Has anyone constructed a quine (\"A program that generates a copy of its own source text as its complete output\": http://www.nyx.net/~gthompso/quine.htm) in R? (The [quine] ta
If you want a function that returns a function.....maybe this?
junk <- function(...) {
function(...) {
structure(junk(...))
}
}
The output is:
> junk()
function(...) {
structure(junk(...))
}
> boo <- junk(999)
> boo
function(...) {
structure(junk(...))
}
>dput(boo)
function (...)
{
structure(junk(...))
}