Displaying 12 results from an estimated 12 matches similar to: "invalid body argument for function"
2005 Feb 24
2
bug report for as.function (PR#7702)
Hi,
I got the following message in R:
Error in as.function.default(pdfs[1]) : invalid body argument for "function"
Should NEVER happen; please bug.report() [mkCLOSXP]
Operating System: Windows XP (SP2)
R version: R-2.0.1
Code causing error follows:
# create two probability density functions for mixtures of normal
distibutions
fmix1 <- function(x) {dnorm(x, mean=4, sd=2) * 0.5 +
2005 Jan 19
1
Should NEVER happen; please bug.report() [mkCLOSXP] (PR#7535)
I'm probably not using the function right, but anyway, the program said:
"please bug.report."
> w_R.f1=function(PR,Pc) return (Pc*PR^3)
>
> w_R.f2=function(PR,Pc) return (Pc*PR)
>
> w_R.fc=c(w_R.f1,w_R.f2)
> w_R.fc[2]
[[1]]
function(PR,Pc) return (Pc*PR)
>
> RSD(type=3,
+ gparP=gpar(col="red"),
+ gparD=gpar(fill=FALSE,col=FALSE),
+
2011 Oct 24
2
C function is wrong under Windows 7
Dear mailing list,
I have a C function that gives me a wrong result when I run it under Windows
7.
This is the code under Linux (RHEL5):
> library(phenoTest)
> data(epheno)
> sign <- sample(featureNames(epheno))[1:20]
> score <- getFc(epheno)[,1]
> head(score)
1007_s_at 1053_at 117_at 121_at 1255_g_at 1294_at
-1.183019 1.113544 1.186186 -1.034779 -1.044456
1999 Sep 18
1
lambda error update (PR#282)
Matthew Wiener <mcw@ln.nimh.nih.gov> writes:
> > parameters (xxdefun in gram.y calls lang4). The arg count got changed
> > from 0.64.2 to 0.65.0 (from 3 to 4) to accommodate the stored source
> > attribute. I suppose that a function stored in a saved workspace might
> > cause some kind of mess when restored.
> >
>
> If I understand this correctly, it
2002 Aug 06
0
You requested this report (PR#1880)
Hi guys,
I am planning to let my students do some simulations regarding the
bias of the sample standard deviation. The following function is
pretty standard (so I hope :) ):
> sim <- function(nrng, replic, true.s, random, ...){
+ res <- NULL
+ for(n in nrng){
+ data <- matrix(random(n*replic,...), ncol=replic)
+ val <- sqrt(apply(data, 2, var))
+ res <-
2005 Jan 12
0
Function Body / Formals Bug (PR#7495)
I'd like to report two bugs in the R function definitions, the first
slightly problematic, the second likely unimportant. Both of these are
reproducible on both Windows and Linux, R 2.0.1
First Bug:
> a <- new("function")
> formals(a) <- alist(a=, b=, c=, d=)
> a
function (a, b, c) ## the d argument disappeared!
> formals(a) <- alist(a=, b=, c=, d=)
> a
2002 Aug 21
1
Bug list summary (automatic post)
=================================================
This is an automated summary of the status of the R-bugs
repository.
Note that this may be neither complete nor perfectly
correct at any given instance: Not all bugs are reported,
and some reported bugs may have been fixed, but the
repository not yet updated.
Some bug fixes are difficult to verify because they pertain
to specific hardware or
2002 Sep 21
1
Bug list summary (automatic post)
=================================================
This is an automated summary of the status of the R-bugs
repository.
Note that this may be neither complete nor perfectly
correct at any given instance: Not all bugs are reported,
and some reported bugs may have been fixed, but the
repository not yet updated.
Some bug fixes are difficult to verify because they pertain
to specific hardware or
2011 Apr 11
1
Fwd: CRAN problem with plyr-1.4.1
It looks like there might be some kind of problem with the Plyr-1.4.1
packages pushed to CRAN? The web pages show 1.4.1 as the current version,
but trying to fetch the source through the provided link gives a 404:
http://lib.stat.cmu.edu/R/CRAN/web/packages/plyr/index.html
$ wget http://lib.stat.cmu.edu/R/CRAN/src/contrib/plyr_1.4.1.tar.gz
--2011-04-11 13:19:09--
2011 May 07
1
Cannot read in a csv file.
Can anyone suggest why this file http://www.mediafire.com/?afeyhhpacaq
is refusing to open for me.?
I must admit I don't know all its history but the original data was taken from an OOo spreadsheet that I edited (good bit of copying and pasting and the month variable added by hand in OOo Calc) and, then,saved as a csv file. It was not originally an English language file as far as I can
2012 Feb 23
1
Sexpr not getting expanded in Sweave
An Sweave file, 'test.Rnw':
\documentclass{article}
\title{Sweave minimal}
\author{MK}
\begin{document}
\maketitle
We try Sweave:
<<1>>=
data(airquality)
summary(airquality)
x <- airquality[1, 1]
@
I try Sexpr: \Sexpr{x}
We plot:
\begin{center}
<<2, fig=TRUE, echo=FALSE >>=
boxplot(Ozone ~ Month, data = airquality)
@
\end{center}
\end{document}
I check the
2011 Nov 10
0
Package build/check OK, install looking for irrelevant function
Hello R Users:
I have 3 packages that I authored and they build and check just fine locally. However, when I try to install the local source packages (from the .tar.gz), I get the following message:
Error in `+.POSIXt`(as.POSIXct(origin, tz = tz, ...), x) :
could not find function "%is.a%"
In addition: Warning message:
In install.packages(file.choose(), .libPaths()[1], NULL, type =