[Rd] Align legend title

2008-12-22 Thread Gorjanc Gregor
Dear R developers, I needed to align the title of legend for some of my plots. If there is interest to include this into base R, bellow are the examples and the relevent diffs. Regards, Gregor x <- 1:10 y1 <- 1.5 * x y2 <- 2.0 * x y <- cbind(y1, y2) source(file=url("http://gregor.gorjanc.googl

Re: [Rd] (PR#12318) Bug in format.default(): na.encode does not have any effect for

2008-08-09 Thread Gorjanc Gregor
Hi to all! Prof Brian Ripley wrote: > Have you read the help page? It says > >na.encode: logical: should 'NA' strings be encoded? > > No mention of encoding NA numerical values that I can see, and it was > never intended to apply to other than *strings*. I did read the help page, however it

Re: [Rd] head() for files

2008-07-25 Thread Gorjanc Gregor
>> I was thinking about using the head and tail functions also for files i.e. >> show me the first/last few lines of a file. For example: >> >> zz <- file("ex.data", "w") # open an output file connection >> cat("TITLE extra line", "2 3 5 7", "", "11 13 17", file = zz, sep = "\n") >> cat("One more

[Rd] head() for files

2008-07-25 Thread Gorjanc Gregor
Hi! I was thinking about using the head and tail functions also for files i.e. show me the first/last few lines of a file. For example: zz <- file("ex.data", "w") # open an output file connection cat("TITLE extra line", "2 3 5 7", "", "11 13 17", file = zz, sep = "\n") cat("One more line\n", fil

Re: [Rd] Windows: adding R/bin folder to the PATH variable

2008-07-18 Thread Gorjanc Gregor
>> Under Windows R is installed, but its bin folder is not added to the >> system PATH variable. I know that this is handled properly under *nix >> like systems and I wonder, why this is not the default also for the MS >> Windows? I guess that for most users a shortcut on the desktop or >> anywhere

[Rd] Windows: adding R/bin folder to the PATH variable

2008-07-18 Thread Gorjanc Gregor
Hi! Under Windows R is installed, but its bin folder is not added to the system PATH variable. I know that this is handled properly under *nix like systems and I wonder, why this is not the default also for the MS Windows? I guess that for most users a shortcut on the desktop or anywhere else is

[Rd] How to test if R is running on a Mac

2007-09-19 Thread Gorjanc Gregor
Hi! Is there any way to test if R is running on a Mac? I usually use value of .Platform$OS.type for windows or unix, but Mac falls in the latter group. Thanks, Gregor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] RUnit testing with R CMD check and more

2007-09-05 Thread Gorjanc Gregor
Hi! > (another) Martin wrote: > One important scenario I use during development is to run selected > unit tests, typically found in a single file. Usually this is > preceeded by INSTALL rather than check, as I optimistically think that > my changes will be an improvement and hence installing the p

[Rd] RUnit testing with R CMD check and more (was: R CMD check recursive copy of tests/)

2007-09-05 Thread Gorjanc Gregor
Hello! I have looked at Martin's recent work on "merging" unit tests with R CMD check, fused it with my and Tony's contributions and developed it a bit further. Take a look into the attached demo package on how it works. In essence: PKG/inst/RUnitTests |- runRUnitTests.R (script to run

[Rd] Demo folder and 00Index file format

2007-09-05 Thread Gorjanc Gregor
Hi! Columns in demo/00Index must be separated with at least 3 spaces otherwise the following WARNING is issued during R CMD check ... * checking index information ... WARNING Demos with missing or empty index information: [1] "foo" ... After a search I found out that this is noted in file src/l

[Rd] (no subject)

2007-07-12 Thread Gorjanc Gregor
I have just found Sun Grid R-Project resource project site at https://r-project.dev.java.net/ Gregor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Is there any package on CRAN that uses Fortran-90/95

2007-02-26 Thread Gorjanc Gregor
Hi! Is there any package on CRAN that uses Fortran-90/95? I would like to study it. Thanks, Gregor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] R CMD check/build --binary fail with data/RCS map

2006-10-20 Thread Gorjanc Gregor
Hello, On Windows XP using R 2.4.0pat (2006-10-19 r39674) from CRAN (sorry, no r-devel) R CMD check of R CMD build --binary fails if package has RCS folder in data map. This does not happen on my Debian GNU/Linux box with R 2.4.0 (2006-10-03). Is this a bug? Here is the transript from the comm

[Rd] Typo in R-exts.texi and suggestion for tests

2006-08-07 Thread Gorjanc Gregor
svn diff against r-devel Index: R/doc/manual/R-exts.texi === --- R/doc/manual/R-exts.texi(revision 38809) +++ R/doc/manual/R-exts.texi(working copy) @@ -563,7 +563,7 @@ @file{.Rin} file containing code which in turn creates t

Re: [Rd] Documentation for S3 generics

2006-08-07 Thread Gorjanc Gregor
other classes in the text. This is fine, but is for sure confusing for the reader of help page. Gregor -Original Message- From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] Sent: Mon 2006-08-07 14:07 To: Gorjanc Gregor Cc: Martin Maechler; r-devel@stat.math.ethz.ch Subject: Re: [Rd

Re: [Rd] Documentation for S3 generics

2006-08-07 Thread Gorjanc Gregor
From: Martin Maechler [mailto:[EMAIL PROTECTED] >>>>> "Gorjanc" == Gorjanc Gregor <[EMAIL PROTECTED]> >>>>> on Mon, 7 Aug 2006 11:59:31 +0200 writes: Gorjanc> Hello! Gorjanc> Say I have Gorjanc> myMethod <- functi

[Rd] Documentation for S3 generics

2006-08-07 Thread Gorjanc Gregor
Hello! Say I have myMethod <- function(x, ...) UseMethod("myMethod") myMethod.classA <- function(x, ...) ... myMethod.classB <- function(x, ...) ... myMethod.classC <- function(x, arg2, ...) ... and I would like to properly document these as generics. Then I have to use in usage section \

[Rd] Structure of the object: list() and attr()

2006-08-01 Thread Gorjanc Gregor
Hello! I am writing code where I define objects with new class. When I started, it was a simple data.frame with attributes, but it is getting more evolved and I would like to hear any pros and cons to go for list structure, where one "slot" would be a data.frame, while other "slots" would take ove

[Rd] Problem with fitdistr for gamma in R 2.2.0

2005-11-17 Thread Gorjanc Gregor
Dear R developers, I have encountered strange behaviour of fitdistr for gamma in recent R build i.e. 2.2.0. I have attached the code for data at the end of this mail so you can reproduce the problem. In short, I am able to run fitdistr under 2.1.0 without problems, while I get the following error

[Rd] ActiveState Perl, cygwin and R (was: cygwin tar?)

2005-07-11 Thread Gorjanc Gregor
Hello! I have just read mails in thread about problems with Cygwin and Rtools. I had the same problems and kept just the newest cygwin1.dll and things seem OK now. However I currently hit the problem with Perl (I have ActiveState and Cygwi

[Rd] Wish/suggestion: Install packages on fly via library()

2005-06-27 Thread Gorjanc Gregor
Hello! I thought that installation of missing packages on fly via library() would be a nice thing to have. Something like this: if (missing(pkg) && getOption("installOnFly")) { install.packages(pkg, ...) } I did look into library() function to find appropriate place for code similar to on abov

[Rd] FW: Slovenian translation strings for R "installation programs"

2005-06-11 Thread Gorjanc Gregor
Hello again! I appologize for repost, but I got some "corrections/suggestions" from a local translation team. Look bellow. >-Original Message- >From: Gorjanc Gregor >Sent: sob 2005-06-11 13:52 >To: r-devel@stat.math.ethz.ch >Subject: Slovenian translation st

[Rd] Slovenian translation strings for R "installation programs"

2005-06-11 Thread Gorjanc Gregor
Hello! These would be Slovenian translations. I hope that all characters will be displayed OK; note that there are three letters with carons (actually only two are used in these translations): - c with carron as "č" - s with carron as "š" - z with carron as "ž" For more look at