Dear developers,
would it be feasible to add an "..." argument to the "median" generic
function (and by extension also to "median.default")?
That would allow the implementation of "median" methods for data structures
that require optional arguments, as is already supported by the "mean"
generic
Hi Keith,
The problem is not with tempfile(), and is not really a problem of whether a
file exists or not. The problem is that system2() does not put the contents
of stderr into the file. Here is a demonstration without the use of
tempfile(), using a pre-existing output file:
klediment:~ dante$ e
Looking at help for tempfile,
"tempfile" returns a vector of character strings which can be used as
names for temporary files.
and
For "tempfile" a character vector giving the names of possible
(temporary) files. Note that no files are generated by "tempfile".
try a file.create(t) after
According to ?system2, I should be able to direct the output of STDERR to a
file by giving the filename as a character vector to the "stderr" argument.
But here is what happens.
Given a ruby script test.rb (with its executable bit set):
#!/usr/bin/env ruby
STDOUT.puts "stdout"
STDERR.puts "stder
The problem here is that the primitive for `$` does not use standard R
evaluation on its second argument, so when it is selected as the next
method the call is effectively x$name regardless of the original call.
If possible, I would avoid such cascaded calls of methods for `$`,
precisely becau
`[[<-`, that is. Right, the primitive code is not retaining the
subclass information.
Should be fixed in r-devel and 2.12 patched from revision 53547.
Thanks for the catch.
On 11/10/10 3:32 AM, Vitalie S. wrote:
Dear Developers,
A recently patched [[ for environment class returns a blank en
Hi,
Today we've seen the following problem with the R-2.12 that we use
for our Windows builds:
> installed.packages()
Error: subscript out of bounds
After some investigation we discovered that the cause of this failure
was that 1 of the 890 packages currently installed on the machine
(Windo
On 11/10/2010 10:38 AM, Hervé Pagès wrote:
On 11/10/2010 05:02 AM, Prof Brian Ripley wrote:
On Tue, 9 Nov 2010, Hervé Pagès wrote:
Hi,
Found in ?eapply (in current R-devel):
\value{
A named (unless \code{USE.NAMES = FALSE}) list. Note that the order of
the components is arbitrary for hashed
On 11/10/2010 05:02 AM, Prof Brian Ripley wrote:
On Tue, 9 Nov 2010, Hervé Pagès wrote:
Hi,
Found in ?eapply (in current R-devel):
\value{
A named (unless \code{USE.NAMES = FALSE}) list. Note that the order of
the components is arbitrary for hashed environments: currently it will
be in the or
I used solstutio12.2 to compile a 32-bit R-2.12.0
CC="cc -xc99"
CPPFLAGS="-I/opt/csw/include"
CFLAGS="-O -xlibmieee"
F77=f95
FFLAGS=-O4
CXX="CC -library=stlport4"
CXXFLAGS=-O
FC=f95
FCFLAGS=$FFLAGS
LDFLAGS="-L/opt/csw/lib"
export CC CPPFLAGS CFLAGS F77 FFLAGS CXX CXXFLAGS FC FCFLAGS LDFLAGS
./co
Hello everyone. R-2.12.0, suse linux 11.3.
I am debugging a package that uses S4 methods
and R CMD check gives the following warning:
> Warning in methods::findMethods(g, env) :
> non-generic function 'mdm' given to findMethods()
> See the information on DESCRIPTION files in the chapter 'Creat
On Tue, 9 Nov 2010, Hervé Pagès wrote:
Hi,
Found in ?eapply (in current R-devel):
\value{
A named (unless \code{USE.NAMES = FALSE}) list. Note that the order of
the components is arbitrary for hashed environments: currently it will
be in the order the name-value pairs were added for unhash
Dear Developers,
callNextMethods does not work with "$"
setClass("mylist", contains = "list"):
setMethod("$",
signature(x = "mylist"),
function (x, name){
cat("here:\n")
callNextMethod()
})
tl <- new("mylist")
tl[["x"]] <- 343
tl$x
#her
Dear Developers,
A recently patched [[ for environment class returns a blank environment for a
children class:
setClass("myenv", contains = "environment")
#[1] "myenv"
env <- new("myenv")
class(env)
#[1] "myenv"
#attr(,"package")
#[1] ".GlobalEnv"
env[["a"]] <- 343
class(env)
[1] "environment"
Dear List
Forgive me for the slightly off topic query
Force.com and Salesforce have many (1009) apps at
http://sites.force.com/appexchange/home for cloud computing for
businesses, but very few forecasting and statistical simulation apps.
Example of Monte Carlo based app is here
http://sites.for
15 matches
Mail list logo