Re: [Rd] Suggestion: help(package name)

2005-06-07 Thread Prof Brian Ripley
I share Robert's `pretty strenuous' objections. Adding compulsory things for package writers seems to me to need very compelling arguments. Checking that a package does what it says (e.g. the code in vignettes can be run) is one thing, but checking it does things it does not say it wants to

Re: [Rd] alloca() on FreeBSD (PR#7890)

2005-06-07 Thread Prof Brian Ripley
This is a package, so it is not using config.h. It is using #ifdef HAVE_ALLOCA_H #include alloca.h #else extern char *alloca(size_t); #endif and hence will have whatever the problem is with having that declaration. The basic problem is that autoconf assumes that if alloca is defined

Re: [Rd] Characters in lists.

2005-06-05 Thread Prof Brian Ripley
On Sat, 4 Jun 2005, James Bullard wrote: Hi all, this should be a relatively straightforward question. I am constructing an R list in C which will contain both Integers and Strings (by string I mean in C I have const char* whose values I want passed through to R) The Integers are easy. I do

Re: [Rd] ?strptime ambiguity (PR#7907)

2005-06-02 Thread Prof Brian Ripley
On Mon, 30 May 2005 [EMAIL PROTECTED] wrote: Full_Name: Tobias Verbeke Version: 2.1.0 OS: GNU/Linux Submission from: (NULL) (81.247.252.229) Would it be possible to use a non-ambiguous example of expressing a day according to the ISO 8601 international standard in the first sentence of the

Re: [Rd] Memory question on R

2005-05-20 Thread Prof Brian Ripley
On Fri, 20 May 2005, Dr L. Y Hin wrote: Dear all, Apology for posting this amateurish question. I am running R version 2.1.0 on Windows XP for a simulation exercise. Seemingly, I've encountered memory allocation problem during the recursive procedure. I've looked at the help section called

Re: [Rd] problems with truncate() with files 2Gb under Windows (possibly (PR#7879)

2005-05-20 Thread Prof Brian Ripley
To follow up on the truncate() part of this, Windows does not use chsize directly any more, but ftruncate like all other platforms. However, truncate() was limited to files 2Gb on all platforms. I have changed the latter and your example now works both on 32-bit Windows and on 64-bit Linux.

Re: [Rd] problems with truncate() with files 2Gb under Windows (possibly (PR#7879)

2005-05-20 Thread Prof Brian Ripley
On Fri, 20 May 2005, Prof Brian Ripley wrote: To follow up on the truncate() part of this, Windows does not use chsize directly any more, but ftruncate like all other platforms. However, truncate() was limited to files 2Gb on all platforms. I have changed the latter and your example now

Re: [Rd] Problem with proj

2005-05-20 Thread Prof Brian Ripley
I think the qr object is correct. The problem is in proj.aovlist, and I have now fixed it. Answering something like this is as much work as dealing with a bug report, since we need to dig in (to find that is the aovlist method, for example) and to recall how it works (it is about 7 years

Re: [Rd] Getting ... without evaluating it?

2005-05-19 Thread Prof Brian Ripley
On Thu, 19 May 2005, Duncan Murdoch wrote: I'd like a function to get an unevaluated copy of its argument list, including ... . That is, I'd like f - function(...) { args - what goes here?? args } when called as f(a = 1+1, b = foo) to return something like list(a = quote(1+1), b =

[Rd] Re: [R] Fortran 95 in R ?

2005-05-18 Thread Prof Brian Ripley
First you need a functional F95 compiler. I believe `g95' is obselete, replaced by gfortran. For how to use that, please do read the R-admin manual in R 2.1.0 -- it can be done if you use a bug-fixed version of gfortran (post gcc-4.0.0) or a workaround. Reliable F95 compilers such as those

[Rd] SVN revision numbers

2005-05-18 Thread Prof Brian Ripley
You will start to see SVN revision numbers appearing in the the R-devel version of R, for example R : Copyright 2005, The R Foundation for Statistical Computing Version 2.2.0 Under development (unstable) (2005-05-18 r34401) ISBN 3-900051-07-0 This has been done to enable us to track

Re: [Rd] add Rvsnprintf to API ??

2005-05-14 Thread Prof Brian Ripley
On Fri, 13 May 2005, Charles Geyer wrote: Could Rvsnprintf (in src/main/errors.c) be added to the R API with prototype in include/R_ext/Print.h say? Here's my problem. I'm trying to write some code that is not totally tied to R. Hence I want R style error messaging to be isolated in a small

Re: [Rd] Building R for windows tools link

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005, Gregor GORJANC wrote: Prof Brian Ripley wrote: On Wed, 11 May 2005, Gorjanc Gregor wrote: Hello! I think that link to page of Duncan Murdoch (bellow) should be given http://www.murdoch-sutherland.com/Rtools/ at http://developer.r-project.org/. Are you saying that it is given

RE: [Rd] bug in modulus operator %% (PR#7852)

2005-05-12 Thread Prof Brian Ripley
I've now found a Windows system that does this. This is also Windows XP, fully patched, and with the same rw2010. So it may be chip-specific: the one that works is a P4 and the one that does not is a latest Pentium M. I am not sure that the guarantee on the help page has been supported for a

Re: [Rd] Windows freezes plotting large line plots (PR#7856)

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005 [EMAIL PROTECTED] wrote: On 12-May-05 [EMAIL PROTECTED] wrote: This is already addressed in R-patched: we do ask you to check before filing a bug report so as not to waste our time. (It was also discussed on R-help: see the archives.) It is a bug *in Windows* and not one in R:

Re: [Rd] bug in modulus operator %% (PR#7852)

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005, Kjetil Brinchmann Halvorsen wrote: Prof Brian Ripley wrote: I've now found a Windows system that does this. This is also Windows XP, fully patched, and with the same rw2010. So it may be chip-specific: the one that works is a P4 and the one that does not is a latest

RE: [Rd] segfault on large number of open brackets (PR#7859)

2005-05-12 Thread Prof Brian Ripley
On Thu, 12 May 2005 [EMAIL PROTECTED] wrote: I suspect that is coincidence, as I can see no source change that would account for it. 2.0.1 and R-devel work for me and 2.1.0 segfaults with 999 KeepSource = *LOGICAL(GetOption(install(keep.source), R_NilValue)); (gdb) bt #0 0x080ca229 in

Re: [Rd] R make errors

2005-05-12 Thread Prof Brian Ripley
Please see the thread entitled: Implementing R on IBM p690 cluster Jump in this list's archives. We don't have a solution currently, but we do need some help. On Thu, 12 May 2005, Ambika Sundaresan wrote: I tried to install the latest version of R (2-1.0)in anAIX machine. I was able

Re: [Rd] Implementing R on IBM p690 cluster Jump

2005-05-11 Thread Prof Brian Ripley
On Wed, 11 May 2005, Ralf Seppelt wrote: Dear All, we're trying to implement R on the IBM p690 cluster Jump at the research centre in Jülich, Germany (c.f. http://www.fz-juelich.de/nic/Supercomputer/computer-e.html) using the most recent version of R (2.1.0) and precisly following the

Re: [Rd] Building R for windows tools link

2005-05-11 Thread Prof Brian Ripley
On Wed, 11 May 2005, Gorjanc Gregor wrote: Hello! I think that link to page of Duncan Murdoch (bellow) should be given http://www.murdoch-sutherland.com/Rtools/ at http://developer.r-project.org/. Are you saying that it is given incorrectly? I can't see it. That site is for the development of R,

Re: [Rd] Different package versions on CRAN?

2005-05-08 Thread Prof Brian Ripley
On Sun, 8 May 2005, Philippe Grosjean wrote: I am making changes to some of my packages that are exposed in CRAN. Some changes make them incompatible with previous R versions [and I use Depends: R (= 2.1.0)]. I suspect that, as soon as I will upload this new version to CRAN, it will replace the

RE: [Rd] How to understand packages, namespaces, environments

2005-05-08 Thread Prof Brian Ripley
On Mon, 9 May 2005 [EMAIL PROTECTED] wrote: [Alexander Stoddard] Subject: Re: [Rd] How to understand packages, namespaces, environments Does saying the following load package 'foo' into its own environment ? library(foo) [Duncan Murdoch] This loads some of the (name, object) pairs from the

Re: [Rd] How to understand packages, namespaces, environments

2005-05-06 Thread Prof Brian Ripley
On Fri, 6 May 2005, Alexander Stoddard wrote: I would be very glad of pointers to information on how the concepts of packages, namespaces and environments are interrelated in R. I am trying to get a handle on this both so I can delve further into understanding other people's code and so I can

Re: [Rd] Varying as.Date performance

2005-05-05 Thread Prof Brian Ripley
One other possibly difference would be locale, but this is slow on FC3 (2.3.4 now) in the C locale. Almost all the time is in strptime: R profiling shows summaryRprof() $by.self self.time self.pct total.time total.pct strptime 29.58 99.7 29.58 99.7

Re: [Rd] Varying as.Date performance

2005-05-05 Thread Prof Brian Ripley
On Thu, 5 May 2005, Peter Dalgaard wrote: Jeff Enos [EMAIL PROTECTED] writes: Thanks for these suggestions. C-level profiling yields the following: % cumulative self self total time seconds secondscalls s/call s/call name 36.01 5.34 5.34 10

Re: [Rd] MacOS X: update.packages(type=mac.binary) fails (PR#7836)

2005-05-04 Thread Prof Brian Ripley
programming is an exceptionally bad idea which could only have originated in California. E. Dijkstra On Tue, 2005-05-03 at 16:14 +0100, Prof Brian Ripley wrote: Binary installs are AFAIK only supported in the GUI, where the default is as documented. So .install.macbinary() is not loaded except

Re: [Rd] MacOS X: update.packages(type=mac.binary) fails (PR#7836)

2005-05-04 Thread Prof Brian Ripley
On Wed, 4 May 2005, Jari Oksanen wrote: On Wed, 2005-05-04 at 09:01 +0100, Prof Brian Ripley wrote: This should not be required. What does .Platform say? I couldn't let it be: str(.Platform) List of 6 $ OS.type : chr unix $ file.sep : chr / $ dynlib.ext: chr .so $ GUI : chr AQUA $ endian

[Rd] Re: [R] Unbundling gregmisc (was: loading gap package)

2005-05-04 Thread Prof Brian Ripley
On Wed, 4 May 2005, Duncan Murdoch wrote: Warnes, Gregory R wrote: Let me redirect the topic a bit. I've been considering unbundling gregmisc. So let's move to R-devel. The pro would be that people would find the component packages (i.e. gdata) more easily. The con is that the packages have a

Re: [Rd] make hanging during compile of r-patched/R-devel on Fedora Core 3

2005-05-04 Thread Prof Brian Ripley
On Wed, 4 May 2005, Marc Schwartz wrote: On Wed, 2005-05-04 at 13:56 +0100, Gavin Simpson wrote: Hi, On a new Dell laptop, with a fresh FC3 installation (with latest updates applied) I am experiencing make hanging consistently after/during building grDevices. This happens when using the configure

Re: [Rd] make hanging during compile of r-patched/R-devel on Fedora Core 3

2005-05-04 Thread Prof Brian Ripley
On Wed, 4 May 2005, Peter Dalgaard wrote: Gavin Simpson [EMAIL PROTECTED] writes: Basically, the LAPACK in FC3 is broken because it was compiled with gcc-3.4 and that introduced errors when -O2 optimisations were used to compile the rpm. That bug was recently reopened so there may be the

Re: [Rd] DLL modules with other dependent libraries

2005-05-04 Thread Prof Brian Ripley
On Wed, 4 May 2005, Marcus G. Daniels wrote: In R for Windows, is there a preferred way to handle R extensions that provide native code that depend upon one or more third party DLLs? If I put those DLLs in the library/MODULE/libs it doesn't find them. In other words, my MODULE.dll has other

Re: [Rd] memory problem

2005-05-03 Thread Prof Brian Ripley
On Tue, 3 May 2005 Jared.O'[EMAIL PROTECTED] wrote: I am undertaking my first attempt at using compiled C code within R and have run into this lovely problem when I call my C code (using .C). The instruction at 0x10001d1b referenced memory at 0x01fa2000. The memory could not be written. Now this

Re: [Rd] MacOS X: update.packages(type=mac.binary) fails (PR#7831)

2005-05-03 Thread Prof Brian Ripley
On Tue, 3 May 2005 [EMAIL PROTECTED] wrote: Binary installs are AFAIK only supported in the GUI, where the default is as documented. A bit more checking show that the documented default is source except under the CRAN Mac OS X build and the default is taken from .Platform$pkgType which is

[Rd] Re: [R] Warning from Rcmd check - data could not find data set

2005-04-30 Thread Prof Brian Ripley
On Sat, 30 Apr 2005, Kjetil Brinchmann Halvorsen wrote: Prof Brian Ripley wrote: On Fri, 29 Apr 2005, Kjetil Brinchmann Halvorsen wrote: This is rw2010 from CRAN. When running Rcmd check on a package I get: Warning in utils::data(list = al, envir = data_env) : data set 'vowel.test' not found

Re: [Rd] RE: as.numeric method for objects of class difftime

2005-04-30 Thread Prof Brian Ripley
I am very surprised that people would expect as.numeric to do something meaningful on time differences (or times, come to that). Perhaps the best thing is to stop it altogether. The selection of auto was the best for the original purpose: people in general do not want a difference of 3 days

[Rd] R-devel instability

2005-04-29 Thread Prof Brian Ripley
Recent commits to R-devel mean that you will definitely need to re-configure and may even need to re-build from scratch. This is to support configure options --datadir and --includedir -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics,

Re: [Rd] ncdf with opendap/dods support

2005-04-27 Thread Prof Brian Ripley
You need to approach the package maintainers directly: they may well not read r-devel. What you seem to be suggesting is an extra feature for the ncdf package. Note from `B Ripley': you need libraries for a specific compiler on Windows. Professor Ripley. On Tue, 26 Apr 2005, Russell Moffitt

Re: [Rd] RE: [R] when can we expect Prof Tierney's compiled R?

2005-04-27 Thread Prof Brian Ripley
On Tue, 26 Apr 2005, Vadim Ogranovich wrote: Thank you for sharing the benchmark results. The improvement is very substantial, I am looking forward to the release of the byte compiler! The arithmetic shows that x[i]- is still the bottleneck. I suspect that this is due to a very involved

Re: [Rd] Problems compiling C code on windows

2005-04-27 Thread Prof Brian Ripley
On Wed, 27 Apr 2005, Victor Trevino wrote: I can't get my C routines running on a windows box. I have no problems at all in Linux. On windows, I have installed cygwin and the compilation works well but once I execute dyn.load(.) it hangs whatever I use C/C++ interfaces. Please try reading the

Re: [Rd] Feature request: report the url if 404 error occurs

2005-04-26 Thread Prof Brian Ripley
On Mon, 25 Apr 2005, Seth Falcon wrote: Currently, the connection code does not include the URL in the warning message when a 404 response is received: myUrl = http://www.r-project.org/ABadPage.html; con = url(myUrl) readLines(con) Error in readLines(con) : cannot open the connection In

Re: [Rd] Enhanced version of plot.lm()

2005-04-26 Thread Prof Brian Ripley
On Tue, 26 Apr 2005, Peter Dalgaard wrote: Martin Maechler [EMAIL PROTECTED] writes: This would be non-compatible though for all those that have always used the current default 1:4. OTOH, MASS or Peter Dalgaard's book don't mention plot(lm fit ) or at least don't show it's result. Ummm, check

[Rd] Re: [R] R-2.1.0 doesn't compile on FreeBSD6-CURRENT

2005-04-26 Thread Prof Brian Ripley
[This is an inappropriate question for R-help. Perhaps R-devel (see the posting guide) but more likely a FreeBSD mailing list. Moved to R-devel.] R itself does not refer to __builtin_alloca. That is something being mapped by the FreeBSD headers, and it should be `builtin' using gcc. (No

Re: [Rd] wild function example in optim

2005-04-26 Thread Prof Brian Ripley
On Tue, 26 Apr 2005, Thomas Lumley wrote: On Tue, 26 Apr 2005, Werner Bier wrote: Dear all, Firstly, I do apologize if my question is simple and posted in the wrong place but I had no reply from the R-help mailing list (maybe it is too simple!). I was wondering why parscale is set to 20 in the

Re: [Rd] make check failure -- R 2.1.0 Windows XP SP2

2005-04-20 Thread Prof Brian Ripley
Please read the comments: that is a random test and fails about 1 in 50. On Wed, 20 Apr 2005, Conrad Halling wrote: I compiled R 2.1.0 under Windows XP SP2 as a preliminary to rebuilding a custom package for use with R 2.1.0. The compile completed successfully, and I was able to run

Re: [Rd] Embedded R and x11

2005-04-20 Thread Prof Brian Ripley
I think you are barking up the wrong tree. If you want to use an event-driven sub-system you need to run an event loop. There is a lot of new information in 2.1.0 on building a front-end. Please read it. On Wed, 20 Apr 2005, Thomas Friedrichsmeier wrote: I'm working on a frontend for R. I have

[Rd] Re: [R] pl/R and MacOS X using R binary

2005-04-19 Thread Prof Brian Ripley
[Moved from R-help.] On Tue, 19 Apr 2005, Sean Davis wrote: I'm sorry if this is too off-topic--feel free to ignore. I am interested in using pl/R, an amazing plugin for the postgresql database. As is typical of these types of applications, pl/R needs to link against a shared library.

Re: [Rd] UnauthorizedAccessException in R(D)COM

2005-04-18 Thread Prof Brian Ripley
This is the wrong list for R(D)COM, which is not part of R. It has its own support list. Almost all readers of this list have no idea what the MicroSoft jargon you are using means. See the `home page' http://cran.r-project.org/contrib/extra/dcom/RSrv135.html for more details. On Mon, 18 Apr 2005

Re: [Rd] RFC: hexadecimal constants and decimal points

2005-04-18 Thread Prof Brian Ripley
On Mon, 18 Apr 2005, Peter Dalgaard wrote: Martin Maechler [EMAIL PROTECTED] writes: BDR We could do better by insisting that . was the decimal BDR point in all interval conversions _to_ numeric. Then the BDR effect of setting LC_NUMERIC would primarily be on BDR conversions _from_

Re: [Rd] Using lengthgets() correctly (was SET_LENGTH)

2005-04-17 Thread Prof Brian Ripley
If you use R not the S-compatibility macros you will be less likely to confuse yourself. The definition is (analogous to realloc) Rdefines.h:#define SET_LENGTH(x, n) (x = lengthgets(x, n)) so x is changed and needs to be reprotected. [I don't know that SET_LENGTH *is* part of the API: it is

Re: [Rd] Using lengthgets() correctly (was SET_LENGTH)

2005-04-17 Thread Prof Brian Ripley
I assume this is not true of your actual example, but the sample code allocates a character matrix and calls INTEGER() on it. Ouch! On Sun, 17 Apr 2005, Prof Brian Ripley wrote: If you use R not the S-compatibility macros you will be less likely to confuse yourself. The definition is (analogous

Re: [Rd] RFC: hexadecimal constants and decimal points

2005-04-17 Thread Prof Brian Ripley
On Sun, 17 Apr 2005, Jan T. Kim wrote: On Sun, Apr 17, 2005 at 12:38:10PM +0100, Prof Brian Ripley wrote: These are some points stimulated by reading about C history (and related in their implementation). 1) On some platforms as.integer(0xA) [1] 10 but not all (not on Solaris nor Windows). We do

Re: [Rd] dynamic array output by .C

2005-04-15 Thread Prof Brian Ripley
a quick question. Thanks Use lengthgets(). On 4/14/05, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 14 Apr 2005, Tib wrote: Greetings, I am building a stochastic simulation model in a C++ shared library for R. My model will generate a random number of new observations and also delete some old

Re: [Rd] dynamic array output by .C

2005-04-15 Thread Prof Brian Ripley
On Thu, 14 Apr 2005, Simon Urbanek wrote: On Apr 14, 2005, at 6:01 PM, Tib wrote: from the examples of Writing R Extensions, I see one still has to declare the size of arrays by NEW_NUMERIC(n) or allocVector(REALSXP,n), how can I extend arrays? AFAIR you cannot extend vectors - it's like in C,

Re: [Rd] inconsistent fonts generated in postscript file (PR#7795)

2005-04-15 Thread Prof Brian Ripley
Please DO READ the documentation. Rdevga applies to *windows* devices: see its help page. On Windows, saving to JPEG or PNG is using a windows device. The way fonts are chosen in postscript() is described on its help page. It is *definitely* using not Arial but Helvetica, even though your viewer

[Rd] New developer.r-project.org page

2005-04-15 Thread Prof Brian Ripley
I've added a page on the developer site on `Resources for Portable Programming' It should show up via the index page in due course and is at https://svn.r-project.org/R-dev-web/trunk/Portability.html now. (R core members are welcome to add to it.) Some of the articles linked there

Re: [Rd] predict.glm(..., type=response) loses names (was RE: [R] A sugg estion for predict function(s))

2005-04-14 Thread Prof Brian Ripley
On Wed, 13 Apr 2005, Liaw, Andy wrote: [...] There are quite a few other places in make.link() like this. Question to R Core: Would such fixes be considered `trivial' enough to make it into R-2.1.0? No. This sort of thing could affect packages, and at this point in code freeze we are only going

RE: [Rd] How allocate STRSXP outside of gc

2005-04-14 Thread Prof Brian Ripley
On Wed, 13 Apr 2005, Vadim Ogranovich wrote: mkChar is a rather expensive call since it allocates a new R object. For example in reading char data from a file it is often advantageous to first try to look up an already made R string and only then use mkChar. That is, the overhead of the lookup is

Re: [Rd] documentation for 'open': some clarification?

2005-04-14 Thread Prof Brian Ripley
On Thu, 14 Apr 2005, Na Li wrote: I'm been doing more and more of file text parsing inside R instead of coping with Perl. For that, I need open a file and read it line-by-line. I found the documentation for 'open' isn't very clear. You appears to have missed almost all the documentation. Right

Re: [Rd] dynamic array output by .C

2005-04-14 Thread Prof Brian Ripley
On Thu, 14 Apr 2005, Tib wrote: Greetings, I am building a stochastic simulation model in a C++ shared library for R. My model will generate a random number of new observations and also delete some old observations, however, the numbers cannot be predicted before the computation engine runs. For

Re: [Rd] patch to add a menu item in Rgui for RSiteSearch

2005-04-13 Thread Prof Brian Ripley
On Wed, 13 Apr 2005, Duncan Murdoch wrote: Prof Brian Ripley wrote: On Tue, 12 Apr 2005, Liaw, Andy wrote: Please consider adding the following to the next R release (I understand that it's too late for R-2.1.0). It adds the menu item `Search R Site' in the `Help' menu in Rgui (which calls

Re: [Rd] C Interface to R?

2005-04-12 Thread Prof Brian Ripley
On Tue, 12 Apr 2005, Duncan Murdoch wrote: Alexander Schinner wrote: can somebody tell me, if there is a C or C++ Interface to the R? Reading the documentation, FAQ, CRAN etc. I found nothing. But as i am very new to R, I might have not searched in the right place. Yes, there is. You want to

Re: [Rd] MASS: isoMDS drops names of points in R-2.1.0 (PR#7786)

2005-04-12 Thread Prof Brian Ripley
Please DO read the FAQ and do not send reports on contributed packages to R-bugs. On Tue, 12 Apr 2005 [EMAIL PROTECTED] wrote: Full_Name: Jari Oksanen Version: 2.1.0 OS: Linux MacOS X Submission from: (NULL) (130.231.102.145) isoMDS (MASS) drops names of points. The reason seems to be that

Re: [Rd] patch to add a menu item in Rgui for RSiteSearch

2005-04-12 Thread Prof Brian Ripley
On Tue, 12 Apr 2005, Liaw, Andy wrote: Please consider adding the following to the next R release (I understand that it's too late for R-2.1.0). It adds the menu item `Search R Site' in the `Help' menu in Rgui (which calls RSiteSearch() on the input string). Can you or someone else think of a

Re: [Rd] strange error with rw2010dev

2005-04-11 Thread Prof Brian Ripley
On Mon, 11 Apr 2005, Martin Maechler wrote: PD == Peter Dalgaard [EMAIL PROTECTED] on 11 Apr 2005 09:46:11 +0200 writes: . MM Thanks again for the report; this should be fixable MM before release. PD Preferably before code freeze! (today) PD I think we (Thomas L.?) got it

Re: [Rd] make check-all fails (PR#7784)

2005-04-10 Thread Prof Brian Ripley
On Sun, 10 Apr 2005, M. Edward (Ed) Borasky wrote: Peter Dalgaard wrote: M. Edward (Ed) Borasky [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: This looks more serious. 100 times machine precision is quite a large margin in these matters. Could you perhaps stick in a printout of the two terms

Pacakge norm (was Re: [Rd] orphaning CRAN packages)

2005-04-09 Thread Prof Brian Ripley
The known problems are in the file http://www.r-project.org/nocvs/R.check/r-devel/norm-00check.txt No showstoppers, so given the saga of Ted's connectivity, I would suggest waiting for the release on April 18. There are no declared dependencies, nor did I find any searching the code. On Sat, 9

Inappropriate bug report on package GeneTS (was [Rd] fisher.g.test.single cannot handle time series longer than 341 (PR#7782))

2005-04-08 Thread Prof Brian Ripley
The FAQ says: Bug reports on contributed packages should be sent first to the package maintainer, and only submitted to the R-bugs repository by package maintainers, mentioning the package in the subject line. You have not mentioned the package in the subject line, and you are not the

Re: [Rd] Calling do_inherit from C

2005-04-06 Thread Prof Brian Ripley
On Tue, 5 Apr 2005, Vadim Ogranovich wrote: Hi, Is there a way (or better say idiom) for calling functions like do_inherit() (which are meant to be called via .Internal) from regular C code. Say I have a SEXP object x and I want to check if it inherits from POSIXt. How do I do this? Call eval() on

[Rd] HP-UX and IRIX recent builds? Any other rare platforms?

2005-04-06 Thread Prof Brian Ripley
I am revising the section in R-admin on platforms. When I asked about locales earlier this year I got no reply about HP-UX and IRIX, so I will presume that no one has built R on those OSes recently. If you have, please send me the OS number and the flags you used. Platforms where I have seen

Re: [Rd] make error in R devel

2005-04-06 Thread Prof Brian Ripley
What you are doing is not building the recommended packages. We not guarantee that the examples will work if you do not. (I was aware this would happen but have not yet put in a workaround.) *WHY* are you not building the recommended packages? On Wed, 6 Apr 2005, Gavin Simpson wrote: Dear

Re: [Rd] intentional changes in rw2010alpha?

2005-04-05 Thread Prof Brian Ripley
On Mon, 4 Apr 2005, Kjetil Brinchmann Halvorsen wrote: Is this changes intentional? The description of what happened (and still happens) is wrong Now Rcmd INSTALL --build --clean myPkg builds the tar.gz, and only then cleans. Also, files left by xemacs like myfile~ are now included in the

Re: [Rd] Building new graphic device drivers with g++

2005-04-02 Thread Prof Brian Ripley
On Sat, 2 Apr 2005, Markku Mielityinen wrote: Dear Group, I'm trying to build a set of new graphic device drivers. I use the devNull example a a beginning point: $ R CMD SHLIB devNull.c gcc -shared -L/usr/local/lib -o devNull.so devNull.o (everything works OK) $ R CMD SHLIB devNull.cpp g++ -shared

Re: [Rd] Solaris10/amd64 + SunSutio Compile (PR#7767)

2005-04-02 Thread Prof Brian Ripley
On Sat, 2 Apr 2005, Peter Dalgaard wrote: [EMAIL PROTECTED] writes: Full_Name: Teru KAMOGASHRIA Version: 2.0.1 OS: SunOS sun 5.10 Generic i86pc i386 i86pc Submission from: (NULL) (219.5.176.24) rbinom.c cannot be compiled because of the casting problem. /opt/SUNWspro/bin/cc -I. -I../../src/include

Re: [Rd] print.glm() signif digits (PR#7765)

2005-04-01 Thread Prof Brian Ripley
Why did you file a bug report on something with is `not wrong' and indeed you can change? How does this correspond to the definition of a `bug' in the FAQ? Your analysis is in fact based on an incorrect assertion: the default is args(print.glm) function (x, digits = max(3, getOption(digits) -

Re: [Rd] RGUI font problem (PR#7749)

2005-03-29 Thread Prof Brian Ripley
and the effect will be unpredictable (and hence hard to fix). So the problem was introduced by the editor code in 2.0.0. Duncan Murdoch Thanks for you time. -Christos -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Saturday, March 26, 2005 2:24 AM To: [EMAIL

Re: [Rd] Mistype in CRAN mirror list(doc/CRAN_mirrors.csv) (PR#7759)

2005-03-29 Thread Prof Brian Ripley
On Wed, 30 Mar 2005 [EMAIL PROTECTED] wrote: Full_Name: Masafumi OKADA Version: 2.0.1 OS: Windows Submission from: (NULL) (130.158.158.65) In the list of CRAN mirrors($R_HOME/doc/CRAN_mirrors.csv), I found a mistyping. Mirror in University of Tsukuba is described as Tsukaba, not Tsukuba. I know

Re: [Rd] improved pairs.formula?

2005-03-28 Thread Prof Brian Ripley
On Tue, 29 Mar 2005, Berwin A Turlach wrote: Dear all, I would like to suggest changing the pairs.formula command such that a command like pairs(GNP ~ . - Year - GNP.deflator, longley) would behave in a similar fashion as lm(GNP ~ . - Year - GNP.deflator, longley) i.e., make a

Re: [Rd] CRAN website: link targets

2005-03-25 Thread Prof Brian Ripley
On Fri, 25 Mar 2005, Gregor GORJANC wrote: Hello R-masters! This is R-devel, not the feedback page for CRAN/www.r-project.org. R R webpages do not AFAICS. www.r-project.org may, but that is not R. and CRAN webpages use HTML frames for layout. Links to files such as PDF are therefore opened

Re: [Rd] RGUI font problem (PR#7749)

2005-03-25 Thread Prof Brian Ripley
This would appear to be the same as PR#7277. That too is not really reproducible. One possible crucial piece of missing information: is RGui being run in SDi or MDI mode? On Sat, 26 Mar 2005 [EMAIL PROTECTED] wrote: Full_Name: Christos Hatzis Version: 2.0.1 patched (2005-02-18) OS: WinXP SP2

Re: [Rd] sub('^', .....) bugs (PR#7742)

2005-03-23 Thread Prof Brian Ripley
On Wed, 23 Mar 2005 [EMAIL PROTECTED] wrote: 1) In your cases, the integer 'x' argument is auto-coerced to character, however that fails as soon as 'perl = TRUE' is used. sub('^','v_', 1:3, perl=TRUE) Error in sub.perl(pattern, replacement, x, ignore.case) : invalid argument {one can

Re: [Rd] sub('^', .....) bugs (PR#7742)

2005-03-23 Thread Prof Brian Ripley
On Wed, 23 Mar 2005, Brian D Ripley wrote: The first is as designed: zero-length initial matches are ignored in the C code. (Don't ask me why it was designed that way.) The second is not reproducible in the current sources, so is probably already fixed by the fix to PR#7742. I've found a better

Re: [Rd] forcing R CMD COMPILE

2005-03-23 Thread Prof Brian Ripley
On Wed, 23 Mar 2005, Pedro Ribeiro de Andrade Neto wrote: On Wed, 23 Mar 2005, Prof Brian Ripley wrote: On Wed, 23 Mar 2005, Pedro Ribeiro de Andrade Neto wrote: I am developing a package with a lot of C++ code, and I have a question about R CMD COMPILE. As I can see, when the package's Makefile

Re: [Rd] NaN and linear algebra

2005-03-23 Thread Prof Brian Ripley
On Wed, 23 Mar 2005, Simon Urbanek wrote: On Mar 22, 2005, at 6:19 PM, Bill Northcott wrote: On 23/03/2005, at 12:55 AM, Simon Urbanek wrote: You may prefer the error, but it is not in the sprit of robust arithmetic. ie d-matrix(NaN,3,3) f-solve(d) Error in solve.default(d) : Lapack routine

Re: [Rd] forcing R CMD COMPILE

2005-03-23 Thread Prof Brian Ripley
, 23 Mar 2005, Prof Brian Ripley wrote: On Wed, 23 Mar 2005, Pedro Ribeiro de Andrade Neto wrote: On Wed, 23 Mar 2005, Prof Brian Ripley wrote: On Wed, 23 Mar 2005, Pedro Ribeiro de Andrade Neto wrote: I am developing a package with a lot of C++ code, and I have a question about R CMD COMPILE. As I can

Re: [Rd] interp.surface() error (PR#7745)

2005-03-23 Thread Prof Brian Ripley
R does not contain a function interp.surface! This is from package 'fields', and according to the FAQ only the maintainer is allowed to send bug reports on a contributed package to R-bugs. I am closing this report: please contact the maintainer (and do read the FAQ). On Wed, 23 Mar 2005

Re: [Rd] pch=NA (PR#7737)

2005-03-22 Thread Prof Brian Ripley
Please check the current sources (R-2.1.0 alpha). pch = NA is now documented under points(), where all the other values are, and pch= is now equivalent. On Tue, 22 Mar 2005 [EMAIL PROTECTED] wrote: I'd like to suggest changes to three help pages, regarding the use of pch=NA to suppress plotting

Re: Alpha releases Re: [Rd] trouble building r-devel

2005-03-22 Thread Prof Brian Ripley
On Tue, 22 Mar 2005, Peter Dalgaard wrote: [EMAIL PROTECTED] writes: I haven't been able to build yesterday's R-devel (or, as a test, R-devel_2005-03-11) on Windows XP. The error message I'm getting is to do with 'arithmetic.c', as shown below. Apropos: The release process for 2.1.0 has now

Re: [Rd] --with-readline=yes

2005-03-22 Thread Prof Brian Ripley
On Sun, 20 Mar 2005, Paul Gilbert wrote: I think --with-readline=yes is a new default, but it does not seem to be mentioned in the installation changes of NEWS. (I could easily be mistaken on this.) You could: o R is now linked against ncurses/termlib/termcap only if readline is

RE: [Rd] Compiling R Embedded examples

2005-03-22 Thread Prof Brian Ripley
On Tue, 22 Mar 2005, Mauron Laurent (KETR 31) wrote: Thanks for your suggestion. I re-compiled R-2.0.1 with gcc 3.3.2. but got exactly the same problem. (Which problem is not described in this message and the stated URL is invalid. Searching suggests it is related to MAIN__.) I am very puzzled

RE: [Rd] Compiling R Embedded examples

2005-03-22 Thread Prof Brian Ripley
Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: 22 March 2005 16:52 To: Mauron Laurent (KETR 31) Cc: 'r-devel@stat.math.ethz.ch' Subject: RE: [Rd] Compiling R Embedded examples On Tue, 22 Mar 2005, Mauron Laurent (KETR 31) wrote: Thanks for your suggestion. I re-compiled R-2.0.1

Re: [Rd] documentation on seek *does not* need update

2005-03-22 Thread Prof Brian Ripley
On Tue, 22 Mar 2005, Vadim Ogranovich wrote: Hi, I wondered how seek() deals with large (2GB) files. The help says that the 'where' arg should be an integer, while the release notes for 2.0.0 say oseek() on connections now accepts and returns a double for the file position. This

Re: [Rd] make install fails with makeinfo 4.7

2005-03-22 Thread Prof Brian Ripley
On Tue, 22 Mar 2005, Roger D. Peng wrote: When I build R-devel (or the alpha snapshots) on a system without makeinfo = 4.7, I get a warning about not being able to build HTML/Info help pages after running 'configure' (but 'make' runs smoothly and there are no errors). However, when I run 'make

Re: [Rd] make install fails with makeinfo 4.7

2005-03-22 Thread Prof Brian Ripley
unequivocal to me. -roger Prof Brian Ripley wrote: On Tue, 22 Mar 2005, Roger D. Peng wrote: When I build R-devel (or the alpha snapshots) on a system without makeinfo = 4.7, I get a warning about not being able to build HTML/Info help pages after running 'configure' (but 'make' runs smoothly

Re: [Rd] forcing R CMD COMPILE

2005-03-22 Thread Prof Brian Ripley
On Wed, 23 Mar 2005, Pedro Ribeiro de Andrade Neto wrote: I am developing a package with a lot of C++ code, and I have a question about R CMD COMPILE. As I can see, when the package's Makefile calls R CMD COMPILE foo.cpp Why does your package have a Makefile? And why is it calling COMPILE and

Re: [Rd] .Call - applying setAttrib(x, R_DimSymbol, s) to a matrix being an element of a list

2005-03-17 Thread Prof Brian Ripley
On Thu, 17 Mar 2005, Oleg Sklyar wrote: Dear Simon, you gave us only a fragment of your code, so I can only guess what the problem is: What is imgSize? The behavior you describe seems as if you re-using the imgSize SEXP in all elements. AFAIR in your case setAttrib doesn't copy the value, so you

Re: [Rd] authentication support question

2005-03-17 Thread Prof Brian Ripley
On Wed, 16 Mar 2005, Vincent Carey 525-2265 wrote: I need to obtain username and password strings from the user of a certain process running in R. scan() can be used to get the strings, but the password will be echoed back as the user types it. Is there any way to load keyboard input to a

Re: [Rd] minor iconvlist() bug in r-devel

2005-03-16 Thread Prof Brian Ripley
That file is created by $(top_builddir)/library/$(pkg)/iconvlist: most @iconv -l $@ 2 /dev/null || touch $@ What version of iconv -l is that produces such a list? That in glibc 2.3.4 does not produce the header when redirected. Your fix is not safe: iconv in libiconv produces items

Re: [Rd] minor iconvlist() bug in r-devel

2005-03-16 Thread Prof Brian Ripley
On Wed, 16 Mar 2005, Deepayan Sarkar wrote: On Wednesday 16 March 2005 10:11, Prof Brian Ripley wrote: That file is created by $(top_builddir)/library/$(pkg)/iconvlist: most @iconv -l $@ 2 /dev/null || touch $@ What version of iconv -l is that produces such a list? That in glibc 2.3.4

Re: [Rd] minor iconvlist() bug in r-devel

2005-03-16 Thread Prof Brian Ripley
On Wed, 16 Mar 2005, Deepayan Sarkar wrote: On Wednesday 16 March 2005 10:57, Prof Brian Ripley wrote: On Wed, 16 Mar 2005, Deepayan Sarkar wrote: On Wednesday 16 March 2005 10:11, Prof Brian Ripley wrote: That file is created by $(top_builddir)/library/$(pkg)/iconvlist: most @iconv -l

RE: Write Barrier: was: [Rd] function-like macros undefined

2005-03-16 Thread Prof Brian Ripley
On Wed, 16 Mar 2005, Vadim Ogranovich wrote: My actual problem was with the RAW() macro, it is not available as a function. I used INTEGER as an illustration because it was in the same group of macros, I guess I shouldn't have. It *is* available in R-devel, soon to be 2.1.0: the function was

  1   2   3   4   5   6   7   >