Displaying 2 results from an estimated 2 matches for "r58001".
Did you mean:
58001
2011 Dec 29
1
Crashing R with readline()
I get the following with R v2.14.1 patched on Windows 7:
% Rterm --vanilla --silent
> sessionInfo()
R version 2.14.1 Patched (2011-12-26 r58001)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils...
2012 Jan 07
3
Putting an index explicitly into function code --- a curiosity.
I want to create a list of functions in a for loop, with the index
of the loop appearing explicitly in the function code.
After quite a bit of thrashing around I figured out how to do it.
Here is a toy example:
junk <- vector("list",4)
for(i in 1:4) {
itmp <- i
junk[[i]] <- eval(bquote(function(x){42 + .(itmp)*x}))
}
So I'm *basically* happy, but there's