On Sun, 11 Jul 2010, Tony Plate wrote:
Another way of seeing the environments referenced in an object is using
str(), e.g.:
f1 - function() {
+ junk - rnorm(1000)
+ x - 1:3
+ y - rnorm(3)
+ lm(y ~ x)
+ }
v1 - f1()
object.size(f1)
1636 bytes
grep(Environment, capture.output(str(v1)),
While linking to package shared libs is not possible in general, as Simon
point out, it is
possible under Windows, provided Windows knows how to find the library
linked to
at runtime (this requires a customized Makefile.win). One way this is done
under
Windows is simply to place the package/libs
On 11/07/2010 1:30 PM, Prof Brian Ripley wrote:
On Sun, 11 Jul 2010, Tony Plate wrote:
Another way of seeing the environments referenced in an object is using
str(), e.g.:
f1 - function() {
+ junk - rnorm(1000)
+ x - 1:3
+ y - rnorm(3)
+ lm(y ~ x)
+ }
v1 - f1()
object.size(f1)
1636
Is there anyway to say R procedures or packages as C code. Ideally, I want
to run a logistic regression in R but have the code available in C, or Java
or whatever. Thoughts?
[[alternative HTML version deleted]]
__
R-devel@r-project.org mailing
R-Devel:
When I get the data part of an S4 class that contains=data.frame, it gives
me a list, even when the data.frame is the S4 version:
d-data.frame(x=1:3)
isS4(d)
[1] FALSE # of course
dS4-new(data.frame,d)
isS4(dS4)
[1] TRUE# ok