On 9/14/07, Terry Therneau [EMAIL PROTECTED] wrote:
I wrote the date package long ago, and it has been useful. In my current
task
of reunifying the R (Tom Lumley) and Splus (me) code trees for survival, I'm
removing the explicit dependence on 'date' objects from the expected survival
On 9/14/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
On 9/14/07, Gerlanc, Daniel [EMAIL PROTECTED] wrote:
Hello,
I'm developing a GUI in R that will be used to monitor financial
portfolio performance. The GUI will be distributed as an R package. So
far, I've decided to use
the Windows console will search for it. It should NOT be
present. However, MiKTeX and Rtools should be installed.
On 9/7/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Has anyone successfully used Rcmd install or Rcmd check on
Windows Vista? I have been successfully been running R itself,
just
If you find you need to turn UAC off try, instead, installing R into
%userprofile%\Documents\R\R-2.6.0
(assuming R 2.6.0). I run with UAC *on* although actually I was able
to run R with UAC on even with R in c:\Program Files\R\R-2.6.0.
It was only R CMD CHECK/INSTALL that was a problem and
Has anyone successfully used Rcmd install or Rcmd check on
Windows Vista? I have been successfully been running R itself,
just not Rcmd install and Rcmd check.
Rcmd check fails, the Ryacas.Rcheck it creates is
read-only, I don't have permission to delete it and I have
to reset the permissions on
Not sure if this counts but using the Ryacas package
library(Ryacas)
x - Sym(x)
Set(x, Sym(3)/7)
expression(3/7)
cat(i, 0: ); print(x)
10 0: expression(3/7)
for(i in 1:10) {
+ yacas(Set(x, If(x = 1/2, 2*x, 2*(1-x
+ cat(i, i: ); print(x)
+ }
1 i: expression(6/7)
2 i: expression(2/7)
3 i:
The NEWS file refers to a new function within but it does not appear
to be found:
within()
Error: could not find function within
R.version.string # Windows Vista
[1] R version 2.6.0 Under development (unstable) (2007-08-31 r42709)
__
On 8/31/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
The IEEE floating point standard allows for negative zero, but it's hard
to know that you have one in R. One reliable test is to take the
reciprocal. For example,
y - 0
1/y
[1] Inf
y - -y
1/y
[1] -Inf
The other day I came
Having it be the same under cygwin as it is for other UNIX systems would
be ok but for the native Windows port R should behave like other
Windows applications, not like UNIX applications.
On 8/23/07, Latchezar (Lucho) Dimitrov [EMAIL PROTECTED] wrote:
-Original Message-
From: [EMAIL
.
-Original Message-
From: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 23, 2007 4:01 PM
To: Latchezar (Lucho) Dimitrov
Cc: r-devel@r-project.org
Subject: Re: [Rd] compiling R under cygwin
Having it be the same under cygwin as it is for other UNIX
systems
On 8/21/07, M. Edward (Ed) Borasky [EMAIL PROTECTED] wrote:
Prof Brian Ripley wrote:
Yes,
What is the advantage of building this?
was my question too. If you want a Unix-like version of R on PC hardware
running Windows why not run a Unix-like OS under a virtual machine?
Quite a
expand.grid fails if any of the arguments are zero length:
expand.grid(1:2, 1, seq_len(0))
Error in rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) :
invalid number of copies in rep.int()
I think it would be desirable if it output a data frame with zero rows.
PROTECTED] wrote:
On 04/08/2007 1:05 PM, Gabor Grothendieck wrote:
I think it would be desirable for optim to have a dispatching mechanism
that allows users to add their own optimization techniques to those
provided without having to modify optim and without having to come
up with a new
The example of generic functions.
On 8/4/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 04/08/2007 2:23 PM, Gabor Grothendieck wrote:
For the same reason that generic functions exist. They don't have
a lot of common code but it makes easier to use. Perhaps the argument
is not as strong
viewpoint
and allow all of them to work consistently through the same
interface.
On 8/4/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 04/08/2007 2:53 PM, Gabor Grothendieck wrote:
The example of generic functions.
Show me an example where we have a list of ways to do a calculation
passed
On 7/25/07, Paul Gilbert [EMAIL PROTECTED] wrote:
(moved from r-help)
Achim Zeileis wrote:
On Wed, 25 Jul 2007, laimonis wrote:
Consider the following scrap of code:
...slightly modified to
x1 - ts(1:24, start = c(2000, 10), freq = 12)
x2 - ts(1:24, start = c(2000, 11),
Does this include datasets such as CO2 and ChickWeight
which are in the datasets package?
Could you post a list of the specific datasets you are referring to
so there is no confusion what this is about.
On 7/24/07, Douglas Bates [EMAIL PROTECTED] wrote:
Some time ago Deepayan and I created a
On a related note CO2 and ChickWeight in datasets have nlme
specific attributes so either those datasets themselves should be
moved to nlme or the nlme specific attributes removed in datasets
as well.
On 7/24/07, Douglas Bates [EMAIL PROTECTED] wrote:
On 7/24/07, Gabor Grothendieck [EMAIL
Although the proto package is not particularly aimed at hashing note
that it covers some of the same ground and also is based on a well
thought out object model (known as object-based programming
or prototype programming).
Here is an example where we create two proto objects (which could
be
In performing Rcmd check I am getting this output regarding using
Argument '' and a NULL package not found and it stops with an error:
* using log directory 'C:/Rpkgs/sqldf.Rcheck'
* using ARGUMENT '
' __ignored__ R version 2.5.1 (2007-06-27)
* checking for file 'sqldf/DESCRIPTION' ... OK
* this
I noticed I am getting the same messages when trying to check other
packages too such as gsubfn which previously checked ok.
I had recently reinstalled cygwin so its likely something to do with
that but have not tracked it down.
On 7/19/07, Gabor Grothendieck [EMAIL PROTECTED] wrote
his
path. I found it quite difficult to solve this problem.
On 7/19/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 19/07/2007 7:16 PM, Gabor Grothendieck wrote:
Thanks. I tried performing the check from an empty directory but
it still gave the same response. Where can I find the source code
The formula attribute of the builtin CO2 dataset seems a bit strange:
formula(CO2)
Plant ~ Type + Treatment + conc + uptake
What is one supposed to do with that? Certainly its not suitable for
input to lm and none of the examples in ?CO2 use the above.
formula.data.frame could still have the current default
yet be user overridable via the formula attribute.
On 7/16/07, Gavin Simpson [EMAIL PROTECTED] wrote:
On Mon, 2007-07-16 at 14:57 +0100, [EMAIL PROTECTED] wrote:
On 16-Jul-07 13:28:50, Gabor Grothendieck wrote:
The formula attribute
Note that the formula uptake ~. will do the same thing so its not clear
how useful this facility really is.
On 7/16/07, Ted Harding [EMAIL PROTECTED] wrote:
On 16-Jul-07 14:16:10, Gabor Grothendieck wrote:
Following up on your comments it seems formula.data.frame just creates
a formula whose
Yes. That's what I was referring to.
On 7/16/07, Ted Harding [EMAIL PROTECTED] wrote:
On 16-Jul-07 14:42:19, Gabor Grothendieck wrote:
Note that the formula uptake ~. will do the same thing so its
not clear how useful this facility really is.
Hmmm... Do you mean somthing like
lm(uptake
On 7/16/07, Deepayan Sarkar [EMAIL PROTECTED] wrote:
Hi,
I'm trying to understand whether the use of substitute() is
appropriate/documented for plotmath annotation. The following two
calls give the same results:
plot(1:10, main = expression(alpha == 1))
do.call(plot, list(1:10, main =
)) {
for (int i = 0; i LENGTH(rownames); i++) foo(INTEGER(rownames)[i]
...);
}
Cheers,
M. Manese
On 7/15/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Below x1, x2 and x3 all have the same data and all have the same value
for row.names(x); however, the internal values
Below x1, x2 and x3 all have the same data and all have the same value
for row.names(x); however, the internal values of their row.names differ.
The internal value of row.names is c(NA, -4L) for x1, c(NA, 4L) for x2 and
c(1, 2, 3, 4) for x3; nevertheless, identical regards x1 and x2 as
identical
Note that summaryBy in the doBy package can also do that.
library(doBy)
DF - data.frame(z, A = Ind$A, B = Ind$B)
summaryBy(z ~ A + B, DF, FUN = summary)
summaryBy(z ~ A + B, DF, FUN = summary2)
On 7/13/07, Mike Lawrence [EMAIL PROTECTED] wrote:
Hi all,
This is my first post to the developers
Note that it does not work in this case:
aggregate(CO2[4:5], CO2[1:2], mean)
PlantType conc uptake
1Qn1 Quebec 435 33.22857
2Qn2 Quebec 435 35.15714
3Qn3 Quebec 435 37.61429
4Qc1 Quebec 435 29.97143
5Qc3 Quebec 435 32.58571
6Qc2
You can do this:
[EMAIL PROTECTED]
[1] \na - 1; b - 2**2\na + b\n
# or this
as.character(foo)
[1] a - 1 b - 2^2 a + b
On 7/12/07, Deepayan Sarkar [EMAIL PROTECTED] wrote:
Hi,
I'm trying to understand whether the new source file references can
help me with something I want to do. Let's
Even that does not appear to work everywhere.
Either of these returns NULL:
formals(args({))
formals(args(match.fun({)))
R.version.string # XP
[1] R version 2.5.1 (2007-06-27)
On 7/11/07, Prof Brian Ripley [EMAIL PROTECTED] wrote:
formals(args(log))
$x
$base
exp(1)
gives what
These don't work either:
args(match.fun({))
args({)
On 7/11/07, Prof Brian Ripley [EMAIL PROTECTED] wrote:
On Wed, 11 Jul 2007, Duncan Murdoch wrote:
On 7/11/2007 9:40 AM, Seth Falcon wrote:
Prof Brian Ripley [EMAIL PROTECTED] writes:
My problem is that if we make formals() work on
Why does the error get generated here? Is it a bug? It seems that
f and { are the same but when used in sapply f works but { does not.
Is its use in lapply really an incorrect context?
f - function(x, y) y
f(1, 2)
[1] 2
{(1, 2)
[1] 2
lapply(y, function(x, y) y, 1:4) # ok
[[1]]
[1] 1 2 3 4
a b c d e f g h i j k l m n o p q r s t u v w x y z
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
On 7/9/07, Peter Dalgaard [EMAIL PROTECTED] wrote:
Gabor Grothendieck wrote:
Why does the error get generated here? Is it a bug? It seems
If integrate is changed it would be nice at the same time to make it
into an S3 generic. deriv already is an S3 generic but strangely integrate
is not. Ryacas provides a deriv method but for integrate Ryacas inconsistently
provides Integrate since integrate is not generic.
On 6/28/07, Peter
at 07:36:56PM -0400, Gabor Grothendieck wrote:
One additional idea.
I wonder if reshape might be promoted to a generic and relist made
into methods for it. The unlisted version of an object would be the long
version and the original version of the list would be the wide version
On 5/23/07, Seth Falcon [EMAIL PROTECTED] wrote:
Andrew Clausen [EMAIL PROTECTED] writes:
Hi Seth,
On Mon, May 21, 2007 at 05:15:10PM -0700, Seth Falcon wrote:
I will also add that the notion of a default argument on a generic
function seems a bit odd to me. If an argument is
On 5/23/07, Martin Maechler [EMAIL PROTECTED] wrote:
GaGr == Gabor Grothendieck [EMAIL PROTECTED]
on Wed, 23 May 2007 08:56:50 -0400 writes:
GaGr On 5/23/07, Seth Falcon [EMAIL PROTECTED] wrote:
Andrew Clausen [EMAIL PROTECTED] writes:
Hi Seth,
On Mon, May
On 5/23/07, hadley wickham [EMAIL PROTECTED] wrote:
On 5/23/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
On 5/23/07, Martin Maechler [EMAIL PROTECTED] wrote:
GaGr == Gabor Grothendieck [EMAIL PROTECTED]
on Wed, 23 May 2007 08:56:50 -0400 writes:
GaGr On 5/23/07, Seth
In addition to $ that was mentioned in this thread there is
also attr, e.g.
names(attributes(CO2))
[1] names row.names class formula outer labels
[7] units
attr(CO2, f) # matches formula
uptake ~ conc | Plant
On 5/17/07, Seth Falcon [EMAIL PROTECTED] wrote:
Hi all,
One of the
One additional idea.
I wonder if reshape might be promoted to a generic and relist made
into methods for it. The unlisted version of an object would be the long
version and the original version of the list would be the wide version.
This would consolidate the two concepts together and make it
Perhaps all the arguments in demo, data and vignette should be
regularized to be consistent, not just this one.
On 5/18/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
I think we've agreed about adding an option to the vignette() function
to allow the user to choose to see all vignettes in
On 5/16/07, Christos Hatzis [EMAIL PROTECTED] wrote:
Quite often I save misc functions and data objects as .RData files that I
can use in other sessions. Although I could 'Load Workspace these files,
most of the times I prefer attaching them. It would be really convenient to
have a menu item
be added. Although not ideal, it is an
acceptable workaround.
Thanks.
-Christos
-Original Message-
From: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 16, 2007 1:34 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Rd] 'attach workspace' on R
This is how one package handled it:
packageDescription(RSVGTipsDevice)$Author
[1] Tony Plate [EMAIL PROTECTED], based on RSVGDevice by T
Jake\nLuciani [EMAIL PROTECTED]
On 5/16/07, Ben Bolker [EMAIL PROTECTED] wrote:
I want to put the correct information into the author field
of the
Just a few other points:
- vignettes are potentially of interest even before you download the package
in order to decide whether the package is of interest. The discussion so far
here does not address that. If I am interested in mypackage I will typically
google for
CRAN mypackage
and then
.
Cheers,
Andrew
On Sun, May 13, 2007 at 07:02:37PM -0400, Gabor Grothendieck wrote:
I suggest you define a relist class and then define an unlist
method for it which stores the skeleton as an attribute. Then
one would not have to specify skeleton in the relist command
so
relist(unlist
On 5/13/07, Andrew Clausen [EMAIL PROTECTED] wrote:
Hi all,
I wrote a symbollic differentiation function in R, which can be downloaded
here:
http://www.econ.upenn.edu/~clausen/computing/Deriv.R
http://www.econ.upenn.edu/~clausen/computing/Simplify.R
It is just a prototype.
On 5/13/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
On 5/13/07, Andrew Clausen [EMAIL PROTECTED] wrote:
Hi all,
I wrote a symbollic differentiation function in R, which can be downloaded
here:
http://www.econ.upenn.edu/~clausen/computing/Deriv.R
http
I suggest you define a relist class and then define an unlist
method for it which stores the skeleton as an attribute. Then
one would not have to specify skeleton in the relist command
so
relist(unlist(relist(x))) === x
1. relist(x) is the same as x except it gets an additional class relist.
2.
I can't reproduce that with ggplot 0.4-0 as some of the functions you are
using do not appear to be part of ggplot (I suspect you are using a newer
version of ggplot than you have released) but the following illustrates
the difference using R version 2.5.0 Patched (2007-05-01 r41405)
and lattice
I agree that wider use of generics in the core of R is desirable as
it facilitates designs in various addon packages that are much easier
to use. In the absence of generics, the addon package either has to
clobber/mask the version in the core, which really is unacceptable, or define
a different
Perhaps this has to do with the fact that there is not enough
information available
to establish the class of those columns. For example, try this:
read.table(clipboard, colClasses = character)
On 5/9/07, John Fox [EMAIL PROTECTED] wrote:
Dear r-devel list members,
I stumbled across the
The generics don't have to be S4. In fact, in many cases it would
be better to have them be S3 for consistency with other similar generics
in the core of R.
Or I wonder about the possibility of having generics which can have
some methods being of S3 and others of S4.
On 5/9/07, Robert Gentleman
Seems like a good idea to me.
Here is a workaround that works in any event which combines (?i), \Q and \E .
to get the same effect. (?i) gives case insensitive matches and \Q and \E
quote and endquote the intervening text disabling special characters:
x - c(D.G cat, d.g cat, dog cat)
z - d.g
rx
If you want to build it on Windows (rather than do a cross build) there are
links to HowTo's in the Links section of this page regarding various
Windows tasks:
http://code.google.com/p/batchfiles/
On 4/28/07, Petr Savicky [EMAIL PROTECTED] wrote:
Dear R developers,
I am using R under
One can use the R shell on Windows:
shell(echo foo.bar | findstr foo)
or an explicit call to the Windows cmd console:
system(cmd /c echo foo.bar | findstr foo)
On 4/27/07, Tony Plate [EMAIL PROTECTED] wrote:
With cygwin bash installed under Windows, one can use pipes in system(),
e.g.,
I noticed the following difference in parse(text = ...) between R
2.4.1 and R 2.5.0.
===
parse(text = \^\ (x ,2 ))
expression(x^2)
R.version.string
[1] R version 2.4.1 Patched (2006-12-30 r40331)
parse(text = \^\ (x ,2 ))
expression(^ (x ,2 ))
R.version.string
[1] R version 2.5.0 RC
Thanks, that did it.
On 4/27/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 4/27/2007 11:34 AM, Gabor Grothendieck wrote:
I noticed the following difference in parse(text = ...) between R
2.4.1 and R 2.5.0.
===
parse(text = \^\ (x ,2 ))
expression(x^2)
R.version.string
[1] R
On Windows sweave.bat is a Windows XP batchfile that will run sweave
and then latex and then display the file on screen. Issuing the command
sweave without args from the Windows command line gives info on how to use it.
The batchfiles home page is:
http://code.google.com/p/batchfiles/
The
On 4/16/07, Gregor Gorjanc [EMAIL PROTECTED] wrote:
Gabor Grothendieck wrote:
On Windows sweave.bat is a Windows XP batchfile that will run sweave
and then latex and then display the file on screen. Issuing the command
sweave without args from the Windows command line gives info on how
On 4/16/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 4/16/2007 7:53 AM, Gregor Gorjanc wrote:
Duncan Murdoch wrote:
I do not have any experience with use of (bash) shell scripts under
Windows. Sweave.sh can be used with Cygwin, but I am not sure how to use
shell script without Cygwin. I
On 4/16/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 4/16/2007 10:13 AM, Gabor Grothendieck wrote:
On 4/16/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 4/16/2007 7:53 AM, Gregor Gorjanc wrote:
Duncan Murdoch wrote:
I do not have any experience with use of (bash) shell scripts under
On 4/16/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
On 4/16/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 4/16/2007 10:13 AM, Gabor Grothendieck wrote:
On 4/16/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 4/16/2007 7:53 AM, Gregor Gorjanc wrote:
Duncan Murdoch wrote:
I do
On 4/10/07, hadley wickham [EMAIL PROTECTED] wrote:
On 4/10/07, Tony Plate [EMAIL PROTECTED] wrote:
Aren't you just seeing the effect of drop=TRUE? (at least with the
examples you give below -- they all pick out a submatrix with extent one
on some dimension)
AFAICT, matrices with a list
I am moving this from r-help to r-devel. Based on offline communications
with Jim, suppose dat is defined as follows:
set.seed(123)
dat - data.frame(ID= c(rep(1,2),rep(2,3), rep(3,3), rep(4,4),
rep(5,5)), var1 =rnorm(17, 35,2), var2=runif(17,0,1))
# Then this ave call works as expected:
On 3/27/07, cstrato [EMAIL PROTECTED] wrote:
Hin-Tak Leung wrote:
cstrato wrote:
1. I did read the help file.
2. I have my own workaround, using e.g.
file.info(/my/path/)[,isdir]
3. This was a suggestion.
4. If you agree with me that /my/path/ is a path, then both
dirname() and
It matches in the sense of grep or regexpr
grep(a, ab) 0
regexpr(a, ab) 0
Try this:
x - c(2006-01-01error, 2006-01-01)
as.Date(x, %Y-%m-%d) + ifelse(regexpr(^-..-..$, x) 0, 0, NA)
On 3/24/07, Vladimir Dergachev [EMAIL PROTECTED] wrote:
On Saturday 24 March 2007 6:21 am, Prof Brian
On 3/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On 3/20/2007 11:19 AM, [EMAIL PROTECTED] wrote:
Full_Name: Charles Dupont
Version: 2.4.1
OS: linux 2.6.18
Submission from: (NULL) (160.129.129.136)
'format.pval' has a major limitation in its implementation. For example
On 3/20/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 3/20/2007 12:44 PM, Gabor Grothendieck wrote:
On 3/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On 3/20/2007 11:19 AM, [EMAIL PROTECTED] wrote:
Full_Name: Charles Dupont
Version: 2.4.1
OS: linux 2.6.18
Submission from
On 3/19/07, Ross Boylan [EMAIL PROTECTED] wrote:
How about an option to have check use the buildignore file? If there
are 2 separate files, there's always the risk they will get out of
sync. Of course, in your case, you want them out of sync...
For Windows users only there is a batch file,
Here are a few ideas:
For #1 define:
$.Par - function(x, FUN) {
par.default - getOption(par.default)
if (!is.null(par.default)) do.call(par, par.default)
get(FUN, parent.frame())
}
Par - structure(NA, class = Par)
# and now one can preface any function with Par$ and it will
# call par
You can use
if(require(myPackage)) { ... }
or
\dontrun{ ... }
or
make them demos in the myPackage/demo directory since demos
are not checked.
On 2/25/07, hadley wickham [EMAIL PROTECTED] wrote:
On 2/24/07, Prof Brian Ripley [EMAIL PROTECTED] wrote:
On Sat, 24 Feb 2007, hadley wickham
notice that they're using a proto function (ie. use
geom_point()) instead. I'm hoping I can wrap proto up sufficiently
that only developers need to worry that ggplot uses a completely
different oo system.
Hadley
On 2/23/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Not sure what the setup
Not sure what the setup is here but if the objects are
intended to be proto objects then the accessor functions
could be placed in the object itself (or in an ancestor object)
rather than in the global environment. For example, this inserts
a function get.v(.) into proto object p for each
and README files which describe the additions,
a link to info on the Windows bug that I mentioned and two perl links that
describe how this all works in perl which may be a helpful analogous
situation.
.
On 2/17/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 2/16/2007 9:35 AM, Gabor Grothendieck wrote
Surely R has higher standards than that. How about quality and
completeness of implementation?
Every other major scripting language has implemented this for good reason
and its a glaring omission.
On 2/17/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 2/17/2007 7:31 AM, Gabor Grothendieck
its own
purposes and some reasonable compromise between their own needs
and obvious requirements to complete certain work or do it to a certain
level of quality needs to be taken account of.
On 2/17/07, Gavin Simpson [EMAIL PROTECTED] wrote:
On Sat, 2007-02-17 at 09:31 -0500, Gabor Grothendieck
need to be able to run out of the box for something this
common.
On 1/29/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Haven't got any feedback on this one.
Will we be getting a perl/python/ruby style -x switch for Rscript for R 2.5.0?
It certainly would give more flexibility to users
See ?force
a - function(z) {
force(k)
function() z+k
}
On 2/16/07, Ross Boylan [EMAIL PROTECTED] wrote:
I would like to define a function using symbols, but freeze the symbols
at their current values at the time of definition. Both symbols
referring to the global scope and
for your input.
Mark
Gabor Grothendieck wrote:
Its not entirely clear to me what it is that you are looking
for. Maybe you want to create an Excel spreadsheet with a hyperlink
to a web page? This R code will do that. It requires a Windows machine
that
has Excel running
Its not entirely clear to me what it is that you are looking
for. Maybe you want to create an Excel spreadsheet with a hyperlink
to a web page? This R code will do that. It requires a Windows machine that
has Excel running on it.
library(RDCOMClient)
xl - COMCreate(Excel.Application)
I meant that the machine has Excel on it. Excel does not have to be running
prior to running the R code as the R code will start up and shut
down Excel itself.
On 2/8/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Its not entirely clear to me what it is that you are looking
for. Maybe you
Also note:
missing(a) # TRUE
On 2/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello. I was writing some code that computes on the language and came across
this. I can work around it, but thought you might like to know about it.
f - function(x) { NULL }
a - as.list(f)[[1]]
a #
Haven't got any feedback on this one.
Will we be getting a perl/python/ruby style -x switch for Rscript for R 2.5.0?
It certainly would give more flexibility to users of Rscript on non-UNIX systems
where #! notation is not available.
On 1/26/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Good
Good idea. ruby seems to work the same way. python does too but with
a slightly different definition:
C:\ ruby -h | findstr strip
-x[directory] strip off text before #!ruby line and perhaps cd to directory
C:\ perl -h | findstr strip
-x[directory] strip off text before #!perl line and
The help page for mean does not say what happens when one
applies mean to a matrix.
mean and sd work in an inconsistent way on a matrix
so that should at least be documented.
Also there should be a See Also to colMeans since that
provides the missing column-wise analog to sd.
On Windows XP with
R version 2.5.0 Under development (unstable) (2007-01-22 r40548)
I always get a message about grdevices when I run Rscript, e.g.
C:\ rscript NUL
During startup - Warning messages:
1: there is no package called 'grdevices' in: library(package, lib.loc = lib.loc
, character.only
On UNIX one can use #! notation. It would be nice to be able to do something
similar on Windows.
This could be done by giving Rscript the capability of skipping over
the first few
lines. For example, there might be a --skip=n argument or perhaps Rscript would
skip over any consecutive leading
Good point. Perhaps what is needed is a Note clarifying all this in ?mean
(unless the software itself is reworked as Martin has discussed).
Regarding var(x), one could use sd(x)^2.
On 1/25/07, Berwin A Turlach [EMAIL PROTECTED] wrote:
G'day Gabor,
On Thu, 25 Jan 2007 09:53:49 -0500
Gabor
That's because your line is a point. Both components of the y vector
are equal. Check your parens.
On 1/23/07, Spencer Graves [EMAIL PROTECTED] wrote:
Consider the following:
plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
lines(c(0,0), (2*c(-pi, pi))^2)
I see no line in this
You don't necessarily need to know C or C++ to write an R package.
Many (maybe most) R packages only use R.
On 1/19/07, Kimpel, Mark William [EMAIL PROTECTED] wrote:
I have 3 years of experience with R and have an interest in becoming a
better programmer so that I might someday be able to
On 1/19/07, Dominick Samperi [EMAIL PROTECTED] wrote:
Kimpel, Mark William wrote:
I have 3 years of experience with R and have an interest in becoming a
better programmer so that I might someday be able to contribute
packages. Other than R, my only experience was taking Lisp from Daniel
I don't think it would be necessary to do any programming. Just run
another program at the same time.
On 1/15/07, Ulrike Grömping [EMAIL PROTECTED] wrote:
Duncan,
thanks. Not knowing what is a quiet or noisy loop beforehand, I wouldn't like
to do my programming around that theme though :-)
On 1/8/07, Martin Maechler [EMAIL PROTECTED] wrote:
Duncan == Duncan Murdoch [EMAIL PROTECTED]
on Sat, 06 Jan 2007 19:45:31 -0500 writes:
Duncan On 1/1/2007 1:28 AM, Gabor Grothendieck wrote:
7. documentation standards for packages - NEWS/ChangeLog
(also should be accessible
On 1/8/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
On 1/8/07, Martin Maechler [EMAIL PROTECTED] wrote:
Duncan == Duncan Murdoch [EMAIL PROTECTED]
on Sat, 06 Jan 2007 19:45:31 -0500 writes:
Duncan On 1/1/2007 1:28 AM, Gabor Grothendieck wrote:
7. documentation standards
On 1/8/07, Chris Eisley [EMAIL PROTECTED] wrote:
Hello Prof Ripley,
Prof Brian Ripley wrote:
I don't undersand what the issues are, but he actually said
These files make up a package,
and all the source files on an R packages are concatenated and loaded
into a single environment.
I noticed the new environmentName in R 2.5.0dev. Thus I gather that
each environment has:
(1) a name
(2) a hex value
so
1. environmentName gets the name. Is there any way to set the name?
2. is there any way to get the hex value for an environment other than doing:
e - new.env()
601 - 700 of 963 matches
Mail list logo