similar to: R kudos

Displaying 20 results from an estimated 2000 matches similar to: "R kudos"

2002 Mar 19
1
pdf page limit?
Is there a limit on the number of pages that can be in a pdf file? I am using pdf() (on R version 1.4.1, running on Red Hat 7.1 on an Intel box) to create a large (> 300 pages) file of diagnostic plots. If I plot every figure I want to include (364 pages, according to Acroread ver. 5.0.5), neither xpdf on Linux nor Acroread ver 5.0.5 on Win98 can render the file. xpdf give the error message:
2001 May 30
1
Rcmd REMOVE does not allow --library argument (PR#957)
This is in Windows 98. The problem exists in both rw1021 and rw1023, using ActiveState Perl builds 620 and 626: C:\>Rcmd REMOVE --library=C:/R/Rlibs RBMDS Unknown option: library Usage: Rcmd REMOVE [options] pkgs Remove the add-on packages specified by pkgs from the default library tree (/library) or the tree specified via `--library'. Options: -l, --library=LIB remove packages
2000 Dec 15
1
resolution of windows metafiles
I am having trouble getting smooth-appearing curves in figures produced as windows metafiles using R (R-1.1.1 on Windows 98). When I import them into a word processor (either MS Word 97, or WordPerfect 9.0), the figures appear only slightly bumpy on screen, but when printed, there is a clear jaggedness reminiscent of aliasing. Is there a fix for this (if the answer is "upgrade to 1.2",
2002 Mar 19
1
pdf page limit
I KNEW I shouldn't trust my memory; the pdf() help page documents a page limit of 500; I don't seem to be exceeding this, however. R. Woodrow Setzer, Jr. Phone: (919) 541-0128 Experimental Toxicology Division Fax: (919) 541-5394 Pharmacokinetics Branch NHEERL MD-74; US EPA; RTP, NC 27711
2001 Jun 01
1
formulas in variables in modeling functions
I first noticed this in gnls, but it also happens in lm, so I suspect the following phenomenon is universal in modeling functions. Modify the example from the lm help: model <- as.formula(weight ~ group) lm(model) The result will be printed: > lm(model) Call: lm(formula = model) ^^^^^^^^^^^^^^^^^ Coefficients: (Intercept) groupTrt 5.032 -0.371 This is because in lm,
2001 Mar 08
2
surprising behavior of match.arg() (PR#872)
If a function needs to be passed as an argument to another function, default arguments to the function being passed are lost. Consider this example: fun1 <- function(x, A=c("power","constant")) { arg <- match.arg(A) cat(paste("A is:",paste(A,collapse=", "),"\narg is:",arg,"\n")) cat("formals:\n") print(formals())
2002 Jun 04
4
par(xaxp)
I think this is a bug; at least this behavior is not documented in plot or plot.default. plot.default resets xaxp, and leaves xaxp reset when it exits: par(xaxp=c(0,1,4)) print(par("xaxp")) plot(c(0,1),c(0.2,0.3)) print(par("xaxp")) R. Woodrow Setzer, Jr. Phone: (919) 541-0128 Experimental Toxicology Division
2002 Jun 28
3
rw1051 binary dist missing dyn.load documentation (PR#1719)
The binary package (version of 6/17) of rw1051 for Windows is missing html documentation for dyn.load() The file is present in $R_HOME/library/base/html, but has zero bytes. dyn.load help IS accessible through the windows help system. platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 1 minor 5.1 year 2002 month 06 day 17 language R
2001 Apr 11
0
using bitmap to make a multi-page pdf file results in duplication of (PR#908)
When I execute the following code: bitmap("test.pdf",type="pdfwrite") plot(1:10,1:10,main="ONE") plot(1:10,1:10,main="TWO") dev.off() the resulting file test.pdf contains four pages: graph ONE, graph TWO, graph ONE, graph TWO. I can recreate the problem with R version 1.2.1 and 1.2.2. I am using Aladdin ghostscript version 6.50. The temporary file
2002 Jan 16
0
inconsistent(?) behavior of as.vector
According to the documentation for as.vector, it removes all attributes from its argument ("the attributes of x are removed"). This does not seem to be the case for a list with a dim attribute. Consider the following code: numarray <- vector("numeric",4) dim(numarray) <- c(2,2) dimnames(numarray) <- list(c("A","B"),c("C","D"))
2002 Jul 01
0
error starting SJava: classpath?
Does SJava require that omegahat be installed? I have installed the binary Windows package (SJavaWin_0.62-8.zip), made the change eliminating the call to .alias(), with the following results on startup: > library(SJava) > .JavaInit() Error in .JavaInit() : Couldn't start Java Virtual Machine: Cannot find the Omegahat interface manager class. Check you classpath! > tmp <-
2001 Dec 13
3
R-1.4.0: how to use getSymbolInfo()?
I have a package that solves systems of ordinary differential equations coded as an R function (odesolve, on CRAN). The function is passed to R code, and c and Fortran code called by it uses lang4() and eval() to evaluate the R function inside a compiled c function to use in a compiled ODE solver. This works quite well, but can be slow. I'd like to be able to supply the name of a compiled
2001 Aug 29
1
problem in plot(), combining log="y" with type="s" (PR#1078)
I just noticed this behavior of plot(). If you combine: log="y", with type ="s", specify ylim, AND have plotting points outside of ylim, then the R process hangs. For example: plot(1:10,seq(0.0001,1,length=10),ylim=c(0.01,1),type="s",log="y") It will also hang if the original plot() command did not specify ylim, but a subsequent
2000 Oct 25
3
.Alias
Probably I've just misread the documentation, but I don't understand the behavior of .Alias. Consider this (on R-1.1.1, both Windows and SGI): > tmp <- matrix(nrow=3,ncol=2) > new <- .Alias(tmp) > new[1,1] <- 1 > tmp [,1] [,2] [1,] NA NA [2,] NA NA [3,] NA NA > new [,1] [,2] [1,] 1 NA [2,] NA NA [3,] NA NA I expected tmp[1,1] to
2001 Mar 20
2
Are sockets supported on Irix?
When I try to open a server socket on the system setup listed below, I get the following error: > a <- make.socket(port=8091,server=TRUE) Error in make.socket(port = 8091, server = TRUE) : sockets are not available on this system I just wanted to make sure that sockets were generally available for this platform (or, perhaps, I need to upgrade to 1.2.2 on this system), before I got
2001 Sep 12
1
error in nlme
I'm getting an error from nlme that has me stymied. I have a data set ,'mydata', with variables: AChE, Dose, sex, set, and mrid; 'set' and 'mrid' indicate two levels of nesting, with 'set' nested within 'mrid'. I want to fit the model: mod <- nlme(AChE ~ Cexp(Dose, A, B, m), data=mydata, fixed = A+B+M~sex, random=A+B+m~sex | mrid/set,
2001 Sep 21
2
memory usage
Does the following indicate that I have a memory leak? > gc(TRUE) Garbage collection 22891 = 21012+1557+322 (level 2) ... 483257 cons cells free (59%) 11.0 Mbytes of heap free (82%) used (Mb) gc trigger (Mb) Ncells 334906 9.0 818163 21.9 Vcells 309342 2.4 1746173 13.4 > memory.size()/1024/1024 ## in MB [1] 643.8978 > sum(sapply(ls(all.names=TRUE),object.size)) [1] 1776
2003 Apr 04
3
creating function bodies using body()
I'm having trouble figuring out how to create a function using "body<-" (). The help file for body() says that the argument should be a list of R expressions. However if I try that I get an error: > tmpfun <- function(a, b=2){} > body(tmpfun) <- list(expression(z <- a + b),expression(z^2)) Error in as.function.default(c(formals(f), value), envir) :
2001 May 30
2
environments
I would like to be able, inside a function, to create a new function, and use it as part of a formula as an argument to, say, gnls or nlme. for example: MyTop <- function(data=dta) { Cexp <- function(dose,A,B,m){...} Model <- as.formula(paste("y","~ Cexp(",paste(formals(Cexp),collapse =", "),")")) MyCall <-
2001 Mar 20
1
tcltk on Windows 98
I've written an application that uses the tcltk package, and have distributed it to a few people to use here in the Agency on Windows 98 machines. It has worked just fine on all but one of those machines. On that one (system information quoted below), we persist in getting the error message: > require (tcltk) Loading required package: tcltk Error in dyn.load(x, as.logical(local),