[Rd] S4 class extends "data.frame", getDataPart sees "list"

2010-07-11 Thread Daniel Murphy
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

[Rd] Saving an R program as C Code

2010-07-11 Thread Aaron J. Ferguson
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 l

Re: [Rd] Large discrepancies in the same object being saved to .RData

2010-07-11 Thread Duncan Murdoch
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) 16

Re: [Rd] LinkingTo and C++

2010-07-11 Thread Dominick Samperi
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 di

Re: [Rd] Large discrepancies in the same object being saved to .RData

2010-07-11 Thread Prof Brian Ripley
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(

Re: [Rd] Large discrepancies in the same object being saved to .RData

2010-07-11 Thread Tony Plate
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)), value=TRUE) [1] " .. ..- attr(*

[Rd] "Undocumented code objects" message from missing alias

2010-07-11 Thread John Maindonald
If I omit the \alias{houseprices} from the second line of a data documentation file houseprices.Rd, R CMD check gives the warning message: " Undocumented code objects: houseprices All user-level objects in a package should have documentation entries. See the chapter 'Writing R documentation files