search for: dim_r_memoized_2

Displaying 2 results from an estimated 2 matches for "dim_r_memoized_2".

Did you mean: dim_r_memoized
2014 Nov 24
1
Error "promise already under evaluation ..." with function(x, dim=dim(x))
...the case. BTW, is the following, which is ~2 times as fast as dim_R_memoized(), valid in an R package? Will it set the local 'dim' variable when the package is loaded, which I assume is safe/legal, or before? I didn't include it above, because I wasn't sure it was safe/valid. dim_R_memoized_2 <- local({ dim_local <- base::dim function(x) dim_local(x) }) Thanks, /Henrik > > Duncan Murdoch > > > > > > > Thanks, > > > > Henrik > > > > ______________________________________________ > > R-devel at r-project.org mailing l...
2014 Nov 24
0
Error "promise already under evaluation ..."
...11549 13474 15105.950 14245 15399 60824 1000 c > dim_1(x) 1 771 2801.544 771 1156 1806225 1000 a > dim_R(x) 5390 6930 8077.753 7315 8085 249069 1000 b > dim_R_memoized(x) 1156 1926 2520.119 2310 2695 73528 1000 a > dim_R_memoized_2(x) 385 771 1089.243 771 1156 20019 1000 a > dim_illegal(x) 0 1 161.480 1 386 2311 1000 a > sum(x) 10395 15784 16459.454 15785 16169 114333 1000 c > > So, my best shot on the original problem would now be to either use: >...