Re: [R] quartz() on MAC OSX

2007-05-22 Thread Paul Roebuck
On Tue, 22 May 2007, hadley wickham wrote: On 5/22/07, Rolf Turner [EMAIL PROTECTED] wrote: On 22/5/07 6:48 AM, hadley wickham [EMAIL PROTECTED] wrote: Two possible solutions: * DISPLAY=0.0.0.0:0 R - and then X11() should work without having to use xterm *

[R] Makeconf on Windows - where?

2007-03-30 Thread Paul Roebuck
Read in the Windows release notes for 2.4.0 that: There is a new file etc/Makeconf that provides an approximation to the Unix version and may help with src/Makefile's. Yet when I look at the CRAN binary I have for 2.4.1patched, there are five files in the $R_HOME/etc directory, but no

[R] Canonical method for S engine selection?

2006-12-06 Thread Paul Roebuck
Assuming script 'common.q' contains code that needed different processing depending on interpreter (either S-PLUS or R), what should the condition be? if (condition) { # Do S-PLUS code } else { # Do R code } Looking for something akin to the C preprocessor directive USING_R, but for S.

[R] default help system (was Re: Basic package structure question)

2006-06-23 Thread Paul Roebuck
Many parts of original thread [SNIP]'d On Fri, 23 Jun 2006, Duncan Murdoch wrote: On Fri, 23 Jun 2006, Joerg van den Hoff wrote: our Windows machines lack proper development environments (mainly missing perl is the problem for pure R-code packages, I believe?) and we bypass this (for

Re: [R] make check errors for R-2.3.1

2006-06-09 Thread Paul Roebuck
On Thu, 8 Jun 2006, Luo Weijun wrote: I tried to build R-2.3.1 from source under Mac OS X 10.4.6. (I am doing so because only this way I can get the 64-bit version of R) The configure and make steps look fine. But I got errors when I did make check-all, here is the message: running code

Re: [R] X11 device

2006-05-31 Thread Paul Roebuck
On Wed, 31 May 2006, Marius Hofert wrote: I am working with R on a Mac Powerbook G4. As described a couple of days ago, I would like to create an animation consisting of - say - 1000 plots (lattice: xyplot, wireframe etc.). Everything works perfectly fine (thanks to all of you for the

Re: [R] Automate concatenation?

2006-05-30 Thread Paul Roebuck
On Tue, 30 May 2006, Robert Lundqvist wrote: I have this typical problem of joining a number of vectors with similar names - a1, a2,..., a10 - which should be concatenated into one. Using c(a1,a2,a3,a4,a5,a6,a,a8,a9,a10) naturally works, but I would like to do it with less manual input. My

[R] sprintf question

2006-05-03 Thread Paul Roebuck
How would one go about getting sprintf to use the values of a vector without having to specify each argument individually? v - c(1, 2, -1.197114, 0.1596687) iv - c(3, 1, 2, 4) sprintf(%9.2f\t%d\t%d\t%8.3f, v[3], v[1], v[2], v[4]) [1] -1.20\t1\t2\t 0.160 Essentially, desired effect would

Re: [R] Memory usage and limit

2006-04-26 Thread Paul Roebuck
On Wed, 26 Apr 2006, Min Shao wrote: I recently made a 64-bit build of R-2.2.1 under Solaris 9 using gcc v.3.4.2. The server has 12GB memory, 6 Sparc CPUs and plenty of swap space. I was the only user at the time of the following experiment. I wanted to benchmark R's capability to read large

Re: [R] Breakdown a number

2006-04-20 Thread Paul Roebuck
On Thu, 20 Apr 2006, Gabor Grothendieck wrote: On 4/19/06, Paul Roebuck [EMAIL PROTECTED] wrote: On Wed, 19 Apr 2006, Gabor Grothendieck wrote: On 4/19/06, Paul Roebuck [EMAIL PROTECTED] wrote: Isn't there a builtin method for doing this and, if so, what is it called

[R] Breakdown a number

2006-04-19 Thread Paul Roebuck
Isn't there a builtin method for doing this and, if so, what is it called? breakdown - function(whole) { breaks - c(250, 800) pieces - integer(length(breaks) + 1) if (whole breaks[2]) { pieces[3] - whole - breaks[2]

Re: [R] Breakdown a number

2006-04-19 Thread Paul Roebuck
On Wed, 19 Apr 2006, Gabor Grothendieck wrote: On 4/19/06, Paul Roebuck [EMAIL PROTECTED] wrote: Isn't there a builtin method for doing this and, if so, what is it called? breakdown - function(whole) { breaks - c(250, 800) pieces - integer(length(breaks

[R] S4 method dispatch matrixOrArray

2006-04-12 Thread Paul Roebuck
I have some code where the primary dispatching is on other parameters so I'd like not to have to create a set of functions for matrix and another duplicate set for array. But the class union technique isn't working as implemented below and I don't have my Green book with me. How do I fix my

Re: [R] S4 method dispatch matrixOrArray

2006-04-12 Thread Paul Roebuck
On Wed, 12 Apr 2006, Gabor Grothendieck wrote: On 4/12/06, Paul Roebuck [EMAIL PROTECTED] wrote: I have some code where the primary dispatching is on other parameters so I'd like not to have to create a set of functions for matrix and another duplicate set for array. But the class union

Re: [R] extremely simple for loop question

2006-04-12 Thread Paul Roebuck
On Wed, 12 Apr 2006, Brian Quinif wrote: I want to do a for loop in which m takes on the values 1, 5, 10, 15, 20. What is the syntax for doing that? I had been doing a loop for m in 1:20, but I only want those values above. ?seq --

[R] Indexing With List Of Vectors (Replacement)

2006-04-06 Thread Paul Roebuck
I have the following: a - matrix(1:10, nrow = 2, byrow = TRUE) b - array(as.integer(0), c(7, 5)) idx - list() length(idx) - 2 dim(idx) - c(1, 2) idx[[1]] - as.integer(1:2) idx[[2]] - as.integer(1:5) I can do the following, which works if 'b' is a matrix. b[idx[[1]], idx[[2]]] - a b

Re: [R] Disable LazyLoading mechanism completely

2006-04-03 Thread Paul Roebuck
On Sat, 1 Apr 2006, Duncan Murdoch wrote: On 3/31/2006 6:03 PM, Paul Roebuck wrote: On Fri, 31 Mar 2006, Duncan Murdoch wrote: On 3/31/2006 5:15 PM, Paul Roebuck wrote: Is there a global option somewhere that can completely disable the LazyLoad option? I want all my packages

[R] do.call method within namespace

2006-04-03 Thread Paul Roebuck
How does one go about invoking a method within a namespaced package if that package has not been loaded via library method? Given mypackage and method foo within: mypackage::foo(1, 2, 3) Executing the same method's function call: do.call(foo, list(1, 2, 3)) didn't work. Nor did the

Re: [R] Disable LazyLoading mechanism completely

2006-04-01 Thread Paul Roebuck
On Sat, 1 Apr 2006, Prof Brian Ripley wrote: On Fri, 31 Mar 2006, Dirk Eddelbuettel wrote: On 31 March 2006 at 16:15, Paul Roebuck wrote: | Is there a global option somewhere that can completely | disable the LazyLoad option? I want all my packages | in source format for searching

Re: [R] Branching, depending upon operating system

2006-03-31 Thread Paul Roebuck
On Fri, 31 Mar 2006, Frank Rossdeutscher wrote: From my current code, I need to call either a batch file or shell script, depending on what operating system R is running. But before that I need to find out, whether the machine is running Windows or Linux. I found the getBuiltinOs() command

[R] Reset R's temporary directory automatically

2006-03-31 Thread Paul Roebuck
I have run into this several times now. I leave a copy of R running for days at a time. At some point in time, the temporary directory R uses no longer exists. Once that happens, installs (and other basic operations) stop functioning. Currently I recreate the directory manually by failing some

[R] Disable LazyLoading mechanism completely

2006-03-31 Thread Paul Roebuck
Is there a global option somewhere that can completely disable the LazyLoad option? I want all my packages in source format for searching purposes, crippled by the conversion to database format. -- SIGSIG -- signature too long (core dumped)

Re: [R] Disable LazyLoading mechanism completely

2006-03-31 Thread Paul Roebuck
On Fri, 31 Mar 2006, Duncan Murdoch wrote: On 3/31/2006 5:15 PM, Paul Roebuck wrote: Is there a global option somewhere that can completely disable the LazyLoad option? I want all my packages in source format for searching purposes, crippled by the conversion to database format. Why

[R] Recall for parent

2006-03-29 Thread Paul Roebuck
What's the best way to simulate Recall for parent function? Consider this one-time recursive code: alwaysEven - function(x) { handleOdd - function(x) { alwaysEven(x-1)# use Recall-like here } return(if (x %% 2) handleOdd(x) else x) } any2even - alwaysEven rm(alwaysEven)

[R] [REQ] Equivalent INSTALL cmdline option

2006-01-24 Thread Paul Roebuck
Would R-Core entertain adding the more proper (-L) option as an equivalent to the existing (-l) option for INSTALL script so it would match other utilities (like cc) for specifying directories? $ R CMD INSTALL -L install_dir package --

[R] R Commenting Style

2006-01-19 Thread Paul Roebuck
I seem to remember reading somewhere about some style guide regarding R the number of comment characters (#) prior to the comment meaning something. Anyone know to what I'm referring? Where? -- SIGSIG -- signature too long (core dumped)

Re: [R] suppress tick labels

2005-12-01 Thread Paul Roebuck
On Thu, 1 Dec 2005, Sebastian Leuzinger wrote: is R able to suppress tick labels (not tick marks)? i know there is a way around this with axes=F and then draw new axes, but it would be easier to suppress them in the first place. Something wrong with setting them to null string?

Re: [R] Fwd: Matrix rotation

2005-11-28 Thread Paul Roebuck
On Thu, 24 Nov 2005, Benjamin Lloyd-Hughes wrote: Ok I warned you that I'd been drinking! What I really meant was something to go from: [,1] [,2] [1,]12 [2,]43 to [,1] [,2] [1,]41 [2,]32 to [,1] [,2] [1,]34 [2,]21

Re: [R] How to run R in batch mode

2005-11-18 Thread Paul Roebuck
On Fri, 18 Nov 2005, Beatriz wrote: I want to run R in batch mode but it doen't work (Error: syntax error) I've found this in R help: R CMD BATCH [options] infile [outfile] I have tried differents commands: (I have been working in the same directory I have test.txt file and test2.txt

Re: [R] How to run R in batch mode

2005-11-18 Thread Paul Roebuck
On Fri, 18 Nov 2005, Beatriz wrote: Paul Roebuck wrote: On Fri, 18 Nov 2005, Beatriz wrote: I want to run R in batch mode but it doen't work (Error: syntax error) [SNIP] I don't know what is wrong. Could you help me, please? Isn't it possible that it is working just fine and you

[R] sibling list element reference during list definition

2005-11-11 Thread Paul Roebuck
Can the value of a list element be referenced from a sibling list element during list creation without the use of a temporary variable? The following doesn't work but it's the general idea. list(value = 2, plusplus = $value+1) such that the following would be the output from str() List of 2

Re: [R] Tcl/tk [for Mac OS X]

2005-11-02 Thread Paul Roebuck
On Tue, 1 Nov 2005, Sokol Haxhinasto wrote: I recently installed the R (the most recent) and Bioconductor on my computer. I installed the packages in affy, the affyGui and the limmaGui on my computer and they all appear in the Load Package window. After trying to load the affyGui or the

Re: [R] Problems with dyn.load()

2005-11-01 Thread Paul Roebuck
On Tue, 1 Nov 2005, Marcelo Damasceno wrote: Is there some function that returns the directory where the libraries of the instaled package are? Because in Mandrake, R installs in /usr/lib/R/library/pack/libs, and in Debian it installs in /usr/local/lib/R/library/pack/libs. ?system.file

Re: [R] R.app window size

2005-10-10 Thread Paul Roebuck
On Mon, 10 Oct 2005, Jason Horn wrote: This is a question for any of you who use R.app (OS X). Is there any way to resize the quartz plot window from within R? I know that you can resize the window by dragging the corner of the window, and fro the preferences panel. But is there a way to

Re: [R] sscanf equivalent

2005-10-09 Thread Paul Roebuck
On Fri, 7 Oct 2005, Prof Brian Ripley wrote: On Fri, 7 Oct 2005, Paul Roebuck wrote: I have a data file from which I need to read portions of data but data location/quantity can change from file to file. I wrote some code and have a working solution but it seems wasteful to have to do

[R] sscanf equivalent

2005-10-07 Thread Paul Roebuck
I have a data file from which I need to read portions of data but data location/quantity can change from file to file. I wrote some code and have a working solution but it seems wasteful to have to do it this way. Here's the contrived incomplete code. datalines - readLines(datafile.pathname)

Re: [R] Library error when using R CMD check

2005-10-03 Thread Paul Roebuck
On Mon, 3 Oct 2005, Ken Termiso wrote: I've got a library I'm trying to build, and am having an error on R CMD check... The source is fine, and the script runs OK, but during the script test execution it downloads a library from an online repository, which goes fine and it says that

[R] X-Axis Label Overwritten By TickMark Values

2005-10-01 Thread Paul Roebuck
Can someone tell me how to fix the left margin of plot region such that the tick values don't overwrite the x-axis label? I haven't been able to set the correct par option to fix this... TIA grdev - function(...) { get(getOption(device))(...) } plotFixMe - function(spectrum,

Re: [R] Y-Axis Label Overwritten By TickMark Values

2005-10-01 Thread Paul Roebuck
On Sat, 1 Oct 2005, Marc Schwartz wrote: On Sat, 2005-10-01 at 06:07 -0500, Paul Roebuck wrote: Can someone tell me how to fix the left margin of plot region such that the tick values don't overwrite the x-axis label? I haven't been able to set the correct par option to fix

Re: [R] Use of contains in S4 classes

2005-08-18 Thread Paul Roebuck
On Thu, 18 Aug 2005, Ross Boylan wrote: setClass(B, representation=representation(B, extra=numeric)) setClass(B, representation=representation(extra=numeric), contains=B) Are these the same? If not, how do they differ? What about setClass(B, representation=representation(B,

Re: [R] signal handling

2005-08-13 Thread Paul Roebuck
On Fri, 12 Aug 2005, Paul Gilbert wrote: Omar Lakkis wrote: Is ther a signal handling model in R? similar to Perl's %SIG hash. I want to do fast clean up in my R code before exit when a kill signal is issued. I'm not sure about perl's signals, but Unix signals can be passed with

Re: [R] Dating Objects

2005-08-12 Thread Paul Roebuck
On Fri, 12 Aug 2005, Jason Skelton wrote: I'm trying to carryout the equivalent of ls -l in R to give some date/time label to each of my objects If the case is that there is no equivalent, is it possible to list all objects in an environment that share a common component so that the common

Re: [R] question on creating a new logical variable

2005-08-11 Thread Paul Roebuck
On Thu, 11 Aug 2005, Renuka Sane wrote: I have two variables. A - rep(c(1:9), 2) B - rep(c(2:10),2) I want to know the the value for A==1 and B==1 [SNIP] To solve the problem I therefore create a new variable C - c(A, B) and then do table(C==1) which gives me FALSE TRUE 34 2 Is

Re: [R] how to use the function from another package

2005-08-09 Thread Paul Roebuck
On Tue, 9 Aug 2005, Peter Yang wrote: I am trying to write a package(A) for myself and need to use a function from another package(B) which is in R already(need to install it before use). Could anyone tell me how to implement that? Also I hope that my package gives an ERROR message(something

Re: [R] SJava linux installation problems

2005-08-05 Thread Paul Roebuck
On Fri, 5 Aug 2005, Dhiren DSouza wrote: I am extremely new to linux so bare with the questions. I am trying to install the SJava package for R on linux (debian). I issue the R CMD INSTALL SJava_0.68-0.tar.gz and get the following error Cannot find Java. Please set your path to include

Re: [R] Turning off return warning messages.

2005-07-19 Thread Paul Roebuck
On Wed, 20 Jul 2005, Steve Su wrote: Is there a way I can turn off the following warning message for using multi-argument returns? multi-argument returns are deprecated in: return(p1, p2, p3, p4) doubleEm - function(p1, p2, p3, p4) { return(list(p1 = p1*p1, p2 = p2*p2,

Re: [R] Installing packages, again

2005-04-25 Thread Paul Roebuck
On Mon, 25 Apr 2005, Tyler Smith wrote: I've just uninstalled R2.01 and installed the new R2.10 on my WindowsXP machine. I then attempted to install the vegan package from source files, as I learned to do last week, with the help of some of you. I have updated my path variable to the new R

Re: [R] write a library under 2.0.1 version

2005-03-01 Thread Paul Roebuck
On Tue, 1 Mar 2005, Prof Brian Ripley wrote: On Tue, 1 Mar 2005 [EMAIL PROTECTED] wrote: I had written a library under R 1.9.0 and now I would like to import that library under R 2.0.1 Apparently it does not work; I can install the package, but when I try to read it the error is the

Re: [R] dumping the summary of lm to a text file

2005-02-17 Thread Paul Roebuck
On Thu, 17 Feb 2005, Adrian Dragulescu wrote: I have a linear regression ctl- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) trt- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69) group - gl(2,10,20, labels=c(Ctl,Trt)) weight - c(ctl, trt) reg- lm(weight ~ group)

Re: [R] Rmatlab

2005-02-07 Thread Paul Roebuck
On Mon, 7 Feb 2005, David Enot wrote: I came across recently to the Rmatlab package (http://www.omegahat.org/RMatlab/) that allows R and Matlab to talk to each other. I made several attempts to install it on my Mac but without any success as some headers seem to miss. I am just wondering if

Re: [R] Strange parsing behavior of an else condition

2005-02-07 Thread Paul Roebuck
On Tue, 8 Feb 2005, Christian Lederer wrote: can anybody explain the reason, why the first piece of code below gives a parsing error, while the other two variations work? # Gives a parsing error x - 1 if (x 0) { y - 1 } else # Error occurs at this line { y - -1 }

Re: [R] Uninstalling R from Mac OS X

2005-02-03 Thread Paul Roebuck
On Thu, 3 Feb 2005, Christofer Ecklund wrote: Could you tell me how to uninstall R from Mac OS X (10.3)? I am not too familiar with terminal or the command line so a GUI removal would be better, however I would like to remove every trace of the program from my system. Usually with a package

[R] Re: [Rd] Typo in 'R Language Definition'

2005-01-31 Thread Paul Roebuck
On Mon, 31 Jan 2005, Prof Brian Ripley wrote: On Sun, 30 Jan 2005, Paul Roebuck wrote: Section 3.5.3 The call stack (pg 23 of R-lang.pdf) ...the computation the the currently active environment... ^^^ Which version of R is this? I think it has been corrected a while

Re: [R] Rinternals.h and iostream don't play nice together'

2005-01-30 Thread Paul Roebuck
On Sun, 30 Jan 2005, Faheem Mitha wrote: Consider the following file. *** foo.cc *** #include R.h and if you use the following instead of Rinternals.h? extern C { #include Rdefines.h } #include Rinternals.h #include iostream

Re: [R] Startup Files (RProfile) and R-Aqua

2005-01-30 Thread Paul Roebuck
On Sun, 30 Jan 2005, Thomas Hopper wrote: I'm having some difficulty understanding the documentation relative to the startup files with R-Aqua 2.0.1 for Mac OS X. Specifically, I'm wondering: where does R search for the startup files (my home directory at Users:me:?); how should they be

Re: [R] type of list elements in .Call

2005-01-30 Thread Paul Roebuck
On Mon, 31 Jan 2005, Faheem Mitha wrote: [SNIP] as I would expect. I thought that if the vectors in the list could be regarded as integer vectors, they would be, but apparently not. Is there any way I can tell R to regard them as integer vectors? .Call(printlst, list(as.integer(c(1,2)),

Re: [R] Error: cannot allocate vector of size... but with a twist

2005-01-27 Thread Paul Roebuck
On Fri, 28 Jan 2005, James Muller wrote: I have a memory problem, one which I've seen pop up in the list a few times, but which seems to be a little different. It is the Error: cannot allocate vector of size x problem. I'm running R2.0 on RH9. [SNIP] R chews up memory up until the 3.5Gb

Re: [R] an R script editor for Mac

2005-01-24 Thread Paul Roebuck
Jacques VESLOT wrote: Could someone please make me know if there is a nice script editor available under Mac, similar to Crimson, that offers R syntax highlighting (and pairs of parentheses underlining) ? Did you look into BareBone's TextWrangler, 'BBEdit Lite' replacement? It's now available

RE: [R] help wanted using R in a classroom

2005-01-19 Thread Paul Roebuck
On Tue, 18 Jan 2005, bogdan romocea wrote: It appears you wouldn't get much improvement at all even if the 2nd CPU were used at 100%. Five R sessions can easily overwhelm one CPU. I think you need (a lot) more CPUs than 2 to solve your problem. Possible solutions: 1. Install R on each eMac.

Re: [R] signif() generic

2005-01-19 Thread Paul Roebuck
On Wed, 19 Jan 2005 [EMAIL PROTECTED] wrote: I'm trying to write a class for Gaussian error propagation of measured values and their (estimated) errors, setClass(sec, representation(val=numeric, err=numeric)) I've already successfully implemented basic arithmetics using mostly the Arith

RE: [R] install.packages() for local source file

2005-01-01 Thread Paul Roebuck
On Sat, 1 Jan 2005, Liaw, Andy wrote: From: Paul Roebuck Wish to install a local source package on Un*x platform from within R. Same thing as I can accomplish from cmdline as $ export R_LIBS=~/R/library $ cd /path/to/pkg $ R CMD INSTALL -l $R_LIBS pkgname So, how do you go

RE: [R] install.packages() for local source file

2005-01-01 Thread Paul Roebuck
On Sat, 1 Jan 2005, Liaw, Andy wrote: From: Paul Roebuck Please read ?install.packages. It's most definitely not a bug for a function that works as documented. If you want, you might take the source for install.packages and strip it down to do what you want, say something called

Re: [R] install.packages() for local source file

2005-01-01 Thread Paul Roebuck
On Sat, 1 Jan 2005, Roger D. Peng wrote: Paul Roebuck wrote: Wish to install a local source package on Un*x platform from within R. Same thing as I can accomplish from cmdline as $ export R_LIBS=~/R/library $ cd /path/to/pkg $ R CMD INSTALL -l $R_LIBS pkgname So, how do you go

[R] install.packages() for local source file

2004-12-31 Thread Paul Roebuck
Wish to install a local source package on Un*x platform from within R. Same thing as I can accomplish from cmdline as $ export R_LIBS=~/R/library $ cd /path/to/pkg $ R CMD INSTALL -l $R_LIBS pkgname So, how do you go about this anyway? And isn't this a bug in 'install.packages'? --- $ R R

Re: [R] Text Mining with R

2004-12-03 Thread Paul Roebuck
On Fri, 3 Dec 2004, Jose Quesada wrote: On Fri, 3 Dec 2004 19:15:57 +, Tobias Verbeke wrote: You may have a look at: http://wwwpeople.unil.ch/jean-pierre.mueller/ I just created a zip file from the tar, and used the install from zip option of the Rwin console. ttda is shown in

Re: [R] Redirect standard input and output of R

2004-11-18 Thread Paul Roebuck
On Wed, 17 Nov 2004, Victor Robles wrote: I'm trying to write a C program that write to the standard input of R and read the standard output. I can perfectly read the R output, but I'm not able of writing anything to R. [SNIP C code] Several years ago, I wrote some software that used S-plus

Re: [R] R package installation

2004-11-17 Thread Paul Roebuck
On Wed, 17 Nov 2004, Timothy D. Johnson wrote: I was given an excerpt with your problem about installing package on a MAC, such as Hmisc. I had the same problems and found a work around. I have not had any trouble loading in source packages since, include Hmisc and Design, acepack and

Re: [R] can i copy the graphics to openoffice?

2004-11-11 Thread Paul Roebuck
On Fri, 12 Nov 2004, ronggui wrote: under windows,i can plot a graphics in windows() device and then copy it to ms-office.but it under linux,can i do similar things? i want to use plot() to draw a graphic in X11() so i can have a look to make sure if that's what i want,if so,i then want to

[R] Need car() and cdr() for '...'

2004-11-09 Thread Paul Roebuck
Needed to redefine function sum for my MATLAB package. There's something similar in Chambers's Green Book (pg 351) so I modified it as such: library(methods) setGeneric(sum, function(x, ..., na.rm = FALSE) { if (nDotArgs(...) 0) sum(c(sum(x, na.rm = na.rm), sum(...,

[R] Rd \docType options

2004-11-08 Thread Paul Roebuck
Where would I find a list of valid options for \docType{}? I found the following types using grep: - class - data - genericFunction - methods Are there others? -- SIGSIG -- signature too long (core dumped)

Re: [R] Compilation error on mgcv_1.1-7 on OS X (10.3)

2004-11-01 Thread Paul Roebuck
On Mon, 1 Nov 2004, Jon Egil Strand wrote: I run into a compilation error when updating to mgcv_1.1-7 in R 2.0.0 on OS X 10.3. Note that other pacakges have compiled nicely. Some details are given below, but in short it looks like it's seeking for

[R] Mac OS X binary package naming convention

2004-10-29 Thread Paul Roebuck
Did the convention change during the R 2.0.0 Cocoa update? When I issue the build command: $ R CMD build --binary mypkg I expected to get 'mypkg_0.9-0.tgz' but instead got 'mypkg_0.9-0_R_powerpc-apple-darwin6.8.tar.gz'. Or should I rename it manually? platformpowerpc-apple-darwin6.8

Re: [R] Warning: number of items to replace is not a multiple ofreplacement length

2004-09-29 Thread Paul Roebuck
On Wed, 29 Sep 2004, Mag. Ferri Leberl wrote: What does this warning mean precisely? Usually means there isn't enough room to store your results. Is there any reason to care about it? You probably should. Can I Avoid it by another way of programming? Yes you can. Had you provided an

[R] S4 method selection based on second argument

2004-09-28 Thread Paul Roebuck
I'm translating some Matlab code and need some help figuring out how to change this call into an S4 generic method. In matlab, there's a function called 'repmat' with three calling sequences (all I have to deal with anyway): 1) B = repmat(A, m, n) 2) B = repmat(A, [m n]) 3) B =

[R] Confused about specifying plot colors as RGB values

2004-09-17 Thread Paul Roebuck
Based on reading 'rgb' documentation, I would have thought the following would have produced identical results. Can someone explain how to make this happen? I need to be able to specify an array of rgb values for the 'col' parameter. colnames.col - c(black, red, blue, green) colnames.rgb -

Re: [R] Using R to send to SOAP server?

2004-09-17 Thread Paul Roebuck
On Fri, 17 Sep 2004, Don MacQueen wrote: I have an R process continuously monitoring a data stream. When the data meet certain criteria, I need to send a message to a SOAP server. Currently I'm doing this by making a system() call to execute a perl script, passing the message as an argument

Re: [R] Splitting vector into individual elements

2004-09-15 Thread Paul Roebuck
On Wed, 15 Sep 2004, Peter Dalgaard wrote: Paul Roebuck [EMAIL PROTECTED] writes: Is there a means to split a vector into its individual elements without going the brute-force route for arguments to a predefined function call? offred.rgb - c(1, 0, 0) * 0.60; ## Brute force

Re: [R] Dyn.load of sharing object with GSL library

2004-09-09 Thread Paul Roebuck
On Thu, 9 Sep 2004, Vicky Landsman wrote: Following the recommendation of Prof. Ripley, I have created the Makevars file with the line: PKG_LIBS=-L/usr/lib/libm -lm -L/usr/local/lib/libgsl -lgsl -L/usr/local/lib /libgslcblas -lgslcblas in the working directory. That should probably look

RE: [R] Functions in a package not visible to a user

2004-07-16 Thread Paul Roebuck
On Thu, 15 Jul 2004, Andy Liaw wrote: Rui Dantas wrote: I have a package with several R functions. Some are internal auxiliary functions, and should not be available to the user (nor do they, for example, need user documentation). How can I hide them? That's one of the purposes of the

Re: [R] Statistics::R

2004-07-08 Thread Paul Roebuck
On Thu, 8 Jul 2004, michael watson (IAH-C) wrote: I am looking (possibly in vain!) for the Author of the Statistics::R perl package - I believe he announced the package on this mailing list some months ago. The name is Graciliano Monteiro Passos, and his e-mail address, [EMAIL PROTECTED], is

Re: [R] Enumeration in R

2004-07-07 Thread Paul Roebuck
On Tue, 7 Jul 2004, Peter Dalgaard wrote: Paul Roebuck [EMAIL PROTECTED] writes: I want the equivalent of this 'C' declaration. enum StoplightColor { green = 3, yellow = 5, red = 7 }; I think you *dis*abled it by specifying an initializer which

Re: [R] Win32 C code

2004-07-07 Thread Paul Roebuck
On Wed, 7 Jul 2004, Simon Cullen wrote: I'm trying to get C code working with R. This is my first time writing C on Windows and I'm making a mess of it. Help! ... I seem to be unable to make Windows pay attention to additions to the PATH variable so I stuck the code (test.c) into the

[R] NAMESPACE and tests for unexported functions

2004-07-07 Thread Paul Roebuck
How do you get around the problem of having tests for functions that are not exported in NAMESPACE? It seems rather self-defeating to have to export everything so that 'R CMD CHECK pkg' won't crash when it encounters a test case for an internal function. I don't want someone using the package to

[R] Enumeration in R

2004-07-06 Thread Paul Roebuck
I want the equivalent of this 'C' declaration. enum StoplightColor { green = 3, yellow = 5, red = 7 }; This mostly works except the validity checking doesn't seem to occur automatically. What didn't I do to enable it? setClass(stoplightColor,

[R] contrib.url binary paths inconsistent

2004-07-05 Thread Paul Roebuck
Binary distribution [Windows] - contrib.url(getOption(CRAN)) [1] http://cran.r-project.org/bin/windows/contrib/1.9; Binary distribution [Mac OS X] - contrib.url(getOption(CRAN), type = mac.binary) [1]

Re: [R] R BATCH problem

2004-07-01 Thread Paul Roebuck
On Thu, 1 Jul 2004, Andreas Pauling wrote: Entering

Re: [R] MacOS X binaries won't install

2004-06-30 Thread Paul Roebuck
On Tue, 29 Jun 2004, Ruben Solis wrote: I've tried installing the MacOS X binaries for R available at: http://www.bioconductor.org/CRAN/ I'm running MacOS X version 10.2.8. I get a message indicating the installation is successful, but when I double-click on the R icon that shows up in my

Re: [R] R via ssh login on OS X?

2004-06-28 Thread Paul Roebuck
On Mon, 28 Jun 2004, James Howison wrote: I have an ssh only login to a G5 on which I am hoping to run some analyses. The situation is complicated by the fact that the computer's owner is away for the summer (and thus also only has shell login). R is installed and there is a symlink to

[R] [SOLVED] GET_DIM() crash on Windows only

2004-06-24 Thread Paul Roebuck
Paul Roebuck wrote: I have the following contrived code in package format. On Solaris and Mac OS X, code runs just fine. On Windows, it crashes the R environment with the Send Bug Report dialog. I tried R 1.8.1 (Win2K) and R 1.9 (WinXP) binaries with the same result. PCs otherwise appear properly

Re: [R] [Q] GET_DIM() crash on Windows only

2004-06-23 Thread Paul Roebuck
On Wed, 23 Jun 2004, Uwe Ligges wrote: Paul Roebuck wrote: I have the following contrived code in package format. On Solaris and Mac OS X, code runs just fine. On Windows, it crashes the R environment with the Send Bug Report dialog. I tried R 1.8.1 (Win2K) and R 1.9 (WinXP) binaries

Re: [R] Perl--R interface

2004-06-23 Thread Paul Roebuck
On Wed, 23 Jun 2004, XIAO LIU wrote: My R is 1.8.1 in Linux. How can I call R in Perl process? And call Perl from R? This is only one direction but worth a look as an alternative. http://search.cpan.org/~gmpassos/Statistics-R-0.01/ --

Re: [R] assigning from multiple return values

2004-06-23 Thread Paul Roebuck
On Wed, 23 Jun 2004, Jack Tanner wrote: I know that if I have a function that returns multiple values, I should do return(list(foo, bar)). But what do I do on the recieving end? fn - function(x) { return(list(foo, bar)) } I know that at this point I could say values.list - fn(x)

[R] [Q] GET_DIM() crash on Windows only

2004-06-22 Thread Paul Roebuck
I have the following contrived code in package format. On Solaris and Mac OS X, code runs just fine. On Windows, it crashes the R environment with the Send Bug Report dialog. I tried R 1.8.1 (Win2K) and R 1.9 (WinXP) binaries with the same result. PCs otherwise appear properly configured for

[R] [Q] R equivalent for Splus get.message()

2003-05-31 Thread Paul Roebuck
I'm trying to get a translation of some Splus code going. My problem is with the S-plus get.message() function not existing in R. Is there a replacement or alternative? ErrorHandler.func-function() { cat(app.terminated\n); cat(paste(err.fatal,get.message(),\n,sep=)); dump.calls(); }