[R] R CMD CHECK and require() / library() methods

2007-04-25 Thread Crispin Miller
Hi, I have a piece of code that decides at runtime whether to load a data package (and which package to load). This is then done with a call to: library(x) (where x is a character variable containing the package name). This causes R CMD check to throw out a warning: 'library' or 'required'

Re: [R] R CMD CHECK and require() / library() methods

2007-04-25 Thread Crispin Miller
Many thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prof Brian Ripley Sent: 25 April 2007 16:03 To: Crispin Miller Cc: R-help@stat.math.ethz.ch Subject: Re: [R] R CMD CHECK and require() / library() methods On Wed, 25 Apr 2007

[R] Matrices with a single column

2005-09-01 Thread Crispin Miller
Hi, I've got a quick question about what happens when indexing into matrices with a single column. I was wondering if anyone can help ... For example: x - matrix(1:10) y - cbind(x,x) x[4:6,] [1] 4 5 6 y[4:6,] [,1] [,2] [1,] 4 4 [2,] 5 5 [3,] 6 6 class(x[4:6,]) [1] integer

Re: [R] Matrices with a single column

2005-09-01 Thread Crispin Miller
Thanks everyone! Crispin This email is confidential and intended solely for the use o...{{dropped}} __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Selecting font sizes graphics device

2005-04-28 Thread Crispin Miller
Dear all, Im' using matrix() and layout() to set up a fairly complex plot... I was wondering if anyone can point me to something that describes the appropriate incantations to determine, given a text string, the maximum font size that will allow it to fit into the current plotting area without

[R] File permissions and packages, openVignette

2004-01-22 Thread Crispin Miller
Hi, I've got a quick question about file permissions and packages... I'm creating my own package, and am having problems with its vignette not being seen when I install it into R... As I understand it, the permissions of the source tree should be as follows: o Directories - drwxrwxr-- o

[R] Alpha values

2003-11-12 Thread Crispin Miller
Hi, Does anyone know whether it is possible to construct a colour for plotting with an alpha value as well as simply specifying rgb values? Crispin This email is confidential and intended solely for the use o...{{dropped}}

[R] Creating packages in 1.8

2003-10-31 Thread Crispin Miller
Hi, I decided to upgrade to 1.8 today... :-) Anyway, we are writing our own package that is dependent on a bioconductor library - 'affy'. I've checked and when I fire up R, library(affy) behaves as expected... so it all seems to be installed and OK... In the DESCRIPTION file in my package source

RE: [R] Creating packages in 1.8

2003-10-31 Thread Crispin Miller
appreciate that very similar questions have been asked before, but I suspect that 1.8 is slightly different (since R CMD check ... worked fine for us in 1.7.1). Crispin -Original Message- From: Crispin Miller Sent: 31 October 2003 14:51 To: [EMAIL PROTECTED] Subject: [R] Creating

[R] environments

2003-10-17 Thread Crispin Miller
Hi, I have a string representing an environment: bob And an environment bob environment: 0x3901234ac How do write a function that takes the string and returns the environment? Crispin This email is confidential and intended solely

[R] Setting PNG sizes

2003-10-13 Thread Crispin Miller
Hi, Firstly, thanks for your collective help the other day with packages and the like - I now have a function that takes a few seconds to run instead of half a day... much obliged! I'm trying to print out a 300dpi PNG for inclusion in a publication (I don't want postscript because some of the

[R] Optimising code

2003-10-07 Thread Crispin Miller
Hi, Does anyone have any advice on speeding up R functions (short of re-implementing them in C :-) )? I have a function that applies a wilcoxon test to 12 sets of about a quarter of a million pairs (and takes about 3 hours). I've replaced the inner loop I had originally with a function call

FW: [R] Optimising code

2003-10-07 Thread Crispin Miller
I have a function that applies a wilcoxon test to 12 sets of about a quarter of a million pairs ... and let me guess: everything is significiant to an almost arbitrary value of \alpha? :-) For each of quarter of a million sets, I do a wilcoxon between two pairs each containing twenty

RE: FW: [R] Optimising code

2003-10-07 Thread Crispin Miller
Yup, my mistake for not being very clear! Alas the computer is already very fast - looks like it's C for me... -Original Message- From: Patrick Burns [mailto:[EMAIL PROTECTED] Sent: 07 October 2003 12:00 Cc: Crispin Miller Subject: Re: FW: [R] Optimising code I had

[R] .First.lib doesn't appear to be running after calling library()

2003-10-07 Thread Crispin Miller
Hi - so I've dusted off the C bits of my brain and gotten a library written for my package... It passes R CMD check ok, and I've put a file called '.First.lib.R' in the pacakge's 'R' subdirectory. Its permissions are 644. It says: .First.lib - function(lib,pkg) {

RE: [R] .First.lib doesn't appear to be running after calling lib rary()

2003-10-07 Thread Crispin Miller
Thanks - it is indeed the first '.' that's the problem... Crispin -Original Message- From: Liaw, Andy [mailto:[EMAIL PROTECTED] Sent: 07 October 2003 15:21 To: Crispin Miller Subject: RE: [R] .First.lib doesn't appear to be running after calling lib rary() I put .First.lib

RE: [R] Apply and its friends

2003-10-06 Thread Crispin Miller
Smart! Thanks Crispin -Original Message- From: Berwin Turlach [mailto:[EMAIL PROTECTED] Sent: 06 October 2003 13:11 To: Crispin Miller Subject: Re: [R] Apply and its friends CM == Crispin Miller [EMAIL PROTECTED] writes: CM Hi, CM Forgive a very basic question