It depends on the example, as you might guess.
profile() is a generic function in stats. Namespaces are not going to
help there, as it is normally called by users (it is also called by some
confint() methods, and that will be protected by namespaces).
For functions intended to be used by end-u
Hi,
I read the help page and saw that warnings() actually prints the warning
message and stores warning in top-level variable "last.warning". So it seems
that it is almost impossible to access last warning from java code. I got
another solution of fetching warning messages by storing warning m
Several times my packages have fallen foul of the latex check at the
uploading-to-CRAN stage, creating extra work for Kurt Hornik. I've never
bothered trying to get latex working on my own packages (happy with
vanilla help) but am told that "latex is the closest thing to a syntax
checker for Rd fil
On 8/22/05, hadley wickham <[EMAIL PROTECTED]> wrote:
> Ok, here's another best practices question - let's say I'm writing a
> package and I want to use a function name that is already claimed by a
> function in the base R packages. For the sake of argument, let's
> pretend this function is for pr
Ok, here's another best practices question - let's say I'm writing a
package and I want to use a function name that is already claimed by a
function in the base R packages. For the sake of argument, let's
pretend this function is for profiling the performance of a function
(like Rprof for example)
Erich Neuwirth wrote:
>>Try do.call like this:
>>
>>ff <- x ~ g*h
>>do.call("substitute", list(ff, list(x = as.name("weight"
>>
>
>
> It is even more complicated.
> All I know is that ff is a formula with an expression on the left hand
> side. This expression needs to be replaced by "weights"
I've just implemented a generalization of R's text connections, to
also support reading/writing raw binary data. There is very little
new code to speak of. For input connections, I wrote code to populate
the old text connection buffer from a raw vector, and provided a new
raw_read() method. For
On Mon, Aug 22, 2005 at 07:42:21AM +0100, Prof Brian Ripley wrote:
> What locale is this?
>
> My guess is that this is a UTF-8 locale.
Yes.
> Sys.getlocale()
[1]
"LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8
> Try do.call like this:
>
> ff <- x ~ g*h
> do.call("substitute", list(ff, list(x = as.name("weight"
>
It is even more complicated.
All I know is that ff is a formula with an expression on the left hand
side. This expression needs to be replaced by "weights".
According to the documentation,
On 8/22/05, Erich Neuwirth <[EMAIL PROTECTED]> wrote:
> >
> >>(foo <- eval(substitute(x ~ g * h, list(x = as.name("weights")
> >
> > weights ~ g * h
> >
> >>class(foo)
> >
> > [1] "formula"
> >
> >
>
> ff<-formula("x~g*h")
> (foo<-eval(substitute(ff,list(x=as.name("weights")
>
> gives
>
>
>>(foo <- eval(substitute(x ~ g * h, list(x = as.name("weights")
>
> weights ~ g * h
>
>>class(foo)
>
> [1] "formula"
>
>
ff<-formula("x~g*h")
(foo<-eval(substitute(ff,list(x=as.name("weights")
gives
x ~ g * h
what needs to be done to ff for the substitution to work?
I fo
On 8/22/05, Erich Neuwirth <[EMAIL PROTECTED]> wrote:
> I am trying to adapt boxplot.formula (in graphics) to accept an
> additional parameter, weights.
> I already managed to adapt boxplot.default to do this.
>
> boxplot.formula prepares the data for a call to boxplot.default and to
> achieve tha
I am trying to adapt boxplot.formula (in graphics) to accept an
additional parameter, weights.
I already managed to adapt boxplot.default to do this.
boxplot.formula prepares the data for a call to boxplot.default and to
achieve that does the following: It takes a formula like
x~g*h
as the f
I am trying to adapt boxplot.formula (in graphics) to accept an
additional parameter, weights.
I already managed to adapt boxplot.default to do this.
boxplot.formula prepares the data for a call to boxplot.default and to
achieve that does the following: It takes a formula like
x~g*h
as the f
On Mon, 2005-08-22 at 12:57 -0500, Douglas Bates wrote:
> I seem to recall discussion of an language definition file for S for
> use with the lgrind utility but I can't find any trace of it in an R
> Site Search. The lgrind utility takes a file of code in a particular
> programming language and pr
I seem to recall discussion of an language definition file for S for
use with the lgrind utility but I can't find any trace of it in an R
Site Search. The lgrind utility takes a file of code in a particular
programming language and prepares it for "pretty printing" in LaTeX.
In my version the ava
On Mon, 22 Aug 2005, hadley wickham wrote:
> I'm writing some tests for a package and I have a few questions
> regarding best practices. I've read "tests subdirectory" paragraph in
> writing R extension, but I'm left wanting more.
> Firstly, can I assume that the document root will always be set
I'm writing some tests for a package and I have a few questions
regarding best practices. I've read "tests subdirectory" paragraph in
writing R extension, but I'm left wanting more.
Firstly, can I assume that the document root will always be set to the
test directory? (that what a couple of quick
Please read the help page on options("warn") and see what warnings()
does. (I am pretty sure you have asked this and been told before.)
There should not be an object called last.warning in your example.
On Mon, 22 Aug 2005, Nikhil Shah wrote:
> Hi,
>
>I am facing one problem of fetching R w
Hi,
I am facing one problem of fetching R warning messages in Java Code
using Rserve. It is easier to trap R Error messages by using catching
RSrvException. I came to know one way of fetching R Warning messages, i.e.
using "withCallingHandlers", below is my Java Program, which uses
withCalling
Full_Name: Kwang-Youn Kim
Version: 2.1.1
OS: OS X 10.4
Submission from: (NULL) (128.255.125.51)
When running R 2.1.1 under Mac OS X 10.4.2 X11, copying and pasting a large
segment of code from vi, typically more than 10 lines at a time will paste some
garbage information rendering incorrect code
On Mon, 22 Aug 2005, John Fox wrote:
Dear Brian,
-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: 22 août 2005 01:47
To: John Fox
Cc: r-devel@stat.math.ethz.ch
Subject: Re: [Rd] Internationalization questions
On Sun, 21 Aug 2005, John Fox wrote:
Dear R-deve
Dear Brian,
> -Original Message-
> From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 22, 2005 8:02 AM
> To: John Fox
> Cc: r-devel@stat.math.ethz.ch
> Subject: RE: [Rd] Internationalization questions
>
> On Mon, 22 Aug 2005, John Fox wrote:
>
> > Dear Brian,
> >
Please do read the help page before firing off a bug report, as we do ask
in several places. It says
'is.numeric' returns 'TRUE' if its argument is of type numeric or
type integer and 'FALSE' otherwise.
and
> typeof(NaN)
[1] "double"
(numeric and double are synonyms for types).
W
Full_Name: John Perry
Version: 2.1.1
OS: Windows
Submission from: (NULL) (155.140.122.227)
help("*")
Could you add the following?
See Also:
'%*%' for matrix multiplication
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo
Full_Name: Joern Toedling
Version: 2.1.0
OS: Linux
Submission from: (NULL) (193.62.198.2)
Maybe, it's supposed to be a feature rather than a bug, but I find it quite
strange that
> is.numeric(NaN)
returns TRUE, when NaN means 'Not a Number'
__
R-devel
Dear Brian,
> -Original Message-
> From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
> Sent: 22 août 2005 01:47
> To: John Fox
> Cc: r-devel@stat.math.ethz.ch
> Subject: Re: [Rd] Internationalization questions
>
> On Sun, 21 Aug 2005, John Fox wrote:
>
> > Dear R-devel list members:
> >
GROUP Watchdog
Server: HONDASMTP2
---
Sua mensagem nao foi entregue pois continha virus.
Your mail item contained attachments that have been virus infected.
---
On Fri, 19 Aug 2005, Colin A. Smith wrote:
> A package that I develop (xcms) sometimes needs to read and process
> vectors several hundreds of megabytes in size. (They only represent
> parts of a large data sets which can approach nearly 100GB.)
> Unfortunately, R sometimes hits the 2GB memory lim
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--27464147-1188682158-1124696849=:32369
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Pl
The example in the help file for pdf() plots the characters outside
the plotting area in this for loop:
for(i in c(32:255)) {
x <- i
y <- i
points(x, y, pch=i)
}
The following loop seems to be working as intended
for(i in c(32:255)) {
x <- (i-31
31 matches
Mail list logo