Re: [Rd] noweb and R

2009-07-27 Thread Gregor Gorjanc
Terry Take a look in R News - there was a paper published on that topic. gg __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Align legend title wish remainder (PR#13415)

2008-12-23 Thread gregor . gorjanc
Full_Name: Gregor Gorjanc Version: 2.8.0 and above OS: generic Submission from: (NULL) (82.192.44.219) This is just a remainder for a wish to align legend title as reported and "solved" at https://stat.ethz.ch/pipermail/r-devel/2008-December/051642.html Thanks! Regar

Re: [Rd] Wishlist - better object.size() function

2008-11-19 Thread Gregor Gorjanc
Benjamin Hofner imbe.med.uni-erlangen.de> writes: ... > - Why is the function returning the size in bytes? This is (in most > cases) overly accurate and for humans hard to read. I would suggest to > have it printed in mb per default and additionally add a switch to > choose the appropriate unit

[Rd] Methods for format() are not consistent with NA values (PR#12385)

2008-08-07 Thread Gregor . Gorjanc
DFALSE) [1] "1900-01-01" NA "1900-01-01" "1900-01-01" "1900-01-01" [6] "1900-01-01" "1900-01-01" "1900-01-01" "1900-01-01" "1900-01-01" [11] "1900-01-01" ## --- POSIXt --- > f

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

2008-08-07 Thread Gregor . Gorjanc
i486 os linux-gnu system i486, linux-gnu status major 2 minor 7.1 year 2008 month 06 day23 svn rev45970 language R version.string R version 2.7.1 (2008-06-23) -- Lep pozdrav / With regards, Gregor Gorjanc

Re: [Rd] faqs

2007-11-15 Thread Gregor Gorjanc
Gabor Grothendieck gmail.com> writes: > inst/NEWS would have the advantage of consistency with R itself > which also has a NEWS file. > ... > > My vote is for inst/ChangeLog. I wote for inst/NEWS, while inst/ChangeLog can also be present to show more details such as svn log. Gregor ___

[Rd] Typo in regex help page

2007-09-03 Thread Gregor Gorjanc
Hi! I believe there is a typo in R/src/library/base/man/regex.Rd The 52nd line looks like: The metacharacters are in EREs are ... ^^^ Gregor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-d

[Rd] Typo in regex help page

2007-08-27 Thread Gregor Gorjanc
Hi! I believe there is a typo in R/src/library/base/man/regex.Rd The 52nd line looks like: The metacharacters are in EREs are ... ^^^ Gregor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-de

Re: [Rd] developing a package: increase the number of functions

2007-07-31 Thread Gregor Gorjanc
Prof Brian Ripley stats.ox.ac.uk> writes: ... > > Do you have a NAMESPACE? Hi Albart! About the NAMESACE issue. Functions that are specified in NAMESPACE are available when you install a package, while internal ones can only be accessed with myInternalFun:::myPackage Gregor _

Re: [Rd] Problem with: Vignette dependencies (\Vignet teDepends{} entries) must be contained in

2007-04-18 Thread Gregor Gorjanc
Gregor Gorjanc bfro.uni-lj.si> writes: > > Hello! > > I have just discovered a possible bug or lack of my knowledge. The last > option is not so uncommon and I decided to ask here before flooding the > bugs repository. > > Say I have a package test with vignette.

[Rd] Problem with: Vignette dependencies (\VignetteDepends{} entries) must be contained in

2007-04-18 Thread Gregor Gorjanc
40228 language = R version.string = R version 2.4.1 (2006-12-18) -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Facultywww: http://www.bfro.uni-lj.si/MR/ggorja

Re: [Rd] format() applied to an NA character string (PR#9616)

2007-04-18 Thread Gregor Gorjanc
Peter Dalgaard biostat.ku.dk> writes: > This happens on Linux too, given slightly larger widths: > > R version 2.5.0 RC (2007-04-17 r41210) > > > x <- as.character(NA) > > format(x,width=64) I can confirm this on Linux also. > format(x,width=36) [1] "NA "

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Duncan Murdoch wrote: >> Can you just clarify what the dependencies are for >> >> Rcmd sweave >> >> where Rcmd is the Rcmd command distributed with R that is run >> from the Windows command line. Does that require perl or other >> tools to run? > > That needs sh.exe, not Perl. But it's just the

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Duncan Murdoch wrote: ... >> Maybe I got this totally wrong. Say someone who uses Windows finds R and >> installs it via setup file. Can he/she launch the folowing without >> having Perl and/or sh.exe? >> >> R CMD script whateverOption > > No. Installing a binary package has a pure R implementati

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Gabor Grothendieck wrote: ... > If by "Sweave in SVN" you are referring to sweave.bat in the batchfiles > distribution then its not a shell file; rather, its a Windows batch file. Nope. I meant Sweave.sh in R SVN. Gregor __ R-devel@r-project.org mailin

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Gabor Grothendieck wrote: > On Windows sweave.bat is a Windows XP batchfile that will run sweave > and then latex and then display the file on screen. Issuing the command > sweave without args from the Windows command line gives info on how to > use it. > Nice to see windows "equivalent". Howev

Re: [Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
Duncan Murdoch wrote: >> I do not have any experience with use of (bash) shell scripts under >> Windows. Sweave.sh can be used with Cygwin, but I am not sure how to use >> shell script without Cygwin. I noticed that some "scripts" in R*/bin >> directory on our Windows machine are perl (build, check

[Rd] Sweave.sh shell script on CRAN

2007-04-16 Thread Gregor Gorjanc
ipts. This therefore means that R ships also perl and shell interpreter or am I missing something? Thanks! -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty

[Rd] R-Forge?

2007-04-06 Thread Gregor Gorjanc
Hello! I have recently found RForge.net (http://www.rforge.net/) by Simon Urbanek and found out today that the site is accepting subscriptions. Great! However, browsing a bit on the site I found a link to another forge: R-Forge (http://r-forge.r-project.org/). Is/will the last one be the "offcial

Re: [Rd] fortune() in .Rprofile conflicts with R CMD INSTALL

2007-03-09 Thread Gregor Gorjanc
Kurt Hornik wrote: >> Kurt Hornik writes: >> Well, r-devel's src/scripts/INSTALL.in now has > >> if test -z "${lib}"; then >> lib=`echo "cat(.libPaths()[1])" | \ >> R_DEFAULT_PACKAGES=NULL "${R_EXE}" --no-save --slave` >> message "Installing to library '$lib'" > >> so we need to find

Re: [Rd] fortune() in .Rprofile conflicts with R CMD INSTALL

2007-03-04 Thread Gregor Gorjanc
Seth Falcon fhcrc.org> writes: > The quick fix for you is, I believe, > > if (interactive()) { > library(fortunes) > fortune() > detach("package:fortunes") > } > > Whether something could be changed so that R's output doesn't confuse > itself and gcc when doing R

[Rd] fortune() in .Rprofile conflicts with R CMD INSTALL

2007-03-04 Thread Gregor Gorjanc
Hello, This is about fortune package, but I think that might be related also to base R, so I am sending to package maintainer and R-devel list. I have the following in my .Rprofile to break monotony of code writing library(utils) library(fortunes) fortune() detach("package:fortunes") so I get a

Re: [Rd] Segmentation fault on bin/R --version in R-devel

2007-03-04 Thread Gregor Gorjanc
Simon Urbanek wrote: > Thanks, Gregor, it should be now fixed in the current R-devel. > > Cheers, > Simon Which I gladly confirm. Gregor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Segmentation fault on bin/R --version in R-devel

2007-03-03 Thread Gregor Gorjanc
Hello! I have tried to build and install latest version of R, but I am not able to perform the install, due to seg. fault. I did the following after SVN checkout and wget for recommendeds: ./configure --prefix=/usr/local/R-devel make make install ... ... tcut text

Re: [Rd] Same method for more than one class

2007-03-01 Thread Gregor Gorjanc
Sean Davis wrote: ... > > Could you do: > > catFun <- function(x) { > cat("Works") > } > setMethod(f="length", signature(x="myClass1"),def=catFun) > setMethod(f="length", signature(x="myClass2"),def=catFun) Yep, that is what I wanted. setMethod(f="length", signature(x=c("myClass1", "myClass2"

[Rd] Same method for more than one class

2007-03-01 Thread Gregor Gorjanc
Hi, when defining method (I used length bellow just for the simplicity) for myClass (S4 class) I use setMethod(f="length", signature(x="myClass"), def=function(x) { cat("works") }) If I have myClass1 and myClass2 and mentioned method, which is not the default one,

[Rd] Registration of native routines

2007-03-01 Thread Gregor Gorjanc
Dear R developers, I am working on registration of native C and FORTRAN routines and have encountered "inconsistencies" about this issue. I am referring to "Registering native routines" section of R-ext manual. *(DL_FUNC), &F77_SUB, &F77_SYMBOL On line 5108 of R-ext.texi the array for method myC

Re: [Rd] Trailing message on R CMD BATCH

2007-01-10 Thread Gregor Gorjanc
Brian Ripley stats.ox.ac.uk> writes: > Unix versions of R CMD BATCH have reported proc.time() unless the script > ends in q(). E.g. if the input is 'search()' the output is > > > invisible(options(echo = TRUE)) > > search() > [1] ".GlobalEnv""package:stats" "package:graphics" > [4]

Re: [Rd] setGeneric and file order in a package

2006-12-28 Thread Gregor Gorjanc
Ross Boylan biostat.ucsf.edu> writes: > Are there any assumptions I can make about the order in which > different files in the R package subdirectory will be evaluated? For > example, will it be alphabetical in the file names? Will case > distinctions be ignored? Take a look at collate field in

[Rd] Conditional suggest (was Re: Enhances, require() and quality control)

2006-12-12 Thread Gregor Gorjanc
Kurt Hornik wrote: >>>>>> Gregor Gorjanc writes: ... >> I might have understood Enhances field wrongly but imagine this >> situation. I have a package A and if I can use package B I would like to >> use it otherwise try with "my own" solution. I thoug

Re: [Rd] Enhances, require() and quality control

2006-12-12 Thread Gregor Gorjanc
Kurt Hornik wrote: >>>>>> Gregor Gorjanc writes: > >> Hello! > >> I am working on a package where Enhances field seems to be a plausible >> option. When I add package, say coda, to this field, I get the >> following warning with recent R-deve

Re: [Rd] Matplot does not work with x being POSIXt class (PR#9412)

2006-12-07 Thread Gregor Gorjanc
Hi, Don MacQueen wrote: ... > At 1:56 PM +0100 12/7/06, [EMAIL PROTECTED] wrote: >> Hi, >> >> Matplot works with x being Date class but not POSIXt. Here is the >> example with R version 2.5.0 Under development (unstable) (2006-12-06 >> r40129) >> >> Example: >> >> x <- Sys.Date() - c(1:10) >> y <-

[Rd] Matplot does not work with x being POSIXt class (PR#9412)

2006-12-07 Thread gregor . gorjanc
Hi, Matplot works with x being Date class but not POSIXt. Here is the example with R version 2.5.0 Under development (unstable) (2006-12-06 r40129) Example: x <- Sys.Date() - c(1:10) y <- cbind(1:10, 10:1) class(x) ## [1] "Date" matplot(x, y) x <- strptime(as.character(x), format="%Y-%m-%d") ##

[Rd] Enhances, require() and quality control

2006-12-06 Thread Gregor Gorjanc
s) ## the first argument could be named, or could be a variable name. ## we just have a stop list here. common_names <- c("pkg", "pkgName", "package", "pos") -- Lep pozdrav / With regards, Gregor Gorjanc --

Re: [Rd] R-devel: rownames of a data.frame

2006-12-06 Thread Gregor Gorjanc
Martin Maechler r-project.org> writes: ... > because colnames() and rownames() work via dimnames(), and so do > "colnames<-" and "rownames<-" --- > I think it would be unwise to change this, since it's well documented > property of these functions. > > As you noted yourself, using names()

Re: [Rd] R 2.4.1 scheduled for December 18

2006-12-05 Thread Gregor Gorjanc
And small typo in postscript man page Index: src/library/grDevices/man/postscript.Rd === --- src/library/grDevices/man/postscript.Rd (revision 40125) +++ src/library/grDevices/man/postscript.Rd (working copy) @@ -195,7 +195,7

Re: [Rd] R 2.4.1 scheduled for December 18

2006-12-05 Thread Gregor Gorjanc
Gregor Gorjanc bfro.uni-lj.si> writes: > > Hi! > > If I am not wrong issue described at > > http://thread.gmane.org/gmane.comp.lang.r.devel/9667/focus=9667 > > did not get any attention. Thought it is true that using names() instead of > colnames() does not chan

Re: [Rd] R 2.4.1 scheduled for December 18

2006-12-03 Thread Gregor Gorjanc
Hi! If I am not wrong issue described at http://thread.gmane.org/gmane.comp.lang.r.devel/9667/focus=9667 did not get any attention. Thought it is true that using names() instead of colnames() does not change mode of data.frame rownames. This issues are also "alive": http://thread.gmane.org/gm

[Rd] Wish: add link to Date in date help page

2006-11-24 Thread Gregor Gorjanc
Hello! Could someone add Date to see also links in date help page i.e. the following code in ./src/library/base/man/date.Rd \seealso{ \code{\link{Sys.time}} and \code{\link{Date}} } I always fire ?date instead of ?Date and I guess a lot of useRs also get lost in search for the right help pages

[Rd] Typo in save help page

2006-11-16 Thread Gregor Gorjanc
Hi, Save help page, section Warnings, last paragraph, 3rd row, 1st word in a row: conpatible ^ should be compatible Regards, Gregor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] c() for factors

2006-11-11 Thread Gregor Gorjanc
atomic 'x' As can be seen characters are handled in the same way as factors. Does anyone see any value in this? -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty

Re: [Rd] How to put my S4 class into data.frame

2006-11-04 Thread Gregor Gorjanc
John Chambers wrote: > Designing a "better data frame" is something many people have likely > thought about; I certainly have. > > But data frames are so widely used and so central to models and other > software that a major change needs to be done by the user community, or > at least with maximum

Re: [Rd] How to put my S4 class into data.frame

2006-11-04 Thread Gregor Gorjanc
Hi, Martin Maechler wrote: >>>>>> "Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> >>>>>> on Sat, 04 Nov 2006 02:09:13 +0100 writes: > > Gregor> Ferdinand Alimadhi wrote: > > >> tmp$comp <- [EMAIL PROTECTED]

Re: [Rd] How to put my class into data.frame

2006-11-03 Thread Gregor Gorjanc
Ferdinand Alimadhi wrote: > tmp$comp <- [EMAIL PROTECTED] ?! I "lose" class here and that is not what I want. Perhaps I should stick with list instead of data.frame. > Gregor Gorjanc wrote: > >> Hello! >> >> I am developing a composition class, which r

[Rd] How to put my class into data.frame

2006-11-03 Thread Gregor Gorjanc
put my class into data.frame or how can I make my class behave as a vector? Thanks! -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI: h

Re: [Rd] [R] read.fwf and header

2006-10-30 Thread Gregor Gorjanc
Marc Schwartz wrote: > On Mon, 2006-10-30 at 19:51 +0100, Gregor Gorjanc wrote: >> Hi! >> >> I have data (also in attached file) in the following form: >> >> num1 num2 num3 int1 fac1 fac2 cha1 cha2 Date POSIXt >> 11 f q 1900-01-01 1900-01

[Rd] Wish: change behaviour of header in read.fwf (PR#9252)

2006-09-25 Thread gregor . gorjanc
unlist(strsplit(readLines(con=file, n=1), split=sep)) } ... ## tweaks related to issues with length(header), row.names, ncol(), ... read.table(..., col.names=header, ...) I know that FWF is not used much these days, but I would find prop

[Rd] na.encode in format for Date and POSIXt classes

2006-09-25 Thread Gregor Gorjanc
ical: should 'NA' strings be encoded (applies only to non-numeric)? -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI:

Re: [Rd] Help for methods

2006-09-19 Thread Gregor Gorjanc
Hin-Tak Leung cimr.cam.ac.uk> writes: > > You are supposed to do: > > ?summary.lm > ?summary.data.frame > > for S3 methods. The former works, the latter doesn't - which is > probably considered a bug, but then the usage of some of the I do not follow this. When I type ?summary.data.frame I ge

Re: [Rd] Using \u2030 in plot axis label -> stack smashing

2006-09-18 Thread Gregor Gorjanc
Gavin Simpson wrote: > On Mon, 2006-09-18 at 19:02 +0000, Gregor Gorjanc wrote: >> Gavin Simpson ucl.ac.uk> writes: >>> Dear List >>> >>> I just noticed the following behaviour in R 2.3.1 Patched (2006-06-13 >>> r38342) and confirmed similar behavi

Re: [Rd] Using \u2030 in plot axis label -> stack smashing

2006-09-18 Thread Gregor Gorjanc
Gavin Simpson ucl.ac.uk> writes: > > Dear List > > I just noticed the following behaviour in R 2.3.1 Patched (2006-06-13 > r38342) and confirmed similar behaviour in R 2.4.0 alpha (2006-09-18 > r39383) & R 2.5.0 (2006-09-18 r39383) - which may actually be the same > thing?, that trying to plot t

[Rd] R-devel: rownames of a data.frame

2006-09-13 Thread Gregor Gorjanc
ot; > colnames(df1) <- "bla" > attributes(df1) $names [1] "bla" $row.names [1] "1" "2" "3" "4" "5" $class [1] "data.frame" ?rownames/colnames help page (R-devel) says that value is coerced to character,

[Rd] [Fwd: Byte size in human readable format]

2006-09-13 Thread Gregor Gorjanc
mp/object.size.Rd.patch http://www.bfro.uni-lj.si/MR/ggorjan/tmp/NAMESPACE.patch http://www.bfro.uni-lj.si/MR/ggorjan/tmp/humanReadable.Rd Original Message Subject: Byte size in human readable format Date: Mon, 21 Aug 2006 14:14:52 +0200 From: Gregor Gorjanc <[EMAIL PROTECT

[Rd] Error: package/namespace load failed for 'fortunes'

2006-09-13 Thread Gregor Gorjanc
oad failed in 'loadNamespace' for 'fortunes' Error: package/namespace load failed for 'fortunes' > If I start R-devel with empty .Rprofile I am able to issue above R code without problems. Is this caused by move of read.table() to utils package? -- Lep pozdrav /

Re: [Rd] R Citation through time

2006-09-12 Thread Gregor Gorjanc
ion() function. -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI: http://www.bfro.uni-lj.si/MR/ggorjan Groblje 3 mail:

Re: [Rd] R Citation through time

2006-09-12 Thread Gregor Gorjanc
Friedrich Leisch wrote: >>>>>> On Tue, 12 Sep 2006 07:53:52 +0200, >>>>>> Gregor Gorjanc (GG) wrote: > > > Hello! > > I keep my local bib file and up to now I had entry > > > @Manual{R:2003, > > title = {R: A Lan

[Rd] R Citation through time

2006-09-11 Thread Gregor Gorjanc
"new version" for R. Now the question is what is new version or when does ISBN number change? Thanks. -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty Zo

Re: [Rd] [<-.POSIXlt changes order of attributes (PR#9197)

2006-09-02 Thread Gregor Gorjanc
mes of the attributes but only > checking their values. Oops Aha, so this is the problem then. Thank you for tracking down the problem! -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana

Re: [Rd] [<-.POSIXlt changes order of attributes (PR#9197)

2006-09-02 Thread Gregor Gorjanc
storage mechanism are you talking about here? > BTW, all.equal() does not assume attributes are ordered. -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Fac

[Rd] [<-.POSIXlt changes order of attributes (PR#9197)

2006-09-01 Thread gregor . gorjanc
s it is done in [.<-POSIXct method Index: R/src/library/base/R/datetime.R === --- R/src/library/base/R/datetime.R (revision 39045) +++ R/src/library/base/R/datetime.R (working copy) @@ -714,9 +714,11 @@ if(!as.logic

Re: [Rd] Wish: keep names in mapply() result

2006-08-31 Thread Gregor Gorjanc
l, k, SIMPLIFY=FALSE, USE.NAMES=FALSE) [[1]] [1] "1 1" [[2]] [1] "2 1" New behaviour with first ... as character _without_ names: l <- c("1", "2") mapply(FUN="paste", l, k) 1 2 "1 1" "2 1" mapply(FUN="past

[Rd] Wish: keep names in mapply() result

2006-08-30 Thread Gregor Gorjanc
s(answer) <- namesX if (USE.NAMES && length(dots) && is.character(dots[[1]]) && is.null(names(answer))) names(answer) <- dots[[1]] @@ -47,4 +55,4 @@ } formals(FUNV) <- formals(FUN) FUNV -} \ No newline at end of file +} -- Lep pozdrav

[Rd] Summary() fails after use of na.action="na.exclude" in lm() (PR#9191)

2006-08-30 Thread gregor . gorjanc
UREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C Search Path: .GlobalEnv, package:methods, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, Autoloads, package:base -- Lep pozdrav / With regards, Gregor Gorjanc --

[Rd] make test-Specific?

2006-08-30 Thread Gregor Gorjanc
als/R-exts.html#Testing-R-code -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI: http://www.bfro.uni-lj.si/MR/ggorjan Gr

[Rd] Small "typo" in R/src/library/grDevices/man/postscript.Rd

2006-08-22 Thread Gregor Gorjanc
Hello! I believe there is one "be" to much in line 198 of "R/src/library/grDevices/man/postscript.Rd": used. These fonts are be useful for other languages: ... ^^ -- Lep pozdrav / With regards

[Rd] Byte size in human readable format

2006-08-21 Thread Gregor Gorjanc
utils package? Any additional comments, suggestions are more than welcome. Function and its man page can be found at http://www.bfro.uni-lj.si/MR/ggorjan/tmp/object.size.R http://www.bfro.uni-lj.si/MR/ggorjan/tmp/humanReadable.Rd -- Lep pozdrav / With regards, Gregor Gorjanc

[Rd] Wishlist: add mapply to lapply

2006-08-21 Thread Gregor Gorjanc
Hello! mapply() could be added in see also section in lapply() help pages. -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI: http

Re: [Rd] Small typo in list.Rd

2006-08-18 Thread Gregor Gorjanc
Hin-Tak Leung wrote: > Gregor Gorjanc wrote: >> Hello! >> >> There is a tiny typo in list.Rd. >> >> Index: R/src/library/base/man/list.Rd >> === >> --- ../man/list.Rd (revision 38

[Rd] Small typo in list.Rd

2006-08-17 Thread Gregor Gorjanc
{as.character}}, and is for efficiency since lists can be expensive to copy.) - \code{is.list} returns \code{TRUE} iff its argument + \code{is.list} returns \code{TRUE} if its argument -- Lep pozdrav / With regards, Gregor Gorjanc

[Rd] Error in options(...) : invalid continue parameter

2006-08-16 Thread Gregor Gorjanc
ent.} \item{\code{prompt}:}{a string, used for \R's prompt; should usually - end in a blank (\code{" "}).} + end in a blank (\code{" "}). Must be at least of length 1.} -- Lep pozdrav / With regards, Gregor Gorjanc ---

Re: [Rd] unique.default() drops names (PR#9130)

2006-08-10 Thread Gregor Gorjanc
Seth Falcon fhcrc.org> writes: > I see value in unique() keeping names and from what I understand > the documentation could be changed to match > > I don't know if there are good reasons for dropping names from > vectors. > > Given that unique is very commonly used, I think the way to make such

[Rd] Wishlist: multiple classes in \method{}{} (Rd markup) (PR#9135)

2006-08-09 Thread gregor . gorjanc
would be a line or two less markup in Rd file as well as in produced help page - one with note for both (or several classes) is more than enough. This might also ease reading of help pages. Thank you very much for such a great software! -- Lep pozdrav / With regards, Gregor Gorjanc

Re: [Rd] unique.default() drops names (PR#9130)

2006-08-09 Thread Gregor Gorjanc
3 R> y <- matrix(x) R> colnames(y) <- 1; rownames(y) <- names(x) R> t(unique(y)) colnames(y) <- 1; rownames(y) <- names(x) -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana

[Rd] unique.default() drops names (PR#9130)

2006-08-06 Thread Gregor . Gorjanc
486 os = linux-gnu system = i486, linux-gnu status = major = 2 minor = 3.1 year = 2006 month = 06 day = 01 svn rev = 38247 language = R version.string = Version 2.3.1 (2006-06-01) Lep pozdrav / With regards, Gregor Gorjanc

Re: [Rd] Making a patch

2006-07-25 Thread Gregor Gorjanc
Gregor Gorjanc bfro.uni-lj.si> writes: > > Hi, > > Andrew Robinson ms.unimelb.edu.au> writes: > > > > Dear R developers, > > > > is there a preferred format or strategy for making a patch to > > contribute to a package that is mainta

Re: [Rd] Package Unit Testing

2006-07-25 Thread Gregor Gorjanc
> R CMD check takes care of that. Thank you. I am also attaching a small gzipped patch for R-exts.texi. I did not wrap the lines in the text. If that is necesarry I can do it and resend the patch. -- Lep pozdrav / With regards, Gregor Gorjanc -

Re: [Rd] Package Unit Testing

2006-07-24 Thread Gregor Gorjanc
Martin Maechler stat.math.ethz.ch> writes: > > > "miguel" == miguel manese gmail.com> > > on Mon, 3 Jul 2006 09:43:12 +0800 writes: > > miguel> Hello, Do we have like an official unit testing > miguel> framework for packages? Like we do R CMD check, and > miguel> say th

Re: [Rd] RFC: Redefining length() ?

2006-07-24 Thread Gregor Gorjanc
Hi, Martin Maechler stat.math.ethz.ch> writes: > > So I did open a new subject and move the discussion to R-devel > now. > > > "MM" == Martin Maechler stat.math.ethz.ch> > > on Mon, 24 Jul 2006 11:46:05 +0200 writes: > > > "Gabor" == Gabor Grothendieck gmail.com> > >

Re: [Rd] Making a patch

2006-07-23 Thread Gregor Gorjanc
Hi, Andrew Robinson ms.unimelb.edu.au> writes: > > Dear R developers, > > is there a preferred format or strategy for making a patch to > contribute to a package that is maintained by R-core? Berwin Turlach > and I have written a very minor extension to lmeControl to allow it to > pass an argu

[Rd] Bug?: summary() fails after use of na.action="na.exclude" in lm()

2006-07-19 Thread Gregor Gorjanc
etails): "A typical model has the form 'response ~ terms' where 'response' is the (numeric) response vector ..." ^^^^^^ Should not this part say that repsponse can also be a matrix? Thanks -- Lep pozdrav / With regards, Gregor Gorjanc ---

[Rd] "Template" for model.matrix functions

2006-07-02 Thread Gregor Gorjanc
Hello! I would like to write a function that would create a (part) of a model matrix to be used in lm() like functions i.e lm(y ~ myFunc(x)) Where can I find a good example or a template for this as well as for predict method? Thanks! -- Lep pozdrav / With regards, Gregor Gorjanc

Re: [Rd] Test for argument in ...

2006-07-02 Thread Gregor Gorjanc
Bill Dunlap wrote: > On Sun, 2 Jul 2006, Gregor Gorjanc wrote: > >> Yes, this works. >> >> Thanks Gabor! >> >> Gabor Grothendieck wrote: >>> That's because you are passing the argument twice. Try this: >>> >>>> foo1

Re: [Rd] Test for argument in ...

2006-07-02 Thread Gregor Gorjanc
(x), L)) > + } >> >> foo1(c(5, 2, 3, 4), decreasing=FALSE) > [1] 2 3 4 1 > > On 7/1/06, Gregor Gorjanc <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Gabor Grothendieck wrote: >> > Try this: >> > >> >> f <- function(...)

Re: [Rd] Test for argument in ...

2006-07-01 Thread Gregor Gorjanc
)) [1] 1 4 3 2 >foo1(c(5, 2, 3, 4), decreasing=FALSE) Error in order(x, ..., decreasing = decreasing) : formal argument "decreasing" matched by multiple actual arguments > On 7/1/06, Gregor Gorjanc <[EMAIL PROTECTED]> wrote: >> Hello! >> >> Say I

Re: [Rd] Test for argument in ...

2006-07-01 Thread Gregor Gorjanc
Gabor Grothendieck wrote: > Try this: > >> f <- function(...) if (!is.null(list(...)$arg1)) cat("arg1 found\n") >> else cat("arg1 not found\n") >> f(arg1 = 3) > arg1 found >> f(arg2 = 3) > arg1 not found Thanks! Use of list(...)

[Rd] Test for argument in ...

2006-07-01 Thread Gregor Gorjanc
en in foo1. Is it possible to test whether some argument was passed in "..." i.e. something like foo1 <- function(x, ...) { if(testForArgumentInThreeDots(arg1)) arg1 <- "some value" foo2(x, arg1=arg1, ...) } Thanks!

[Rd] Wish/suggestion: add output of citation() to package "manuals" (PR#9009)

2006-06-20 Thread gregor . gorjanc
n FAQ on this and that there is a note after launching R, but questions about apropriate reference on R-help list are quite frequent. Perhaps this is so due to the habit that one looks into the paper/book/manual about relevant information for reference. -- Lep pozdrav / With regards, Gregor Go

[Rd] separators in data()

2006-06-15 Thread Gregor Gorjanc
;" (semicolon rather than comma)? is this a historical > artifact of some sort, or is there other logic to it? It caught > me by surprise since I was expecting it to be sep="," as in > read.csv() ... > > cheers &g

[Rd] Wish: Add fill argument to warning and stop (PR#8823)

2006-04-30 Thread gregor . gorjanc
Full_Name: Gregor Gorjanc Version: R 2.2.1 OS: Linux Submission from: (NULL) (82.192.44.229) Hello! It would be nice if warning() and stop() would have fill argument as it is in cat(). Thanks! _ platform i486-pc-linux-gnu arch i486 os linux-gnu system i486, linux-gnu

[Rd] Example in ?order

2006-04-10 Thread Gregor Gorjanc
With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI: http://www.bfro.uni-lj.si/MR/ggorjan Groblje 3 mail: gregor.gorjanc bfro.uni-l

Re: [Rd] levels for list and data.frame

2006-03-21 Thread Gregor Gorjanc
Martin Maechler wrote: >>>>>>"Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> >>>>>>on Tue, 21 Mar 2006 20:50:21 +0100 writes: > > > Gregor> Martin Maechler wrote: > >> Hi Gregor, > >> > >

[Rd] [Fwd: Re: levels for list and data.frame]

2006-03-21 Thread Gregor Gorjanc
I unintentionally missed to cc to r-devel. Original Message Subject: Re: [Rd] levels for list and data.frame Date: Tue, 21 Mar 2006 20:50:21 +0100 From: Gregor Gorjanc <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Martin Maechler <[EMAIL PROTECTED]> Referen

Re: [Rd] levels for list and data.frame

2006-03-20 Thread Gregor Gorjanc
t; "h" "i" "j" > > $"1"$b > [1] "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" > > $"1"$c > NULL >

[Rd] levels for list and data.frame

2006-03-20 Thread Gregor Gorjanc
ot; "h" "i" "j" "k" "l" "m" "n" $"1"$c NULL $"2" $"2"$a [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j&

Re: [Rd] [R] Collapsing levels of a factor

2006-03-19 Thread Gregor Gorjanc
levels(f) <- c("c", "a", "b") f f <- factor(c("a","b")) levels(f) <- list(C="C", A="a", B="b") f I was playing around this last week and wrote a simple function[1], which can

Re: [Rd] Internal codes of the factor

2006-03-14 Thread Gregor Gorjanc
Berwin A Turlach wrote: > G'day Gregor, > > >>>>>>"GG" == Gregor Gorjanc <[EMAIL PROTECTED]> writes: > > > GG> I am writing some functions and I repeatedly acces internal > GG> factor codes. I figured out that internal

Re: [Rd] Undocumented argument na.last in factor()

2006-03-14 Thread Gregor Gorjanc
Martin Maechler wrote: >>>>>>"Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> >>>>>>on Tue, 14 Mar 2006 09:58:22 +0100 writes: > > > Gregor> Hello! I just noticed that argument na.last in > Gregor> factor() is no

[Rd] Internal codes of the factor

2006-03-14 Thread Gregor Gorjanc
documentation for factor? I can prepair a pacth if this is accepted. -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI: http://www.bfro.uni

[Rd] Undocumented argument na.last in factor()

2006-03-14 Thread Gregor Gorjanc
Hello! I just noticed that argument na.last in factor() is not documented. Did I miss something or ...? I just wonder how base package passes then R CMD check. I checked also in source man page in R-devel. -- Lep pozdrav / With regards, Gregor Gorjanc

Re: [Rd] NaN in R distribution functions

2005-12-29 Thread Gregor Gorjanc
Prof Brian Ripley wrote: > On Wed, 28 Dec 2005, Gregor Gorjanc wrote: > >> Dear R developers, >> >> I noticed that core R distribution functions return NaN, when parameter >> values are out of parameter space. I have looked in source code and >> found that

  1   2   >