Duncan Murdoch <[EMAIL PROTECTED]> wrote:
> I think the cost of duplicating as.raw is worse than the cost of using
> extra memory. If the lack of symmetry bothers you, a solution is to
> require a raw object as input.
It wouldn't exactly be duplicating as.raw since this way of converting
to ra
I've poked in the source a bit. Here are some notes in case someone
has time to look into this.
The main internal difference between <<- and <- for complex
assignments is that <- calls EnsureLocal which calls duplicate on the
value of the left hand side value if NAMED == 2. In principle I don't
[EMAIL PROTECTED] wrote:
> Duncan Murdoch <[EMAIL PROTECTED]> wrote:
>
>>>Having a rawConnection() entry point is simple enough. Seeking also
>>>seems straightforward. I'm not so sure about using as.raw(). I
>>>wondered about that, but also thought that rather than coercing to
>>>raw, it might
Another variant of what is probably the same issue:
> setClass("foo", representation(a = "numeric"))
[1] "foo"
> f <- function() [EMAIL PROTECTED] <<- 2
> x <- new("foo",a=1)
> y <- x
> f()
> x
An object of class âfooâ
Slot "a":
[1] 2
> y
An ob
> Tuszynski, Jaroslaw W writes:
> Hi,
> My package "caMassClass" depends on several other packages, one of them
> "PROcess" residing on "Bioconductor" website. Bioconductor repository is
> not, listed in default set of repositories in current version of R (Windows
> R 2.1.1). As a result peopl
Hi,
My package "caMassClass" depends on several other packages, one of them
"PROcess" residing on "Bioconductor" website. Bioconductor repository is
not, listed in default set of repositories in current version of R (Windows
R 2.1.1). As a result people installing my package have to change that
de
[EMAIL PROTECTED] wrote:
> Gents: (alas, I think no ladies need to be included in the salutation)
May I ask why you think R-devel (to which R-bugs stuff is forwarded) is
only read by males?
Sounds a little bit discriminating ("Only males produce bugs, females
simply produce perfect code and d
Duncan Murdoch <[EMAIL PROTECTED]> wrote:
> >
> > Having a rawConnection() entry point is simple enough. Seeking also
> > seems straightforward. I'm not so sure about using as.raw(). I
> > wondered about that, but also thought that rather than coercing to
> > raw, it might make more sense to ca
Ahh. I didn't notice that my fingers had used \code() inside of the example
section. I've removed them, and everything seems to be working properly
now.
-G
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, Septem
Gents: (alas, I think no ladies need to be included in the salutation)
The apply() Help file says
"...
If the calls to FUN return vectors of different lengths, apply returns a
list of length dim(X)[MARGIN]. "
Shouldn't that be:
"If the calls to FUN return vectors of different lengths, apply ret
[CCing to r-bugs to inform people that we have looked at it.]
Greg,
you sent me the example which can be reduced to an example.Rd file that
contains the following Example section:
\examples{
# \code{} \code{}
foo <- function()
{
}
}
ca
This happens because you get a primitive function. However, I believe
Re() is already an generic function ("too") internally, so you do not
have to create your own and redefine the default one. (I'm not sure if
there is another way to tell if a primitive function is also a generic
function tha
Hi
section 6.1 of R-exts suggests that a package can take over a
function in the base
package and make it generic.
I want to do this with Re() and have the following lines in my R code:
"Re" <- function(x){UseMethod("Re" )}
"Re.default" <- get("Re" ,pos=NULL,mode="function")
"Re.octonion" <
The maximum length of a character string returned by strwrap,
i.e. max(nchar(strwrap(x,width))), never in my experience exceeds
width-2 (unless x contains a word that is longer than this).
This is not exactly a bug -- width is described only as a "target
column for wrapping lines" -- but seems odd.
On Thu, Sep 01, 2005 at 01:39:52PM +0200, Martin Maechler wrote:
> >> getwd()proc.time()
> StEgl> Error: syntax error Execution halted $
>
> aahh, now I finally understand via some people append
> those **ugly** unneeded ';' to the end of almost every line of R
> code. It would have help
> You didn't tell us the *platform* you run R on
> (and BATCH does depend on the platform),
> but I know that it's a version of unix, Linux I suppose?
Thanks Martin. Yes, linux - scientific linux 3 here.
__
R-devel@r-project.org mailing list
https
> "StEgl" == Stephen Eglen <[EMAIL PROTECTED]>
> on Thu, 1 Sep 2005 12:09:15 +0100 writes:
StEgl> If the last line of an R script does not have a
StEgl> trailing newline, a small errror is produced at the
StEgl> end of the script.
StEgl> Small example. If file eg.r co
If the last line of an R script does not have a trailing newline, a
small errror is produced at the end of the script.
Small example. If file eg.r contains one line:
getwd()
and there is no newline after the closing paren
$ R CMD BATCH eg.r
produces an error:
$ cat eg.r.Rout
R : Copyright 20
[EMAIL PROTECTED] wrote:
> Duncan Murdoch <[EMAIL PROTECTED]> wrote:
>
>
>>I would implement it differently from the way you did. I'd call it
>>a rawConnection, taking a raw variable (or converting something else
>>using as.raw) as the input, and providing both text and binary
>>read/write modes
We plan to release R version 2.2.0 on October 6. Daily alpha releases
will be available after the "Grand feature" freeze on September 8 and
beta releases from September 22. The full schedule is available on
http://developer.r-project.org (pending propagation delay from
https://svn.r-project.org/R-
Full_Name: Knut Krueger
Version:
OS:
Submission from: (NULL) (217.250.214.33)
Maybe it is an idea to copy the hints f.e -> help.search("...") in the
commandline or in the memory to paste it into the commandline.
maybe you could build in an option entry to start the search with help.search
autom
21 matches
Mail list logo