Re: [Rd] License status of CRAN packages

2009-04-23 Thread Gabor Grothendieck
On Thu, Apr 23, 2009 at 3:08 PM, Dirk Eddelbuettel e...@debian.org wrote: (Subject: renamed as thread hijacked from the ParallelR thread   --Dirk) On 23 April 2009 at 14:44, Gabor Grothendieck wrote: | Aside from R there are the add-on packages. | | A frequency table showing the licenses

Re: [Rd] License status of CRAN packages

2009-04-23 Thread Gabor Grothendieck
file LICENSE tlnise file LICENSE 2009/4/23 Dirk Eddelbuettel e...@debian.org: On 23 April 2009 at 15:32, Gabor Grothendieck wrote: | On Thu, Apr 23, 2009 at 3:08 PM, Dirk Eddelbuettel e

Re: [Rd] License status of CRAN packages

2009-04-23 Thread Gabor Grothendieck
, Dirk Eddelbuettel wrote: On 23 April 2009 at 15:32, Gabor Grothendieck wrote: | On Thu, Apr 23, 2009 at 3:08 PM, Dirk Eddelbuettel e...@debian.org wrote: | | (Subject: renamed as thread hijacked from the ParallelR thread --Dirk) | | On 23 April 2009 at 14:44, Gabor Grothendieck wrote

Re: [Rd] License status of CRAN packages

2009-04-23 Thread Gabor Grothendieck
On Thu, Apr 23, 2009 at 4:59 PM, Ben Goodrich goodr...@fas.harvard.edu wrote: Dirk Eddelbuettel edd at debian.org writes: As a non-exhautive list with possible misclassifications, cran2deb currently has these packasges as 'maybe not free' and does not build them:      

Re: [Rd] Closed-source non-free ParallelR ?

2009-04-23 Thread Gabor Grothendieck
On Thu, Apr 23, 2009 at 8:54 PM, Ted Harding ted.hard...@manchester.ac.uk wrote: On 23-Apr-09 22:21:45, Ian Fellows wrote: Assuming that the foundation does not want to deviate from the FSF interpretation, there would still be value in clarifying its position vis-à-vis how the license applies

Re: [Rd] Automatic Differentiation for R

2009-04-15 Thread Gabor Grothendieck
Not sure if this is sufficient for your needs but R does include symbolic differentiation, see ?D, and the Ryacas and rSymPy packages interface R to the yacas and sympy computer algebra systems (CAS) and those system include symbolic differentiation. http://ryacas.googlecode.com

[Rd] suggestion: default v.names in reshape

2009-04-04 Thread Gabor Grothendieck
For reshape(dir = long, varying = list(...), ...) it would be convenient if the names of the varying list, if supplied, were used as the default v.names. Currently they are ignored. Thus one would be able to write: # test data frame d - structure(list(V.1 = 1:10, V.2 = c(1L, 1L, 1L, 1L, 1L, 2L,

Re: [Rd] Wishlist: optional svn-revision number tag in package DESCRIPTION file

2009-03-31 Thread Gabor Grothendieck
We need to make sure we understand the implications for packages developed under the other major version control systems like git, bzr and hg. On Tue, Mar 31, 2009 at 10:41 AM, Peter Ruckdeschel peter.ruckdesc...@web.de wrote: Hi, just a little wish : Could we have one (or maybe more)

Re: [Rd] what is the preferred method to create a package local variable?

2009-03-31 Thread Gabor Grothendieck
Look at the zzz.R file in the lattice package and the .LatticeEnv variable in particular. Also, when running lattice try this and look for .LatticeEnv in the output: ls(asNamespace(lattice), all = TRUE) On Tue, Mar 31, 2009 at 11:45 AM, Whit Armstrong armstrong.w...@gmail.com wrote: for the

Re: [Rd] Is aggregate() function changing?

2009-03-24 Thread Gabor Grothendieck
On Tue, Mar 24, 2009 at 7:07 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 24/03/2009 12:44 AM, Kenneth Roy Cabrera Torres wrote: Hi R developers and debian users: Finally I found how to work with aggregate() function on the last patched version fo R. I you use this command it fails:  

Re: [Rd] matplot and lend=butt

2009-03-23 Thread Gabor Grothendieck
It looks to be a bug. Here is the code and notice that ... is passed to plot (which plots the first series) but not to lines (which plots the rest): if (!add) { ii - ii[-1] plot(x[, 1], y[, 1], type = type[1], xlab = xlab, ylab = ylab, xlim = xlim, ylim = ylim,

Re: [Rd] Summer of Code, LLVM, parallelization and R

2009-03-16 Thread Gabor Grothendieck
In addition to the work Luke is doing there is Ra: http://www.milbo.users.sonic.net/ra On Sun, Mar 15, 2009 at 11:25 AM, Florian Gross florian.s.gr...@web.de wrote: Hi everybody, I'm currently working towards my Master's degree as a student of Computer Science at the University of

Re: [Rd] question

2009-03-07 Thread Gabor Grothendieck
Why? Can you demonstrate any situations where its useful? Despite having my own facility for this I've found that over the years I have never used it. On Sat, Mar 7, 2009 at 9:23 AM, ivo...@gmail.com wrote: Gentlemen---these are all very clever workarounds, but please forgive me for voicing

Re: [Rd] question

2009-03-07 Thread Gabor Grothendieck
() again, its syntax sugar.  I would find such syntax a whole lot more appealing.  and I often write functions that pass back a main program, but also some debug or other information.  maybe I am the only one... regards, /iaw On Sat, Mar 7, 2009 at 9:28 AM, Gabor Grothendieck ggrothendi

Re: [Rd] question

2009-03-07 Thread Gabor Grothendieck
On Sat, Mar 7, 2009 at 10:26 AM, Wacek Kusnierczyk waclaw.marcin.kusnierc...@idi.ntnu.no wrote: ivo...@gmail.com wrote: Gentlemen---these are all very clever workarounds, hacks around the lack of a feature but please forgive me for voicing my own opinion: IMHO, returning multiple values in

Re: [Rd] question

2009-03-07 Thread Gabor Grothendieck
On Sat, Mar 7, 2009 at 11:37 AM, Wacek Kusnierczyk waclaw.marcin.kusnierc...@idi.ntnu.no wrote: Gabor Grothendieck wrote: as gabor says in another post, you probably should first show why having multiple value returns would be useful in r.  however, i don't think there are good

Re: [Rd] question

2009-03-05 Thread Gabor Grothendieck
I posted this a few years ago (but found I never really had a need for it): http://tolstoy.newcastle.edu.au/R/help/04/06/1430.html On Thu, Mar 5, 2009 at 9:22 AM, ivo welch ivo...@gmail.com wrote: dear R developers:  it is of course easy for a third party to make suggestions if this third

Re: [Rd] Two documentation questions

2009-03-04 Thread Gabor Grothendieck
Perhaps you could just place the output in comments. print(5) # 5 head(BOD, 2) # Time demand # 118.3 # 22 10.3 On Wed, Mar 4, 2009 at 8:38 PM, Terry Therneau thern...@mayo.edu wrote:  1. I often like to put bits of the output into the manual pages.  (We can have a discussion

Re: [Rd] vignette compilation times

2009-02-20 Thread Gabor Grothendieck
Thanks for the inventive workaround. On Fri, Feb 20, 2009 at 1:37 PM, Berwin A Turlach ber...@maths.uwa.edu.au wrote: G'day Gabor, On Thu, 19 Feb 2009 17:47:53 -0500 Gabor Grothendieck ggrothendi...@gmail.com wrote: [...] Unless this has changed recently,I've tried including a PDF

Re: [Rd] vignette compilation times

2009-02-19 Thread Gabor Grothendieck
On Thu, Feb 19, 2009 at 5:36 PM, Friedrich Leisch friedrich.lei...@stat.uni-muenchen.de wrote: On Thu, 19 Feb 2009 11:47:12 +, Robin Hankin (RH) wrote: thanks for this clarification Uwe Could I include the r_env_cache/ directory in the package and then assume that the CRAN checks

Re: [Rd] getGraphicsEvent in an example

2009-02-17 Thread Gabor Grothendieck
Also any demos in the demo directory will be skipped by the automated checks. On Tue, Feb 17, 2009 at 12:01 PM, Greg Snow greg.s...@imail.org wrote: Just wrap the example in either \dontrun{} or if(interactive()){ } That way that example will be skipped when the automatic tests are done,

Re: [Rd] Warning for dropped text with devices that don't support clipping (in text attachments)

2009-01-24 Thread Gabor Grothendieck
On Sat, Jan 24, 2009 at 9:45 PM, Sebastian Fischmeister sfisc...@uwaterloo.ca wrote: Apparently, the mail program doesn't like attachments. Here's the patch and the script again. The attachment does appear to have made to the archives:

[Rd] 2009 Wish list for R

2009-01-16 Thread Gabor Grothendieck
2009 Wish list for R (no particular order): - some way of placing backslashes in literal strings without escaping them. Useful for latex, regular expressions and Windows file paths. This seems to come up from time to time on the lists. Ruby, python, Perl and other scripting languages have

Re: [Rd] Documentation suggestions for vignettes

2009-01-15 Thread Gabor Grothendieck
On Wed, Jan 14, 2009 at 2:53 PM, Perry de Valpine pdevalp...@berkeley.edu wrote: Dear R-devel, I am putting together a package vignette for the first time (R 2.8.1, OS X) and had some bumps from section 1.4 (Writing package vignettes) of the Writing R Extensions document. Here are

Re: [Rd] Documentation suggestions for vignettes

2009-01-15 Thread Gabor Grothendieck
, at 7:10 AM, Gabor Grothendieck wrote: On Wed, Jan 14, 2009 at 2:53 PM, Perry de Valpine pdevalp...@berkeley.edu wrote: Dear R-devel, I am putting together a package vignette for the first time (R 2.8.1, OS X) and had some bumps from section 1.4 (Writing package vignettes) of the Writing R

Re: [Rd] Documentation suggestions for vignettes

2009-01-15 Thread Gabor Grothendieck
was the premise of my earlier post. Please let me know if that is confused or still not specific enough. Thanks. Perry On Jan 15, 2009, at 7:10 AM, Gabor Grothendieck wrote: On Wed, Jan 14, 2009 at 2:53 PM, Perry de Valpine pdevalp...@berkeley.edu wrote: Dear R-devel, I am putting

Re: [Rd] irrelevant warning message

2009-01-13 Thread Gabor Grothendieck
On Tue, Jan 13, 2009 at 8:28 AM, Terry Therneau thern...@mayo.edu wrote: Thanks for the replies: Duncan: and got a warning in all R versions I tried back to 2.4.1. In 2.3.1 this was an error. It seems I have egg on my face wrt this point. A more true synopsis of what I saw should have

Re: [Rd] R as a scripting engine

2009-01-11 Thread Gabor Grothendieck
On Sun, Jan 11, 2009 at 3:18 PM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: Those of you tracking R development will have noticed that we are moving towards using R as a scripting engine. (It is often overlooked as such.) ... In due course we see phasing out the use of Perl, at least at

Re: [Rd] Acessing pdf help files (PR#13419)

2008-12-26 Thread Gabor Grothendieck
From the Windows (not R) command line try this (the input you type is after the and the output is on the next line). Modify the ftype line appropriately if the output of assoc is different for you. C:\tmp2assoc .pdf .pdf=AcroExch.Document C:\tmp2ftype AcroExch.Document

[Rd] read.table with fill = TRUE

2008-12-22 Thread Gabor Grothendieck
There seems to be a problem with read.table when fill = TRUE in this case. In the example below, note that: - there should be 4 columns, not 3 - some rows like row 6 are cut off at the end - others like row 7 seem completely wrong Lines - x 1 b + x 1 a + x 2 b + x 2 a + x 2 + y 1 a 1 + y 10 a 2

Re: [Rd] package development

2008-12-15 Thread Gabor Grothendieck
Perhaps it would be sufficient as a first step to just display the version that will be downloaded. That would still only let you pick one but at least you would know which one. On Mon, Dec 15, 2008 at 11:43 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 12/15/2008 10:58 AM, Kevin R. Coombes

Re: [Rd] install.packages and dependency version checking

2008-12-15 Thread Gabor Grothendieck
On Mon, Dec 15, 2008 at 12:35 PM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: (D) We can really only handle = dependencies on package versions (but then I can see no other ops in use). install.packages() will find the latest Ryacas works with XML 1.96-0; however, after Ryacas was released

Re: [Rd] gregexpr - match overlap mishandled (PR#13391)

2008-12-12 Thread Gabor Grothendieck
On Fri, Dec 12, 2008 at 4:35 PM, greg.s...@imail.org wrote: do extra to specify otherwise. One of the standard references for regular = expressions if you really want to understand what is going on is Mastering= Regular Expressions by Jeffrey Friedl. You should really read through th=

Re: [Rd] Error in R CMD INSTALL on Windows XP using Rtools28

2008-12-06 Thread Gabor Grothendieck
On Sat, Dec 6, 2008 at 8:08 AM, Duncan Murdoch [EMAIL PROTECTED] wrote: cstrato wrote: Prof Brian Ripley wrote: On Fri, 5 Dec 2008, cstrato wrote: Dear Duncan Thank you for this explicit explanation, you are right: When setting the system variable Path (as administrator) in addition

Re: [Rd] Error in R CMD INSTALL on Windows XP using Rtools28

2008-12-06 Thread Gabor Grothendieck
setup and not a general problem, so adding this information may confuse other people. Best regards Christian Gabor Grothendieck wrote: On Sat, Dec 6, 2008 at 8:08 AM, Duncan Murdoch [EMAIL PROTECTED] wrote: cstrato wrote: Prof Brian Ripley wrote: On Fri, 5 Dec 2008, cstrato wrote

Re: [Rd] Error in R CMD INSTALL on Windows XP using Rtools28

2008-12-06 Thread Gabor Grothendieck
compile my C++ source code with VC++ independently of R Thus at the moment there seem to be no conflicts, however, this could be the case in the future. Do you have any examples, where the Rtools find can cause conflicts with Windows? Best regards Christian Gabor Grothendieck wrote: You

Re: [Rd] Error in R CMD INSTALL on Windows XP using Rtools28

2008-12-05 Thread Gabor Grothendieck
One difference between rtools27.exe and rtools28.exe is that the latter sets a value in the registry to where rtools is located whereas the former does not. On Fri, Dec 5, 2008 at 2:49 PM, cstrato [EMAIL PROTECTED] wrote: Dear all When trying to install my package on Windows XP on my Mac, I

Re: [Rd] Error in R CMD INSTALL on Windows XP using Rtools28

2008-12-05 Thread Gabor Grothendieck
about the registry setting mentioned by Gabor Grothendieck? Best regaards Christian Prof Brian Ripley wrote: This is a PATH error: you must have Rtools/bin before Windows system directories in your path. As the R-admin manual tells you explicitly fortune(WTFM) applies. On Fri, 5

Re: [Rd] Error in R CMD INSTALL on Windows XP using Rtools28

2008-12-05 Thread Gabor Grothendieck
On Fri, Dec 5, 2008 at 4:28 PM, cstrato [EMAIL PROTECTED] wrote: Dear Gabor Thank you for this interesting link. Since I have also to set the PATH and LIB for Visual Studio AND for ROOT, I am not sure if this would be an option for me. Rcmd.bat will not override settings you make yourself.

Re: [Rd] names generated in list indexing

2008-11-29 Thread Gabor Grothendieck
Also note the behavior is the same for a non-list vector: c(b=1)[c('a','b')] NAb NA1 but differs for a data frame: data.frame(b=1)[c('a','b')] Error in `[.data.frame`(data.frame(b = 1), c(a, b)) : undefined columns selected On Fri, Nov 28, 2008 at 2:03 PM, Vadim Ogranovich

Re: [Rd] cex.lab etc. ignored in plot.ts for multiple plots (PR#13315)

2008-11-22 Thread Gabor Grothendieck
As a workaround you could use plot.zoo: library(zoo) tt - ts(cbind(a = 1:10, b = 1:10)) plot(as.zoo(tt), plot.type=multiple, cex.lab = 0.5, col.lab = red) On Fri, Nov 21, 2008 at 8:50 AM, [EMAIL PROTECTED] wrote: Full_Name: Yan Wong Version: 2.8.0 OS: Mac OS X 10.4 Submission from: (NULL)

Re: [Rd] Computing minimal detectable differences for general ANOVA models

2008-11-22 Thread Gabor Grothendieck
They will be built for you. You only upload the .tar.gz file. See section 1.5 of the Writing Extensions manual. On Sat, Nov 22, 2008 at 5:35 PM, Ali Baharev [EMAIL PROTECTED] wrote: Ooops, sorry. Just one more question. Do i have to make a binary package for Win32 and Mac OS X? Or is it done

Re: [Rd] R license: GPL v2 or v3?

2008-11-19 Thread Gabor Grothendieck
There is an analysis of the R license here: http://www.ohloh.net/projects/rproject/analyses/latest On Tue, Nov 18, 2008 at 5:24 PM, Gabriel Gellner [EMAIL PROTECTED] wrote: For a project I am porting some of R's source code, and I want to get the license for my project correct, but the top

Re: [Rd] anyone familiar with this error?

2008-11-18 Thread Gabor Grothendieck
Don't really know but you could see if the info in Avoiding R Bugs section on the http:/r-proto.googlecode.com page applies, particularly the first point on Lazy Loading. On Tue, Nov 18, 2008 at 5:07 PM, Whit Armstrong [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] R.packages]$ sudo R CMD INSTALL

Re: [Rd] anyone familiar with this error?

2008-11-18 Thread Gabor Grothendieck
There was a slash missing. It should be http://r-proto.googlecode.com On Tue, Nov 18, 2008 at 6:31 PM, Gabor Grothendieck [EMAIL PROTECTED] wrote: Don't really know but you could see if the info in Avoiding R Bugs section on the http:/r-proto.googlecode.com page applies, particularly

Re: [Rd] Locating MiKTeX

2008-11-10 Thread Gabor Grothendieck
On Mon, Nov 10, 2008 at 10:13 PM, Spencer Graves [EMAIL PROTECTED] wrote: Thanks. What should I have done to obtain the information you just provided? Google for MiKTeX Manual and look at the R batch utilities and info at: http://batchfiles.googlecode.com

[Rd] Locating MiKTeX

2008-11-09 Thread Gabor Grothendieck
I came across this program to locate MiKTeX file: http://docs.miktex.org/2.7/sdk/findfile_8cpp-example.html If the exe of this were included with R then it seems it might provide a reliable way to locate MiKTeX which we don't currently have since AFAIK there is no adequate registry key for

Re: [Rd] Locating MiKTeX

2008-11-09 Thread Gabor Grothendieck
that a gigabyte of stuff, then cleaning space on my hard drive so I could actually install it. The whole process took several days, in between my other work. It would help if it were all part of the standard install. Thanks, Spencer Gabor Grothendieck wrote: I came across this program

[Rd] Problem with Axis

2008-11-05 Thread Gabor Grothendieck
If we run the code below we get an error message but if we replace Axis with axis then we get no error message. I don't think Axis' error message is a good idea since one can't know ahead of time whether there is a tick at January or not since R can automatically adjust plot ranges in a complex

[Rd] Wishlist: pass args from demo() to source()

2008-11-02 Thread Gabor Grothendieck
Currently demo calls source with a hard coded max.deparse.length = 250 so you can't really see the demo properly in some cases. Note the [TRUNCATED] below. (1) It would be nice if demo passed max.deparse.length (and other args to source). (2) Also a larger max.deparse.length default would be

Re: [Rd] conditionally import a namespace?

2008-10-30 Thread Gabor Grothendieck
I noticed there is also an experimental interface that can be used from R (as opposed to the NAMESPACE file). Can't tell from docs whether it allows conditionals: ?.Import On Thu, Oct 30, 2008 at 10:44 AM, Duncan Murdoch [EMAIL PROTECTED] wrote: On 10/30/2008 10:15 AM, Martin Maechler wrote:

Re: [Rd] Errors in R CMD check for R 2.8.0

2008-10-28 Thread Gabor Grothendieck
You could go to \Users\JoeDoe\Documents\R\win-library and rename 2.8 to 2.8x, say, reinstall R, grab movedir.bat from http://batchfiles.googlecode.com placing it in \Users\JoeDoe\Documents\R\win-library (or anywhere on your path) and then check that it created a

Re: [Rd] Possible uninstall problem on windows.

2008-10-26 Thread Gabor Grothendieck
Note that Rversions.hta in http://batchfiles.googlecode.com is a Vista javascript script that will present you with a drop down list based on the R registry entries (and also allow you to change which version is current). Its a single file with no dependencies so just put it in your current

Re: [Rd] changed behaviour of 'get' in 2.8.0: request for unchange

2008-10-24 Thread Gabor Grothendieck
On Fri, Oct 24, 2008 at 6:53 AM, Luke Tierney [EMAIL PROTECTED] wrote: There is already sone desire to have a way of checking whether a binding contains a delayed evaluation, so maybe something like a function bindingStatus that returns one of active, missing, delayed or evaluated makes sense.

Re: [Rd] R 2.8.0 qqnorm produces error with object of class zoo?

2008-10-23 Thread Gabor Grothendieck
, Bernhard -Ursprüngliche Nachricht- Von: Gabor Grothendieck [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 23. Oktober 2008 02:36 An: Peter Dalgaard Cc: Pfaff, Bernhard Dr.; [EMAIL PROTECTED] Betreff: Re: [Rd] R 2.8.0 qqnorm produces error with object of class zoo? I don't think its hopeless

Re: [Rd] R 2.8.0 qqnorm produces error with object of class zoo?

2008-10-22 Thread Gabor Grothendieck
(zoo) Package: zoo Version: 1.5-4 Date: 2008-07-09 Title: Z's ordered observations Author: Achim Zeileis, Gabor Grothendieck Maintainer: Achim Zeileis [EMAIL PROTECTED] Description: An S3 class with methods for totally ordered indexed observations. It is particularly aimed

Re: [Rd] R 2.8.0 qqnorm produces error with object of class zoo?

2008-10-22 Thread Gabor Grothendieck
On Wed, Oct 22, 2008 at 8:49 AM, Peter Dalgaard [EMAIL PROTECTED] wrote: Pfaff, Bernhard Dr. wrote: It seems, that in my previous emails the attached output files got deleted, hence these are now copied below: (If the MIME type is wrong, then that will happen.) Anyways, the root cause

Re: [Rd] R 2.8.0 qqnorm produces error with object of class zoo?

2008-10-22 Thread Gabor Grothendieck
Yes, I noticed that but rank is not generic. An xtfrm.zoo method has been added to zoo on R-Forge but rank still fails: R.version.string [1] R version 2.8.0 Patched (2008-10-21 r46766) packageDescription(zoo)$Version [1] 1.5-3 library(zoo) # next line adds xtfrm zoo method xtfrm.zoo -

Re: [Rd] R 2.8.0 qqnorm produces error with object of class zoo?

2008-10-22 Thread Gabor Grothendieck
And one other point. z - zoo(1:4) .gt(z, 1, 2) fails because z[1] and z[2] are at different time points so z[1] == z[2] is logical(0) because when zoo compares objects it aligns them first. On Wed, Oct 22, 2008 at 2:19 PM, Gabor Grothendieck [EMAIL PROTECTED] wrote: Yes, I noticed

Re: [Rd] R 2.8.0 qqnorm produces error with object of class zoo?

2008-10-22 Thread Gabor Grothendieck
were also built on top of xtfrm then it would work as desired as well. On Wed, Oct 22, 2008 at 5:03 PM, Peter Dalgaard [EMAIL PROTECTED] wrote: Gabor Grothendieck wrote: And one other point. z - zoo(1:4) .gt(z, 1, 2) fails because z[1] and z[2] are at different time points so z[1] == z[2

Re: [Rd] R CMD build on Vista

2008-10-20 Thread Gabor Grothendieck
Check what drives you have available on your system and what file system each uses. Click on Start button and type in System Information and then choose Components / Storage / Drives in the left side panel. That will report all your drives and their file system and other information. Try running

Re: [Rd] relative path to source files in vignette

2008-10-10 Thread Gabor Grothendieck
See ?system.file with the package= argument. On Fri, Oct 10, 2008 at 2:19 PM, Peter Ruckdeschel [EMAIL PROTECTED] wrote: Hi, this may be slightly off-topic, but as you are the experts: we have written a small vignette, in which we want to refer to .R, .Rd source files by means of relative

Re: [Rd] relative path to source files in vignette

2008-10-10 Thread Gabor Grothendieck
Ruckdeschel [EMAIL PROTECTED] wrote: Gabor Grothendieck schrieb: See ?system.file with the package= argument. Thank you Gabor, but this refers to the /installed/ package, while we are needing path information about the not-yet-built source code of the package during R CMD check / build

Re: [Rd] relative path to source files in vignette

2008-10-10 Thread Gabor Grothendieck
On Fri, Oct 10, 2008 at 7:06 PM, Peter Ruckdeschel [EMAIL PROTECTED] wrote: Thanks again Gabor, for your quick reply, Try placing a copy of the files in the inst directory and then accessing them via system.files(myfile.R, package = mypackage) you mean I should do this in an S-chunk in the

Re: [Rd] why is \alias{anRpackage} not mandatory?

2008-10-07 Thread Gabor Grothendieck
Some examples are: - be able to use brew package or similar alternative in place of Sweave - provide a pdf regardless how it was generated without ugly workarounds and still let the user get a list of all pdf documents in one place, e.g. library(help = mypackage) should list the vignettes and

Re: [Rd] Attributes of top level environments clobbered (was Re: [R] possible bug in function 'var' in R 2.7.2?)

2008-10-04 Thread Gabor Grothendieck
(was Re: [R] possible bug in function 'var' in R 2.7.2?) To: Gabor Grothendieck [EMAIL PROTECTED] Cc: r-devel@r-project.org r-devel@r-project.org, Martin Maechler [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Fri, 3 Oct 2008

Re: [Rd] Attributes of top level environments clobbered (was Re: [R] possible bug in function 'var' in R 2.7.2?)

2008-10-03 Thread Gabor Grothendieck
in R. Traditional economics do not apply to an open source project. There is no monetary cost to adding additional developers. luke On Fri, 3 Oct 2008, Gabor Grothendieck wrote: On Fri, Oct 3, 2008 at 3:23 AM, Martin Maechler [EMAIL PROTECTED] wrote: a much better (and much less error

Re: [Rd] Attributes of top level environments clobbered (was Re: [R] possible bug in function 'var' in R 2.7.2?)

2008-10-03 Thread Gabor Grothendieck
On Fri, Oct 3, 2008 at 12:46 PM, Luke Tierney [EMAIL PROTECTED] wrote: On Fri, 3 Oct 2008, Gabor Grothendieck wrote: On Fri, Oct 3, 2008 at 11:43 AM, Luke Tierney [EMAIL PROTECTED] wrote: I will look into fixing it sometime if no one else feels like doing it. The environment aspect

Re: [Rd] splitting strings efficiently

2008-09-24 Thread Gabor Grothendieck
Also one can create a text connection and read it using read.table, scan, etc. s - c(12;13;14, 15;16;17) read.table(textConnection(s), sep = ;) # or scan(textConnection(s), sep = ;) On Wed, Sep 24, 2008 at 12:20 PM, Mark Kimpel [EMAIL PROTECTED] wrote: I knew there HAD to be a basic function,

Re: [Rd] Dates in C api

2008-09-23 Thread Gabor Grothendieck
The chron package does: library(chron) times(12:34:56) Internally times are represented as a faction of a day. On Mon, Sep 22, 2008 at 3:41 PM, Lee, Philip (IT) [EMAIL PROTECTED] wrote: r-devel, One other question just occurred to me - does R have any concept of times alone? I can see that

Re: [Rd] aggregate() does not return POSIXct object correctly (PR#12887)

2008-09-16 Thread Gabor Grothendieck
On Tue, Sep 16, 2008 at 11:22 AM, Peter Dalgaard [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Full_Name: Rene Locher Version: 2.7.2 Patched (2008-09-12 r46541) OS: XP Submission from: (NULL) (160.85.231.40) dat - data.frame(event=factor(c(A,A,B)),

Re: [Rd] bug in package chron (PR#12599)

2008-08-26 Thread Gabor Grothendieck
chron represents times as a fraction of a day using doubles so seconds cannot necessarily be represented exactly thus this is an example of FAQ 7.31: http://cran.r-project.org/doc/manuals/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f Try this: library(chron) tt - c(09:45:00,

Re: [Rd] name conflicts

2008-08-25 Thread Gabor Grothendieck
Use two colons, not three. On Mon, Aug 25, 2008 at 3:05 PM, Max Kuhn [EMAIL PROTECTED] wrote: Everyone, I've got code in my package that uses LogitBoost from the caTools package. caTools does not have a namespace. My package also uses loads RWeka, which has a namespace, and also has a

Re: [Rd] extending the derivs table/fools rushing in

2008-08-14 Thread Gabor Grothendieck
While you are at it could you add { to the table so that this works: # this is ok f - function(x) x*x D(body(f), x) x + x # but not g which is same as f # except it has { ... } surrounding its body g - function(x) { x*x } D(body(g), x) Error in D(body(g), x) : Function '`{`' is not in the

Re: [Rd] extending the derivs table/fools rushing in

2008-08-14 Thread Gabor Grothendieck
You could see if Ryacas package can do what you want: http://ryacas.googlecode.com 2008/8/14 Ben Bolker [EMAIL PROTECTED]: Prof Brian Ripley wrote: The derivative of plogis is surely dlogis. (And yes, there is a good reason why we have such a function: take a look at its C code.) Doh.

Re: [Rd] matrix name

2008-08-09 Thread Gabor Grothendieck
Try this: matrix(1:9, 3, dim = list(x = letters[1:3], y = LETTERS[1:3])) y x A B C a 1 4 7 b 2 5 8 c 3 6 9 On Sat, Aug 9, 2008 at 12:34 PM, mel [EMAIL PROTECTED] wrote: Hello, Presently, we are able to add additionnal info to a matrix thanks to the nice comment() and attr()

[Rd] Name clashes among packages

2008-07-30 Thread Gabor Grothendieck
To handle name clashes among packages I wonder if we could have a namespace setting between exported and not-exported which is exported but you have to use :: (two dots) to access its objects. The difference between mandatory two dot and three dots in this case is that the exported objects are

[Rd] License Conflict?

2008-07-20 Thread Gabor Grothendieck
Is this a true problem? Artistic License may conflict with GPL The source code for R contains references to both the GNU General Public License 2.0 (GPL) and to the Artistic License. These two licenses include some contradictory restrictions. The Ohloh source code parser is exhaustive, and can

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

2008-07-18 Thread Gabor Grothendieck
On Fri, Jul 18, 2008 at 4:18 AM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Fri, 18 Jul 2008, Gorjanc Gregor wrote: 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,

[Rd] [[ vs. .subset2

2008-07-04 Thread Gabor Grothendieck
In the code below test2() gives an error message: Error in .subset2(x, i, exact = exact) : attempt to select less than one element even though test(), which is nearly the same, gives the expected result. BOD is a data set that comes with R. Is this a bug? idx - 2 # returns expected

Re: [Rd] [[ vs. .subset2

2008-07-04 Thread Gabor Grothendieck
Spencer Gabor Grothendieck wrote: In the code below test2() gives an error message: Error in .subset2(x, i, exact = exact) : attempt to select less than one element even though test(), which is nearly the same, gives the expected result. BOD is a data set that comes with R

Re: [Rd] get ...

2008-07-02 Thread Gabor Grothendieck
10:56 AM, Luke Tierney wrote: On Sat, 28 Jun 2008, Peter Dalgaard wrote: Gabor Grothendieck wrote: Suppose we do this: f - function(...) environment() e - f(a = 1, b = 2) ls(e, all = TRUE) [1] ... e$... ... class(e$...) [1] ... Is there any way of getting a and b given e

[Rd] get ...

2008-06-28 Thread Gabor Grothendieck
Suppose we do this: f - function(...) environment() e - f(a = 1, b = 2) ls(e, all = TRUE) [1] ... e$... ... class(e$...) [1] ... Is there any way of getting a and b given e without modifying f? __ R-devel@r-project.org mailing list

Re: [Rd] Posting Guide - help.request() function?

2008-06-09 Thread Gabor Grothendieck
, \n) } else if (method == ess) { body - gsub(n, \n, body) cat(body) } } --- Gabor Grothendieck wrote: Here is another update. I have added the following: - info about using a fresh R session

Re: [Rd] Posting Guide

2008-06-07 Thread Gabor Grothendieck
. The questioner should ensure that the thread is complete and that it has an appropriate Subject. The purpose of the post is not only to help the questioner but also the other list subscribers and those later searching the archives. On Fri, Jun 6, 2008 at 1:30 PM, Gabor Grothendieck [EMAIL PROTECTED] wrote

Re: [Rd] Posting Guide

2008-06-07 Thread Gabor Grothendieck
the questioner but also the other list subscribers and those later searching the archives. On Sat, Jun 7, 2008 at 9:38 AM, Gabor Grothendieck [EMAIL PROTECTED] wrote: Here is a second version of the summary. Its been rearranged to place most important info at top. Also shortened it a bit. It still

Re: [Rd] savePlot() no longer automatically adds an extension to the filename.

2008-06-03 Thread Gabor Grothendieck
Not sure if this is sufficient but note that if you leave the filename off entirely then the extension does default to the type. savePlot() # wmf savePlot(type = jpg) args(savePlot) function (filename = paste(Rplot, type, sep = .), type = c(wmf, emf, png, jpg, jpeg, bmp, tif, tiff, ps,

Re: [Rd] savePlot() no longer automatically adds an extension to the filename.

2008-06-03 Thread Gabor Grothendieck
On Tue, Jun 3, 2008 at 10:36 PM, Simon Urbanek [EMAIL PROTECTED] wrote: On Jun 3, 2008, at 8:40 PM, Duncan Murdoch wrote: On 03/06/2008 2:35 PM, Mike Prager wrote: S Ellison [EMAIL PROTECTED] wrote: Plaintive squeak: Why the change? Some OS's and desktops use the extension, so forgetting

Re: [Rd] scoping problem when calling lm(precomputed formula, weights) from function (PR#11540)

2008-05-30 Thread Gabor Grothendieck
Try replacing the last line in g with: lmout - do.call(lm, list(Formula, data = data, weights = w)) coef(lmout) or replace w with environment()$w thereby explicitly telling it where to look. On Fri, May 30, 2008 at 11:40 AM, [EMAIL PROTECTED] wrote: I've run into a scoping problem in R. I'm

Re: [Rd] Small request.

2008-05-27 Thread Gabor Grothendieck
As of a few weeks ago, rtools does store the current version in the registry but its only a gross figure such as 2.7 or 2.8 and that would not be enough to identify the build. On Tue, May 27, 2008 at 4:45 PM, [EMAIL PROTECTED] wrote: This is (hopefully) a small request. I routinely build

Re: [Rd] (PR#11484) On WinXP, R CMD config needs sh (and breaks without it)

2008-05-19 Thread Gabor Grothendieck
Note that if you place Rcmd.bat andor R.bat from http://batchfiles.googlecode.com anywhere in your path and install the latest rtools from http://www.murdoch-sutherland.com/Rtools/ then you don't have to change your PATH. On Mon, May 19, 2008 at 5:40 AM, [EMAIL PROTECTED] wrote: 2008/5/19

Re: [Rd] Error in building library - R CMD build mypkg.

2008-05-19 Thread Gabor Grothendieck
What does your DESCRIPTION file look like? Have you edited it to specify the required information? Read the Writing R Extensions manual. On Mon, May 19, 2008 at 4:11 PM, Ajay DAS [EMAIL PROTECTED] wrote: - Forwarded by Ajay DAS/US/BMNA01 on 05/19/2008 03:11 PM -

Re: [Rd] apply and monthly time series (PR#11352)

2008-04-30 Thread Gabor Grothendieck
See ?apply If X is not an array but has a dimension attribute, apply attempts to coerce it to an array via as.matrix if it is two-dimensional (e.g., data frames) or via as.array. So for example, try this noting that time is 1, 2, 3, ... apply(monthly, 2, time) Try lm(monthly ~ time(monthly))

Re: [Rd] build packages with vignettes in Windows

2008-04-30 Thread Gabor Grothendieck
You can use the Windows batch PATH command. On Wed, Apr 30, 2008 at 11:56 AM, Michael [EMAIL PROTECTED] wrote: On 29 Apr 2008, Duncan Murdoch wrote: Right, you don't need to set the system path for everything, but you do need to set it in CMD (or other shell) before running Rcmd. For Win

Re: [Rd] build packages with vignettes in Windows

2008-04-29 Thread Gabor Grothendieck
The use of the UNIX find command on Windows makes installation very troublesome and fragile. I wonder if you could include a find2 or somesuch with the tools and change the scripts to use that getting rid of find or use just use the Windows find command in the scripts. Or some other solution so

Re: [Rd] build packages with vignettes in Windows

2008-04-29 Thread Gabor Grothendieck
On Tue, Apr 29, 2008 at 4:00 PM, Duncan Murdoch [EMAIL PROTECTED] wrote: On 29/04/2008 2:51 PM, Gabor Grothendieck wrote: The use of the UNIX find command on Windows makes installation very troublesome and fragile. I wonder if you could include a find2 or somesuch with the tools

Re: [Rd] graphics::Axis loosing S3/S4 class attributes of 'x' in 2.7.0 RC

2008-04-22 Thread Gabor Grothendieck
This also affects Axis.yearmon and Axis.yearqtr in the zoo package which worked in R 2.6.2 and now don't work properly. It seems more logical to define plot.whatever to handle the object in question, i.e. we do define plot.zoo, whereas only the Axis method ought to be required for the X and Y

Re: [Rd] graphics::Axis loosing S3/S4 class attributes of 'x' in 2.7.0 RC

2008-04-22 Thread Gabor Grothendieck
On Tue, Apr 22, 2008 at 9:24 AM, Duncan Murdoch [EMAIL PROTECTED] wrote: On 4/22/2008 9:08 AM, Sklyar, Oleg (MI London) wrote: Duncan, looking further, what has changed from 2.6.2 into 2.7.0 are the following two lines in plot.default, which I think were logical before and are not

Re: [Rd] graphics::Axis loosing S3/S4 class attributes of 'x' in 2.7.0 RC

2008-04-22 Thread Gabor Grothendieck
Its not clear to me at this point what and where the proposed or already made change is but here is a test that should produce a year/month style rather than numeric style X axis: library(zoo) z - zoo(1:12, as.yearmon(2000 + 1:12/12)) plot(z) On Tue, Apr 22, 2008 at 1:18 PM, Duncan Murdoch

Re: [Rd] plot(x) in 2.7.0 (with y=NULL) proposed code correction

2008-04-22 Thread Gabor Grothendieck
On Tue, Apr 22, 2008 at 1:45 PM, Duncan Murdoch [EMAIL PROTECTED] wrote: defined for POSIX and Date classes only. zoo defines Axis methods for the yearmon and yearqtr classes and potentially other time/date classes will need Axis methods. __

<    1   2   3   4   5   6   7   8   9   10   >