[Rd] read.fwf; bug reports 8226 & 8236 (PR#8284)

2005-11-05 Thread rolf
(file = FILE, headerline, "\n") } This works for me. Brian Ripley says that this will crash with multiline records. Well, at least it works with single line records, as the current version seems not to. cheers,

[Rd] Hiccup in installing R 2.2.0

2005-10-15 Thread Rolf Turner
session directory ERROR: installing package DESCRIPTION failed /home/faculty/rolf/Rinst/R-2.2.0/bin/INSTALL: test: argument expected *** Error code 1 make: Fatal error: Command failed for target `boot.ts' Current working directory /homes/faculty/rolf/Rinst/R-2.2.0/src/library/Recommended ***

[Rd] Repeated use of dyn.load().

2018-03-01 Thread Rolf Turner
")) immediately after my call to dyn.load(). Comments? Another reply pointed out that "Writing R Extensions" indicates that there could be problems under Solaris, but does not single out any other OS for comment. Might I infer that I am "safe" as long as I don't

[Rd] Puzzled about a new method for "[".

2019-11-03 Thread Rolf Turner
<- function(x, i, j, drop = if (missing(i)) TRUE else length(j) == 1)[{ But I looked at "[.data.frame" and it has "cols" too; not "j". So why doesn't "[.data.frame" throw a warning when R gets built? Can som

Re: [Rd] Puzzled about a new method for "[".

2019-11-03 Thread Rolf Turner
On 4/11/19 10:31 AM, Duncan Murdoch wrote: On 03/11/2019 4:11 p.m., Rolf Turner wrote: I recently tried to write a new method for "[", to be applied to data frames, so that the object returned would retain (all) attributes of the columns, including attributes that my code had c

Re: [Rd] Puzzled about a new method for "[".

2019-11-03 Thread Rolf Turner
On 4/11/19 1:06 PM, Duncan Murdoch wrote: On 03/11/2019 6:43 p.m., Rolf Turner wrote: On 4/11/19 10:31 AM, Duncan Murdoch wrote: On 03/11/2019 4:11 p.m., Rolf Turner wrote: I recently tried to write a new method for "[", to be applied to data frames, so that the object retu

Re: [Rd] Puzzled about a new method for "[".

2019-11-04 Thread Rolf Turner
ongst columns 3 through 10 of X, I want Y$melvin to retain the attribute "clyde", i.e. I want attr(Y$melvin,"clyde") to return 42 There is almost surely a better approach than the one that I've chosen (isn't there always?) but it seems to work, and the perils cert

Re: [Rd] Puzzled about a new method for "[".

2019-11-04 Thread Rolf Turner
On 5/11/19 10:54 AM, Duncan Murdoch wrote: On 04/11/2019 4:40 p.m., Pages, Herve wrote: Hi Rolf, On 11/4/19 12:28, Rolf Turner wrote: On 5/11/19 3:41 AM, Hadley Wickham wrote: For what it's worth, I don't think this strategy can work in general, because a class might have attri

Re: [Rd] Puzzled about a new method for "[".

2019-11-05 Thread Rolf Turner
ish what I want --- simply give an attribute to the data frame, rather than to a certain column of that data frame. I don't know why the hell I didn't do that in the first place! Duh!!! Sorry for all the noise that this issue has generated. cheers, Rolf -- Honorary Research

[Rd] Xll.options().

2011-08-07 Thread Rolf Turner
7-6 fortunes_1.4-2 MASS_7.3-13 loaded via a namespace (and not attached): [1] grid_2.13.1lattice_0.19-30Matrix_0.999375-50 nlme_3.1-101 cheers, Rolf Turner __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] X11.options().

2011-08-08 Thread Rolf Turner
On 08/08/11 20:20, Martin Maechler wrote: Hi Rolf, please excuse a short "top-reply": No problema. Thanks for replying. As I see you are using an operating system (instead of Win..), can you try in the shell echo 'X11.options()$type' | R --vanilla --slave and d

Re: [Rd] X11.options().

2011-08-08 Thread Rolf Turner
Uh, to get back to the (my) point --- anybody have any ideas as to why X11.options()$type is defaulting to "Xlib" rather than "cairo" even though cairo is available and apparently (???) ``reliable''? cheers, Rolf __

Re: [Rd] X11.options().

2011-08-09 Thread Rolf Turner
profile. cheers, Rolf __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Problem installing R-devel data 4 March 2016.

2016-03-04 Thread Rolf Turner
rds': No such file or directory /usr/bin/install: cannot stat `NEWS': No such file or directory /usr/bin/install: cannot stat `NEWS.pdf': No such file or directory make[1]: *** [install-sources2] Error 1 make[1]: Leaving directory `/home/rolf/Desktop/R-dev-inst/BldDir/doc' make:

Re: [Rd] Problem installing R-devel dated 4 March 2016.

2016-03-05 Thread Rolf Turner
is time it worked; seamlessly. Totally mysterious. Story of my life. Be that as it were, all systems are go now, and my package checking was successful. Sorry for the noise. cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276

Re: [Rd] Problem installing R-devel dated 4 March 2016.

2016-03-06 Thread Rolf Turner
"make install" w/o a preceding "make". I am *certain* that the latter contretemps did not occur. I *know* that I did a make. Of course I *have* been known to be certain of things that weren't actually true But in this instance . As you say, we'll ne

[Rd] A trap for young players with the lapply() function.

2017-03-26 Thread Rolf Turner
lapply(), to the effect that if FUN has an optional argument named "X" then passing this argument via "..." will cause this argument to be taken as the first argument to lapply() and thereby induce an error? cheers, Rolf Turner -- Technical Editor ANZJS Department of S

Re: [Rd] A trap for young players with the lapply() function.

2017-03-27 Thread Rolf Turner
On 28/03/17 04:21, Barry Rowlingson wrote: On Mon, Mar 27, 2017 at 1:17 AM, Rolf Turner wrote: Is there any way to trap/detect the use of an optional argument called "X" and thereby issue a more perspicuous error message? This would be helpful to those users who, like myself, ar

Re: [Rd] A trap for young players with the lapply() function.

2017-03-28 Thread Rolf Turner
On 28/03/17 15:26, Charles C. Berry wrote: On Mon, 27 Mar 2017, Rolf Turner wrote: From time to time I get myself into a state of bewilderment when using apply() by calling it with FUN equal to a function which has an "optional" argument named "X". E.g. xxx <- lap

Re: [Rd] A trap for young players with the lapply() function.

2017-03-28 Thread Rolf Turner
uld appear that the problem is fundamentally unsolvable. :-( cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] A trap for young players with the lapply() function.

2017-03-29 Thread Rolf Turner
On 29/03/17 20:32, Enrico Schumann wrote: (inline) On Tue, 28 Mar 2017, Rolf Turner writes: On 28/03/17 04:21, Barry Rowlingson wrote: On Mon, Mar 27, 2017 at 1:17 AM, Rolf Turner wrote: Is there any way to trap/detect the use of an optional argument called "X" and thereby is

[Rd] Constructor/extractor.

2014-03-03 Thread Rolf Turner
wrong* with having a function possessing this somewhat schizophrenic nature? Is it likely to cause confusion, induce syntactical mistakes, create errors, or produce wrong results? Any thoughts, comments, insights or suggestions gratefully received. cheers, Rolf Turner ___

[Rd] Chi-squared test p-value based on simulation.

2011-12-22 Thread Rolf Turner
*randomly*. Might it thereby be advisable to jitter the values of (the "true" and simulated) test statistics before calculating the p-value? Anyone have any thoughts on this? cheers, Rolf Turner __ R-devel@r-project.org mailing

Re: [Rd] stringsAsFactors .... in expand.grid() etc

2009-05-20 Thread Rolf Turner
On 20/05/2009, at 1:49 AM, Martin Maechler wrote: "RT" == Rolf Turner on Tue, 19 May 2009 11:02:08 +1200 writes: RT> While we're at it --- would it not make sense to have the RT> stringsAsFactors RT> argument (once it's working

[Rd] The "lib" argument in install.packages().

2009-11-24 Thread Rolf Turner
ung ( :-) ) and naive persons, to put an indication in the help file for install.packages that the complete pathname is required? cheers, Rolf Turner P. S. > sessionInfo() R version 2.10.0 (2009-10-26) i386-apple-darwin8.11.1 locale: [1] C attached base pa

[Rd] Hmisc for Mac OSX.

2007-11-06 Thread Rolf Turner
note that the source and Windoze Hmisc packages are designated as 3.4-3, but the Mac package is designated as 3.4-2 which would appear to imply that it's a step behind. Could the Mac binary be updated please? Thanks. cheers,

Re: [Rd] Hmisc for Mac OSX.

2007-11-07 Thread Rolf Turner
On 6/11/2007, at 10:35 PM, Ken Beath wrote: > On 06/11/2007, at 8:59 AM, Rolf Turner wrote: > >> >> I'm not sure if this is the right target to which to direct this >> post, >> but I couldn't think of anything more appropriate. >> > > R-Sig

[Rd] Extractor function for standard deviation.

2008-04-03 Thread Rolf Turner
summary(x)$sigma } The sd.default() function would have the code of the current sd(). Does this idea have any merit? cheers, Rolf Turner ## Attention:\ This e-mail message is privileged

[Rd] assign("FALSE", TRUE)

2008-11-17 Thread Rolf Turner
e thought that FALSE <- and assign("FALSE",) would be completely equivalent. This is clearly not a very important issue, but it might bear some thinking about. cheers, Rolf Turner #

Re: [Rd] assign("FALSE", TRUE)

2008-11-18 Thread Rolf Turner
On 18/11/2008, at 11:11 AM, Martin Maechler wrote: Yes. I'd propose that R-core look into how to make assignment to a reserved word an error. That's good news. Thanks. cheers, R