Re: [Rd] longint

2018-08-15 Thread Brian Ripley
> On 15 Aug 2018, at 12:48, Duncan Murdoch wrote: > >> On 15/08/2018 7:08 AM, Benjamin Tyner wrote: >> Hi >> In my R package, imagine I have a C function defined: >> void myfunc(int *x) { >>// some code >> } >> but when I call it, I pass it a pointer to a longint instead of a >

Re: [Rd] Package integrity check via SHA256 or OpenPGP possible?

2015-10-15 Thread Brian Ripley
> On 15 Oct 2015, at 08:11, Philip Gillißen wrote: > > Dear list, > > I'm using R in a corporate environment and was interested how R checks > integrity of packages during an installation. > I saw (and verified my suspicion in the code[1]) that the verification purely > relies on MD5. >> Fro

Re: [Rd] Outdated information in regex.Rd

2015-11-19 Thread Brian Ripley
On 19 Nov 2015, at 10:05, Martin Maechler wrote: >> Mikko Korpela >>on Wed, 18 Nov 2015 11:35:14 +0200 writes: > >> The NEWS for R-devel has the following item: >>> The previously included versions of zlib, bzip2, xz and PCRE have >>> been removed, so suitable external (usually sy

Re: [Rd] R and Visual Studio

2017-09-20 Thread Brian Ripley
> On 19 Sep 2017, at 11:53, lille stor wrote: > > Hi, > > I am trying to build R using Visual Studio 2010 but without success. My > question is if it possible build R with this compiler anyway? It has been done, in the distant past. However, none of the attempts produced a build which coul

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread Brian Ripley
> On 11 May 2015, at 16:00, peter dalgaard wrote: > > >> On 11 May 2015, at 15:53 , Duncan Murdoch wrote: >> >> On 11/05/2015 9:35 AM, Tal Galili wrote: >>> Hi Duncan, >>> Thank you for the clarification. :) >>> >>> I ended up removing these files from being scanned in the updated version

Re: [Rd] dump (PR#9282)

2006-10-09 Thread Brian Ripley
This is not an error in R: the later format is more correct R. Those packages have made unwarranted assumptions about the format produced by dump(), so please reports bugs in them to their maintainers. On Mon, 9 Oct 2006, [EMAIL PROTECTED] wrote: > Full_Name: Ricardo Ehlers > Version: 2.4.0 >

Re: [Rd] c.factor

2006-11-15 Thread Brian Ripley
On Tue, 14 Nov 2006, Bill Dunlap wrote: > On Tue, 14 Nov 2006, Prof Brian Ripley wrote: > >> Well, R has managed without a factor method for c() for most of its decade >> of existence (not that it originally had factors as we know them). >> >> I would argue that

Re: [Rd] tiny typo in ?formals

2006-12-22 Thread Brian Ripley
Thanks! I took the opportunity to run aspell over all the help pages, so this turned into a few dozen small corrections. On Thu, 21 Dec 2006, Ben Bolker wrote: > > in 2.4.1: > > under Value, > > "The replacment [sic] form sets the formals of a function ..." > > -- Brian D. Ripley,

[Rd] Trailing message on R CMD BATCH

2007-01-10 Thread Brian Ripley
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] "package:grDevices" "package:utils" "package:dat

Re: [Rd] wine and build difference between R.2.4.0 and R 2.4.1 windows binaries?

2007-01-12 Thread Brian Ripley
On Fri, 12 Jan 2007, Hin-Tak Leung wrote: > Prof Brian Ripley wrote: >> On Fri, 12 Jan 2007, Hin-Tak Leung wrote: >> >>> I'd like to know one thing though - was there any specific reason for >>> the mingw upgrade after 2.4.0, or was it just a routine >&g

Re: [Rd] is it necessary to always register C routines with R_registerRoutines?

2007-01-24 Thread Brian Ripley
No, in answer to the subject line. On Tue, 23 Jan 2007, Vladimir Eremeev wrote: > I am writing bindings to the neural network simulator SNNS. > At present I have used only .C interface, now I'm studying .Call interface. > > I have adapted the example from page 77 of r-exts.pdf, however, it crashe

Re: [Rd] Exiting R and package detachment?

2005-06-10 Thread Prof Brian Ripley
Note that you can terminate R via q() without running .Last, and indeed how R is terminated is up to the front-end in use. So the answer to > is there away to assure that a package is detached when R quits? is `No'. On Fri, 10 Jun 2005, Henrik Bengtsson wrote: > Hi, > > is there away to assur

Re: [Rd] Exiting R and package detachment?

2005-06-10 Thread Prof Brian Ripley
On Fri, 10 Jun 2005, Henrik Bengtsson wrote: > Prof Brian Ripley wrote: >> Note that you can terminate R via q() without running .Last, and indeed how >> R is terminated is up to the front-end in use. So the answer to >> >>> is there away to assure that a pa

Re: [Rd] R 2.1.1 slated for June 20

2005-06-10 Thread Prof Brian Ripley
On Fri, 10 Jun 2005, Peter Dalgaard wrote: > The next version of R will be released (barring force majeure) on June > 20th, with beta versions available starting Monday. > > Please do check them on your system *before* the release this time... Some things which it would be particularly helpful to

Re: [Rd] attach and object masking

2005-06-10 Thread Prof Brian Ripley
On Fri, 10 Jun 2005, Martyn Plummer wrote: > The library() function prints an information message when objects are > masked on the search path by (or from) a newly attached package. The > attach() function, however, doesn't. Is there a good reason for this? > I have adapted the machinery for che

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

2005-06-11 Thread Prof Brian Ripley
Thanks for the translations. I am having some trouble with charsets (the installer has to be built from files containing about 6 different ones). The version now in is your first one. I will try to update it by Monday, but I need to reboot my Windows machine every time I change languages so th

Re: [Rd] memory allocation problem under linux

2005-06-13 Thread Prof Brian Ripley
You keep on sending similar messages -- this is at least the third. You need to find out where the segfault is occurring using gdb, and you have not told us. Very likely this results from some previous memory corruption in your compiled code: try valgrind (see `Writing R Extensions') to try to

Re: [Rd] Error in load(zfile, envir = envir) : input has been corrupted, with LF replaced by CR

2005-06-13 Thread Prof Brian Ripley
On Mon, 13 Jun 2005, Søren Højsgaard wrote: I am trying to build a package binary, and get the message below. Can anyone point me to a solution to that problem. As it says, a save file has been corrupted, probably one of your data files with extension .rda. Try loading them yourself to see.

[Rd] Possible solution to missing title bars etc on X11 windows

2005-06-13 Thread Prof Brian Ripley
There have been various reports of missing title bars, buttons etc from X11() windows under certain window managers. I've never seen this, but Ei-j Nakama encountered it and has supplied a patch which changes the way hinting is done. I've put this into R-devel, and would be grateful to know if

Re: [Rd] R 2.1.1 slated for June 20

2005-06-14 Thread Prof Brian Ripley
at 14:57 +0100, Prof Brian Ripley wrote: >> On Fri, 10 Jun 2005, Peter Dalgaard wrote: >> >>> The next version of R will be released (barring force majeure) on June >>> 20th, with beta versions available starting Monday. >>> >>> Please do check

Re: [Rd] R 2.1.1 slated for June 20

2005-06-14 Thread Prof Brian Ripley
Our preference is F77 compilers over F9x ones, as the lists Simon showed reflects - we decided to prefer F95 to F90 in future, though. My experience is that g77 from gcc-3.4.x is preferable to gfortran. As I said earlier, once gcc-4.0.1 is released (and so R builds with a released version of gcc

Re: [Rd] write.table confused by rownames/colnames (PR#7941)

2005-06-15 Thread Prof Brian Ripley
It seems that you are the one who is confused: the help file says By default there is no column name for a column of row names. If 'col.names = NA' a blank column name is added. If there are no row names, there is no point in adding a blank column name for them. So what did *you* t

Re: [Rd] a bug in glm.fit() (PR#7947)

2005-06-15 Thread Prof Brian Ripley
What is the bug? This is the same model: the `intercept' term affects the null model, not the actual model. Just look at all the output. On Thu, 16 Jun 2005 [EMAIL PROTECTED] wrote: > glm.fit() gave me the same AIC's regardless of TRUE or FALSE intercept option. > >> myX <- as.matrix(1:10) >>

Re: [Rd] R 2.1.1 slated for June 20

2005-06-16 Thread Prof Brian Ripley
On Thu, 16 Jun 2005, Martyn Plummer wrote: > On Tue, 2005-06-14 at 17:07 -0500, Marc Schwartz wrote: >> On Tue, 2005-06-14 at 23:52 +0200, Peter Dalgaard wrote: >>> Marc Schwartz <[EMAIL PROTECTED]> writes: >>> >>>> On Fri, 2005-06-10 at 14:57 +0100,

Re: [Rd] R 2.1.1 slated for June 20

2005-06-16 Thread Prof Brian Ripley
On Thu, 16 Jun 2005, Marc Schwartz wrote: >> From what I can tell, there is only one reason that the FC-E R RPM is > available as a shared library: > > Tom had made the gnomeGUI CRAN package available as an RPM in FC-E, > which of course requires the above: > > http://fedoraproject.org/extras/4/i3

Re: [Rd] R Include File Guards

2005-06-17 Thread Prof Brian Ripley
What is the `bug' here which you suggest reporting? We have already established that leading underscores are NOT `illegal', just reserved and possibly ineffective according to the C99 standard (although we don't have any evidence of that being followed by an actual compiler). Given that the sys

Re: [Rd] loess returns different standard errors for identical models (PR#7956)

2005-06-18 Thread Prof Brian Ripley
I've seen many similar things in a report from valgrind. But they went away when compiled without optimization: it seems optimization often does a fetch one element off the end of an array when attempting to keep the pipelines full. I'd start by re-running the valgrind tests without optimizat

[Rd] Use of PACKAGE= argument in .C etc calls

2005-06-20 Thread Prof Brian Ripley
As from R 2.0.0, R CMD check has not flagged .C etc calls without a PACKAGE argument in packages with a namespace. Unfortunately that was based on too optimistic assumptions. 1) The mechanism to find the DLL from the namespace only works if the DLL is declared via a useDynLib declaration in NA

Re: [Rd] capabilities() and non-catchable messages

2005-06-21 Thread Prof Brian Ripley
Do you have DISPLAY set pointing to an X11 server you do not have access to? It seems so. The solution is to set your X11 settings properly. This is coming from Xlib (XOpenDisplay, I believe) and so is not an R error or warning, and is not output on an R connection but on a C file. On Mon,

Re: [Rd] efficiency of sample() with prob.

2005-06-22 Thread Prof Brian Ripley
You might recall the message R is a collaborative project with many contributors. We suggest that you take up your own suggestion, research this area and offer the R project the results of your research for consideration as your contribution. It seems likely that in sample(x, size, replac

Re: [Rd] Unattended Windows installation of R modified with v2.1.1

2005-06-23 Thread Prof Brian Ripley
Well, rw2011.exe does install the default set of components for me, and nothing has changed in the last few days. Note that Inno Setup does pick up default options from a previously installed version of R, so that might be the explanation. (It might even do so if one had already been uninstalle

Re: [Rd] Rgui bug in Windows: leftover download dialog (PR#7964)

2005-06-23 Thread Prof Brian Ripley
On Thu, 23 Jun 2005 [EMAIL PROTECTED] wrote: > On 6/22/2005 4:15 PM, [EMAIL PROTECTED] wrote: >> In Windows, if a download is interrupted (by switching to the console >> window and hitting ESC), the download status dialog can be left >> onscreen, with no apparent way to get rid of it (other than s

Re: [Rd] efficiency of sample() with prob.

2005-06-23 Thread Prof Brian Ripley
`Research' involves looking at all the competitor methods, devising a near-optimal strategy and selecting amongst methods according to that strategy. It is not a quick fix we are looking for but something that will be good for the long term. On Thu, 23 Jun 2005, Bo Peng wrote: >> We suggest th

Re: [Rd] Embedding R in C application

2005-06-24 Thread Prof Brian Ripley
You need to read the correct part of the manual (and you need a manual from R >= 2.1.0). You are writing a front-end, so read * Linking GUIs and other front-ends to R:: as Duncan suggested. Your comments are not at all consistent with what I wrote there. On Fri, 24 Jun 2005 [EMAIL PROTECTED]

Re: [Rd] Unused argument "na.action" to pairs.formula

2005-06-27 Thread Prof Brian Ripley
You are correct: now fixed in R-patched and R-devel. I have fixed this once before, so that fix must have got lost. BTW, the sources have an explanatory comment you don't see by listing the function in R: it is necessary to set m$na.action explicitly because match.call only includes supplied ar

Re: [Rd] Error in compiling R

2005-06-28 Thread Prof Brian Ripley
On Tue, 28 Jun 2005 [EMAIL PROTECTED] wrote: > When compiling R on Windows, I am getting the following error. Does > anyone have any suggestions? Yes, it seems you have corrupted the files during unpacking. Did you use the version of tar in the Rtools.zip? Whatever you used to unpack the fil

Re: [Rd] Error in compiling R

2005-06-28 Thread Prof Brian Ripley
On Tue, 28 Jun 2005 [EMAIL PROTECTED] wrote: > Thanks, I got this resolved. Now to embed the R.dll into a C > application, do I need to compile R with any shared library flags set? Not for Windows, but all the details are in the `Writing R Extensions' manual. You proabably don't want to use R.

Re: [Rd] Running ./tools/rsync-recommended through a proxy

2005-06-29 Thread Prof Brian Ripley
Googling for 'squid rsync' suggests that squid has to be explicitly configured to allow rsync, e.g. http://www.sai.msu.su/~er/rsync_proxy.html Why not ask the proxy administrators if they have rsync configured? On Tue, 28 Jun 2005, Douglas Bates wrote: > My computers at my office will no longe

Re: [Rd] write.csv suggestion

2005-06-29 Thread Prof Brian Ripley
The help page says By default there is no column name for a column of row names. If 'col.names = NA' and 'row.names = TRUE' a blank column name is added. This can be used to write CSV files for input to spreadsheets. 'write.csv' and 'write.csv2' provide convenience

Re: [Rd] write.csv suggestion

2005-06-30 Thread Prof Brian Ripley
eemed suboptimal (to me) because one would have to read the > code to know that the col.names = TRUE option was not being passed along > to write.table (as I expected). > > Best, > Robert > > -Original Message- > From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] > Sent:

Re: [Rd] C/C++ namespaces

2005-07-01 Thread Prof Brian Ripley
On Fri, 1 Jul 2005, Oleg Sklyar wrote: > Dear community, > > this is just a suggestion, but might be useful for the following R > releases. It might be useful for future suggestions if you read the relevant manual before posting. The developers are way ahead of you on this one. > I was program

Re: [Rd] C code in packages with complex arguments/returned value

2005-07-01 Thread Prof Brian Ripley
Search for uses of Rcomplex in package source code. The only packages on CRAN which use it are ifs and rimage. On Fri, 1 Jul 2005, Robin Hankin wrote: > Hi > > one of my packages has a severe bottleneck at a particular function > and I > suspect that replacing the R code with C code would spee

Re: [Rd] C code in packages with complex arguments/returned value

2005-07-01 Thread Prof Brian Ripley
On Fri, 1 Jul 2005, Kurt Hornik wrote: >>>>>> Robin Hankin writes: > >> Professor Ripley >> On Jul 1, 2005, at 02:58 pm, Prof Brian Ripley wrote: > >>> Search for uses of Rcomplex in package source code. The only >>> packages on CRAN whic

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

2005-07-11 Thread Prof Brian Ripley
On Mon, 11 Jul 2005, Gorjanc Gregor wrote: > Hello! > > I have just read mails in thread > > > > about problems with Cygwin and Rtools. I had the same problems and kept > just the newest cygwin1.dll and things seem OK now. However I > current

Re: [Rd] Adjusted p-values with TukeyHSD (patch)

2005-07-15 Thread Prof Brian Ripley
We will incorporate a version of this in R-devel and hence 2.2.0. A bit more work needs to be done on printing: whereas the existing three columns are in comparable units, the p values are not and so get printed to silly accuracies (as can be seen in your example). You also need to explain what

Re: [Rd] [R] Passing character strings from C code to R

2005-07-15 Thread Prof Brian Ripley
Reading the posting guide would have shown you that R-help was quite inappropriate, so I have moved this to R-devel. allocString does not allocate a character vector, which is what you want to set as an attribute (not a 'string', whatever that is). (It creates a CHARSXP, a type that should not

Re: [Rd] Minor "bug" in source()

2005-07-19 Thread Prof Brian Ripley
I think at least a warning is appropriate here (and also for a URL), so have modified the code to have one in each case. There is a reason why the chdir code is later, after the parsing, for it was thought more important to get an error from parsing than from failing to chdir. On Tue, 19 Jul 2

[Rd] Regexp update in R-devel

2005-07-19 Thread Prof Brian Ripley
Following the report of Henrik Bengtsson which was traced by Duncan Murdoch to a bug in the regexp code from glibc-2.3.3 in R, I have updated the code in R-devel to -2.3.5. This had that bug fixed and about 700 other changes, most of which seem to be bug fixes. My tests on Linux (including of

Re: [Rd] WinXP GUI problem (PR#8018)

2005-07-20 Thread Prof Brian Ripley
Yes, the author of that part of the editor code forgot a call to setuserfilter, although he has one for opening scripts. I am about to add one. On Wed, 20 Jul 2005 [EMAIL PROTECTED] wrote: > Sampo Etelavuori wrote: > >> Lainaus Uwe Ligges <[EMAIL PROTECTED]>: >> >> >>> [EMAIL PROTECTED] wrote:

Re: [Rd] [R] sequence()

2005-07-22 Thread Prof Brian Ripley
R-help is not the list for R development questions: you didn't want help did you? --> moved to R-devel. I do wonder why > sequence(c(0,-1)) [1] 1 0 1 0 -1 is considered useful. Given that the definition seems flawed and I could not find any uses of this function in any package my reaction

Re: [Rd] Rmath library problems

2005-07-25 Thread Prof Brian Ripley
On Mon, 25 Jul 2005, Anders Brix Jensen wrote: > Has anybody successfully called the Rmath library from C using the MS > Visual Studio compiler (I am using Visual Studio 6.0)? > > I have compiled the Rmath library using gcc, and the 'test.c' program > (which makes a call to qnorm) works fine when

Re: [Rd] Solaris Installation assstance

2005-07-25 Thread Prof Brian Ripley
We need to see what happened prior to that message: plaes give the previous 20 lines of output. We do know R 2.1.1 works on Solaris 2.8 out of the box: the see the comments in the R-admin manual. For example, what compilers are you using? What make? On Mon, 25 Jul 2005, Givens, Jimmie D. wrot

Re: [Rd] density() fails if x contains Inf or -Inf (PR#8033)

2005-07-26 Thread Prof Brian Ripley
The underlying problem here BTW is that sum is promoting logical to double not integer, unlike the rest of its Summary group. This is an unintentional side effect of a bug fix a while back, and I have now corrected it. On Mon, 25 Jul 2005 [EMAIL PROTECTED] wrote: > Full_Name: Michael Beer > V

Re: [Rd] docu buglets for ar and friends

2005-07-26 Thread Prof Brian Ripley
On Mon, 25 Jul 2005, Kjetil Brinchmann Halvorsen wrote: > This is R2.1.1 > > The documantation opened by > ?ar, section for returned value, does not document all the components of > the returned > list. In addition to the 13 components documented, it also contains the > component > $frequency > Th

Re: [Rd] R 2.1.1: read.table processes C-style escapes (PR#8037)

2005-07-27 Thread Prof Brian Ripley
This seems of historical interest only. allowEscapes is currently (in R-devel, where development happens) an argument to read.table. We do ask people to check the current version! On Wed, 27 Jul 2005, Gordon Smyth wrote: > >> To: [EMAIL PROTECTED] >> From: Gordon Smyth <[EMAIL PROTECTED]> >> S

Re: [Rd] Error registering finalizer

2005-07-27 Thread Prof Brian Ripley
On Tue, 26 Jul 2005, Paul Roebuck wrote: > On Tue, 26 Jul 2005, Paul Roebuck wrote: > >> What exactly is a reference object? I'm getting this error >> message attempting to register a finalizer: >> >> can only weakly reference/finalize reference objects > > Still don't have an explanation

Re: [Rd] R 2.1.1: read.table processes C-style escapes (PR#8037)

2005-07-27 Thread Prof Brian Ripley
On Wed, 27 Jul 2005, Gordon Smyth wrote: > Thanks for the reply. Apologies for checking only R patched rather than > R-devel. > > I guess that this means that someone must have a use for allowEscapes=TRUE > when read reading a file in table format into a data frame. It is hard to > imagine. Oc

[Rd] Order of options in options()

2005-07-29 Thread Prof Brian Ripley
As the number of options has grown, I have found it harder and harder to spot if a particular option is set, as well as to find descriptions in the help file. Currently options() lists them in the order they were first set. I would find it much easier if the options were listed in alphabetical

Re: [Rd] R_BATCHSAVE setting in config.site

2005-07-31 Thread Prof Brian Ripley
R is case-sensitive! 'batch mode' does not refer to using the utility `R CMD BATCH' (which you called 'BATCH mode' but is not actually running R but running a utility that runs R), and which is documented to set --save. Something like R < input.R is not interactive use, and in Unix parlance is

Re: [Rd] valgrind complains about regex.c (PR#8043)

2005-08-01 Thread Prof Brian Ripley
Did you compile R without optimization? Such reads are often the result of read-aheads produced by the optimizer in an attempt to keep pipelines full (and are harmless). On an un-optimized build of R I am unable to reproduce this. (I also was unable to reproduce it on my optimized build of 2.

Re: [Rd] valgrind complains about regex.c (PR#8043)

2005-08-02 Thread Prof Brian Ripley
t one, optimized or not. On Tue, 2 Aug 2005, Duncan Murdoch wrote: > Prof Brian Ripley wrote: >> Did you compile R without optimization? Such reads are often the result of >> read-aheads produced by the optimizer in an attempt to keep pipelines full >> (and are harmless). > &

Re: [Rd] call fortran in R

2005-08-04 Thread Prof Brian Ripley
On Thu, 4 Aug 2005, Duncan Murdoch wrote: Sébastien Durand wrote: At the beginning I was not using symbol.For(), and whatever I add a "_" or not e.g.: .Fortran("wrapper",... I get the same error You could look at symbol.For("wrapper"), and see if the name it prints is exported from your .s

Re: [Rd] call fortran in R

2005-08-04 Thread Prof Brian Ripley
So the problem IS that your symbol is not exported by your shared object, and you need advice on the tools you are using (not R). On Thu, 4 Aug 2005, Sébastien Durand wrote: Ok, Dear all, I have state previously, I am using mac os X tiger on a g5, using the last version of R 2.1.1 When I ty

Re: [Rd] object.size() bug?

2005-08-05 Thread Prof Brian Ripley
On Fri, 5 Aug 2005, Duncan Murdoch wrote: > On 8/5/2005 8:39 AM, Roger D. Peng wrote: >> Would it make sense for 'object.size()' to do the same thing for >> external pointers as it does for environments? > > I would think so. For those who haven't looked, this returns the size > of the SEXP for t

[Rd] Tests of gcc-4.0.1

2005-08-05 Thread Prof Brian Ripley
I had promised to report on tests of gcc-4.0.1, and have now tracked down all the outstanding issues. I am comparing gcc3 (gcc-3.4.4 including g77) and gcc4 (gcc-4.0.1 including gfortran) on FC3, both i686 and x86_64 (the latter both 64-bit and 32-bit builds). All compiled from the sources (th

Re: [Rd] Tests of gcc-4.0.1

2005-08-06 Thread Prof Brian Ripley
On Fri, 5 Aug 2005, Kjetil Brinchmann Halvorsen wrote: > The fortran left in asypow does things (noncentral chisquare distribution) > which are available > at the R level. If problem if with the fortran I remove it completely. Yes, thank you that would be a good idea. I checked, and it is asypow

[Rd] gfortran and BLAS on AMD64 Linux

2005-08-09 Thread Prof Brian Ripley
Linux users are used to all compilers using the same linkage conventions (those of pcc) whereas users of other platforms are used to the idea that code from different compilers cannot in general be mixed. This is no longer true for gfortran on AMD64. Given a double complex function like

Re: [Rd] Reading a repeated fixed format

2005-08-10 Thread Prof Brian Ripley
On Wed, 10 Aug 2005, Douglas Bates wrote: > The Harwell-Boeing format for exchanging matrices is one of those > lovely legacy formats that is based on fixed-format Fortran > specifications and 80 character records. (Those of you who don't know > why they would be 80 characters instead of, say, 6

Re: [Rd] parse():ing a unclosed string

2005-08-14 Thread Prof Brian Ripley
On Sun, 14 Aug 2005, Henrik Bengtsson wrote: > When parse():ing R code from *file* with a unclosed string, that is, a > string that has an open quoation mark, but not a ending one, the string > seems to be closed automagically. Is this a "bug"? It's clearly intentional from the comments in the s

Re: [Rd] documentation for eval() typo

2005-08-14 Thread Prof Brian Ripley
Thank you. It would be easier to deal with thes reports if in future you could provide a patch against the source file (here eval.Rd). On Sun, 14 Aug 2005, Paul Roebuck wrote: >> It is equivalent to 'evalq' except the its default -- Brian D. Ripley, [EMAIL PROTECTED] Professo

Re: [Rd] Patches (was Re: documentation for eval() typo)

2005-08-15 Thread Prof Brian Ripley
On Mon, 15 Aug 2005, Paul Roebuck wrote: > On Sun, 14 Aug 2005, Prof Brian Ripley wrote: > >> On Sun, 14 Aug 2005, Paul Roebuck wrote: >> >>>> It is equivalent to 'evalq' except the its default >> >> It would be easier to deal with thes repor

Re: [Rd] About R variable references

2005-08-17 Thread Prof Brian Ripley
R never moves objects in memory, but it may garbage collect them. What is not clear to me is that you can guarantee that the objects you pass in are not copies subject to garbage collection, but then I don't know how you are calling your functions. A way to make sure that your pointers remain

Re: [Rd] Questions on "\" vs "/" on Windows

2005-08-20 Thread Prof Brian Ripley
On Sat, 20 Aug 2005, Seth Falcon wrote: > A recent thread on R-help reminded me of some questions I have > regarding the path separator on Windows. > > The thread: [R] using paste and "\" to create a valid filename > > The question: > > What are the use-cases where "\" is required for paths passed

Re: [Rd] bizarre signif stars in Sweave latex

2005-08-21 Thread Prof Brian Ripley
What locale is this? My guess is that this is a UTF-8 locale. If so, you need to tell latex the input is in UTF-8, which you can do in the current LaTeX release (you need 2003/12/01). As I recall you do this by \usepackage[utf8]{inputenc} On Sun, 21 Aug 2005, Charles Geyer wrote: > OK. I g

Re: [Rd] Internationalization questions

2005-08-21 Thread Prof Brian Ripley
On Sun, 21 Aug 2005, John Fox wrote: > Dear R-devel list members: > > I have two internationalization questions, related to questions that I posed > previously. These pertain to Windows (I've tried under Win XP but assume the > issue is more general) and R 2.1.1 patched and 2.2.0 devel. > > (1) I'

Re: [Rd] Implementing a single-precision class with raw

2005-08-22 Thread Prof Brian Ripley
On Fri, 19 Aug 2005, Colin A. Smith wrote: > A package that I develop (xcms) sometimes needs to read and process > vectors several hundreds of megabytes in size. (They only represent > parts of a large data sets which can approach nearly 100GB.) > Unfortunately, R sometimes hits the 2GB memory lim

Re: [Rd] is.numeric (PR#8067)

2005-08-22 Thread Prof Brian Ripley
Please do read the help page before firing off a bug report, as we do ask in several places. It says 'is.numeric' returns 'TRUE' if its argument is of type numeric or type integer and 'FALSE' otherwise. and > typeof(NaN) [1] "double" (numeric and double are synonyms for types). W

Re: [Rd] Internationalization questions

2005-08-22 Thread Prof Brian Ripley
On Mon, 22 Aug 2005, John Fox wrote: Dear Brian, -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: 22 août 2005 01:47 To: John Fox Cc: r-devel@stat.math.ethz.ch Subject: Re: [Rd] Internationalization questions On Sun, 21 Aug 2005, John Fox wrote: Dear R

Re: [Rd] Fetching Warning Messages

2005-08-22 Thread Prof Brian Ripley
Please read the help page on options("warn") and see what warnings() does. (I am pretty sure you have asked this and been told before.) There should not be an object called last.warning in your example. On Mon, 22 Aug 2005, Nikhil Shah wrote: > Hi, > >I am facing one problem of fetching R w

Re: [Rd] Package tests: best practices

2005-08-22 Thread Prof Brian Ripley
On Mon, 22 Aug 2005, hadley wickham wrote: > I'm writing some tests for a package and I have a few questions > regarding best practices. I've read "tests subdirectory" paragraph in > writing R extension, but I'm left wanting more. > Firstly, can I assume that the document root will always be set

Re: [Rd] Functions with the same name: best practices

2005-08-22 Thread Prof Brian Ripley
It depends on the example, as you might guess. profile() is a generic function in stats. Namespaces are not going to help there, as it is normally called by users (it is also called by some confint() methods, and that will be protected by namespaces). For functions intended to be used by end-u

Re: [Rd] Which TEX for Wiindows

2005-08-23 Thread Prof Brian Ripley
On Tue, 23 Aug 2005, Ales Ziberna wrote: > I am intending to instal TEX (for use with R - building, checking packages) > on my WinXP SP2. I read that fptex is recomended, however > http://www.fptex.org/ is not not available. Is MiKTeX the next best choice? Please look at the current documentation

Re: [Rd] compile R with Portland Group compiler

2005-08-23 Thread Prof Brian Ripley
regex.c is not our code, but from glibc. Could you please try R-devel instead, which has a later version of glibc. Since 2.1.1 is not longer part of the developement, we cannot help with that, but we can help wih R-devel. I see the later regex.c does use prototypes. But bitset is an integer

Re: [Rd] Implementing a single-precision class with raw (now integer)

2005-08-24 Thread Prof Brian Ripley
On Wed, 24 Aug 2005, Colin A. Smith wrote: On Aug 22, 2005, at 3:38 , Prof Brian Ripley wrote: Unfortunately, R sometimes hits the 2GB memory limit of Win32. The rw-FAQ explains why that is _not_ the limit! Sorry to be uninformed, I see from the Microsoft documentation that the limit can

Re: [Rd] compile R with Portland Group compiler

2005-08-24 Thread Prof Brian Ripley
C -E > -I/usr/pgi/linux86-64/6.0/include -I/usr/pgi/linux86-64/6.0/include/CC > conftest.cc > configure:5925: $? = 0 > configure:5957: /usr/pgi/linux86-64/6.0/bin/pgCC -E > -I/usr/pgi/linux86-64/6.0/include -I/usr/pgi/linux86-64/6.0/include/CC > conftest.cc > "conftest

Re: [Rd] Fortran (Was: Re: [R] linux compile options (64-bit))

2005-08-26 Thread Prof Brian Ripley
On Fri, 26 Aug 2005, Göran Broström wrote: On Tue, Aug 02, 2005 at 12:12:08PM +0200, Göran Broström wrote: On Tue, Aug 02, 2005 at 10:58:31AM +0100, Prof Brian Ripley wrote: The problems we are seeing with gcc4 are mainly (but not entirely) with gfortran: it seems not quite ready for

Re: [Rd] Functions with the same name: best practices

2005-08-26 Thread Prof Brian Ripley
On Fri, 26 Aug 2005, hadley wickham wrote: > Thanks to all of you for your advice. I will read up on namespaces and > start using them to "protect" my internal function from name clashes > with other packages, and endeavour to my public functions unique > names. > > I know other languages (eg. pyt

Re: [Rd] RFC: "loop connections"

2005-08-27 Thread Prof Brian Ripley
On Sat, 27 Aug 2005 [EMAIL PROTECTED] wrote: > Gabor Grothendieck <[EMAIL PROTECTED]> wrote: >> OK. I guess you want one of the core people to respond but in the One has. >> interim can you explain the terminology "loop"? >> Also, do you have any prototypical applications in mind? > > "loop" is

Re: [Rd] Free-form to fixed-form Fortran

2005-08-27 Thread Prof Brian Ripley
On Sat, 27 Aug 2005, Ales Ziberna wrote: > Thank you for your reply! > > I know I can use g77 with -ffree-form. However, I do not know how to make a > package so that when others would build a package, these subrutines would > compile with "-ffree-form". I heard of "makevars" and flags, however I

Re: [Rd] Memory leakage/violation?

2005-08-27 Thread Prof Brian Ripley
On Sat, 27 Aug 2005, Uwe Ligges wrote: > Thomas Lumley wrote: >> I can't reproduce this on R2.2.0dev on Windows XP (in a few hundred >> tries), or running under Valgrind on AMD64 Linux (in four or five tries). > > Cannot reproduce either (using R-2.1.1 and an older version of R-devel, > though). M

Re: [Rd] wchar and wstring.

2005-08-27 Thread Prof Brian Ripley
On Fri, 26 Aug 2005, James Bullard wrote: > Hello all, I am writing an R interface to some C++ files which make use > of std::wstring classes for internationalization. Previously (when I > wanted to make R strings from C++ std::strings), I would do something > like this to construct a string in R

Re: [Rd] Writing R-extensions

2005-08-27 Thread Prof Brian Ripley
On Sat, 27 Aug 2005, Berwin A Turlach wrote: > G'day all, > > After reading through "Writing R Extensions", Version 2.1.1 > (2005-06-20), I thought the the following points might need > clarifications or corrections. (I checked that these comments also > hold for "Writing R Extensions", Version 2

Re: [Rd] Writing R-extensions

2005-08-27 Thread Prof Brian Ripley
On Sat, 27 Aug 2005, Berwin A Turlach wrote: > G'day all, > > After reading through "Writing R Extensions", Version 2.1.1 > (2005-06-20), I thought the the following points might need > clarifications or corrections. (I checked that these comments also > hold for "Writing R Extensions", Version 2

Re: [Rd] bug in L-BFGS-B? (PR#8099)

2005-08-27 Thread Prof Brian Ripley
Check your versions of MASS. The Windows one appears to be an outdated version, and does different things. As for the problem, yes it probably is a bug in L-BFGS-B. Fancy debugging the code? On Sat, 27 Aug 2005 [EMAIL PROTECTED] wrote: > > --WWm7B+u2U4 > Content-Type: text/plain; charset=us-

Re: [Rd] bug in L-BFGS-B? (PR#8099)

2005-08-27 Thread Prof Brian Ripley
On Sat, 27 Aug 2005, Peter Dalgaard wrote: > Prof Brian Ripley <[EMAIL PROTECTED]> writes: > >> Check your versions of MASS. The Windows one appears to be an outdated >> version, and does different things. > > Forgetting to run tools/rsync-recommended during build w

Re: [Rd] .Call and Segmentation Fault

2005-08-27 Thread Prof Brian Ripley
On Sat, 27 Aug 2005, Ricardo Luiz Andrade Abrantes wrote: > Hi! > Yes, I am returning a SEXP from the functions called from R, and the > problem occurs before (thousands of iterations before) the return > point. > In fact I runned valgrind into R and when I call ".Call(...) " I got > many errors l

Re: [Rd] robustness of install.packages/update.packages (was Re: bug in L-BFGS-B? (PR#8099))

2005-08-28 Thread Prof Brian Ripley
> separate spinoffs. > >>>>>> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> writes: > >BDR> Check your versions of MASS. The Windows one appears to be >BDR> an outdated version, and does different things. > Thanks, yes, this is the

Re: [Rd] Fwd: segfault

2005-08-29 Thread Prof Brian Ripley
It does not crash for me on either Windows or Linux, but it does take a long time and the plot is a mess, so there does seem to be a lattice-related problem (maybe a usage one). However, I think the crash is a Mac (presumably quartz()) problem. On Mon, 29 Aug 2005, stefano iacus wrote: > This

Re: [Rd] xerbla called from BLAS routine (PR#8100)

2005-08-29 Thread Prof Brian Ripley
On Mon, 29 Aug 2005, Göran Broström wrote: On Mon, Aug 29, 2005 at 10:06:00AM +0200, [EMAIL PROTECTED] wrote: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-1510948051-1125298763=

Re: [Rd] robustness of install.packages/update.packages (was Re: bug in L-BFGS-B? (PR#8099))

2005-08-29 Thread Prof Brian Ripley
On Sun, 28 Aug 2005, Prof Brian Ripley wrote: >> After redirecting R 2.1.1 on my laptop to use >>http://cran.au.r-project.org/ >> for the CRAN repository, the install.packages() command ran without >> problems. I issued the command `library(MASS)' and

  1   2   3   4   5   6   7   8   9   10   >