[Rd] Why is the 64bit Windows version of package RSVGTipsDevice not available on CRAN?

2011-12-19 Thread Tony Plate
On CRAN, the package RSVGTipsDevice is only installed for 32bit Windows, and is not available as a 64bit package for Windows. The file linked to in the package check summary on CRAN says NB: this package is only installed for sub-architecture 'i386' . What do I need to do to make it available

Re: [Rd] Require of gWidgetsRGtk2 fails: RGtk2.dll can't be found, but it's there

2011-06-12 Thread Tony Plate
I also had frustrations trying to use libary RGtk2 under Windows XP. I kept getting the message unable to load shared object C:\R\site-library\RGtk2\libs\i386\RGtk2.dll even though it was on my path. Uninstalling and reinstalling various versions of GTK2, both through R and outside R, many

[Rd] feature request: additional hook in plot.new()

2011-01-23 Thread Tony Plate
where a new tab is automatically created for each new plot. thanks for your consideration, Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] RFC: sapply() limitation from vector to matrix, but not further

2010-12-28 Thread Tony Plate
The abind() function from the abind package is an alternative here -- it can take a list argument, which makes it easy to use with the result of lapply(). It's also able take direction about which dimension to join on. x - list(a=1,b=2,c=3) f - function(v) matrix(v, nrow=2, ncol=4)

Re: [Rd] Bug in read.table?

2010-11-07 Thread Tony Plate
001º12'28.07087W 037º49'39.04317N The docs for read.table() direct the reader to the docs for scan() regarding the behavior with embedded quote chars. The behavior of read.table() on this data with the default quote chars is puzzling though. -- Tony Plate On 11/5/2010 5:22 PM, jgar

Re: [Rd] Drop single-dimensional array

2010-09-09 Thread Tony Plate
if that dimension is not 1. That always bugged me too. The 'abind' package has an 'adrop()' function with this behavior, and I was just working on an enhancement of it that would make it able to convert 1-d arrays to named vectors when this thread started. -- Tony Plate Bill Dunlap Spotfire

Re: [Rd] difficulties with setMethod([ and ...

2010-05-17 Thread Tony Plate
your code in detail, so apologies if the above is off-the-point, but your verbal description of the problem and the coding style and comments in the [ method for myExample triggered my memory. -- Tony Plate On 05/17/2010 07:48 PM, James Bullard wrote: Apologies if I am not understanding

Re: [Rd] Generate NA of specified type

2010-05-05 Thread Tony Plate
I just do as.integer(NA), as.numeric(NA), as.character(NA), etc. -- Tony Plate On 5/5/2010 11:57 AM, Hadley Wickham wrote: Hi all, Is there an existing function that provides the correct type of missing value for a given vector? e.g. NAof(1:3) # NA_integer_ NAof(pi) # NA_real_ NAof

Re: [Rd] 00LOCK and nfs

2010-04-27 Thread Tony Plate
that existing installed packages are never overwritten. The tricky part is to manage this in a way that is transparent to the user, which is what the package accomplishes. If this is any interest in this I could make it available; email me privately or respond on the list. -- Tony Plate On 4/26

Re: [Rd] function curve() (PR#14191)

2010-01-21 Thread Tony Plate
you note, but it is an easy way of getting your code to work without needing any functions to be redefined. -- Tony Plate georgi.boshna...@manchester.ac.uk wrote: Full_Name: Georgi Boshnakov Version: 2.10.1pat OS: Windows XP Submission from: (NULL) (130.88.123.205) When calling

Re: [Rd] as.Date function yields inconsistent results (PR#14166)

2009-12-28 Thread Tony Plate
I think you're right that this is a timezone issue -- it seems to be a consequence of the behavior described about in the article by Gabor Grothendieck and Thomas Petzoldt: R help desk: Date and time classes in R. R News, 4(1):29-32, June 2004.

Re: [Rd] binary string conversion to a vector (PR#14120)

2009-12-12 Thread Tony Plate
://cran.cnr.Berkeley.edu; , CRANextra=http://www.stats.ox.ac.uk/pub/RWin;)) Enjoy learning R! -- Tony Plate Franc Brglez wrote: Hello! Please accept my sincere apologies for annoying the R development team with my post this week. If I were required to register as a developer before submission

Re: [Rd] extraction of sub-matrix by name

2009-12-08 Thread Tony Plate
exact matching. -- Tony Plate Yurii Aulchenko wrote: Dear all, sorry to bother you with potentially known issue -- we have noticed that if we select data frame rows by rownames, we get some results back if the match can be done unambiguously, though the match is not perfect (see example), e.g. x

[Rd] documentation omission in Extract.Rd?

2009-11-30 Thread Tony Plate
for examples of how to write documentation for extraction and replacement functions. This is based on looking at the source code at http://svn.r-project.org/R/trunk/src/library/base/man/Extract.Rd and I see the same in R-2.10.0 for Linux. -- Tony Plate

Re: [Rd] Surprising length() of POSIXlt vector (PR#14073)

2009-11-22 Thread Tony Plate
to use length() with its PD original low-level interpretation. Yes, of course. and Romain mentioned str(). Note that we have needed to define a POSIXt method for str(), partly just *because* of the current anomaly: As Tony Plate, e.g., has argued, entirely correctly in my view, the anomaly

Re: [Rd] error checks

2009-11-13 Thread Tony Plate
Putting options(error=function() NULL) at the start of the .R will let R CMD check continue with commands in a file after stop() is called. (Or anything other than the default options(error=NULL)). -- Tony Plate Terry Therneau wrote: I'm currently packaging up some of the kinship matrix

Re: [Rd] typo in docs for unlink()

2009-11-10 Thread Tony Plate
! Trying to write R code that works on all systems is much harder when the docs are different across systems, and you might only see system specific notes on a different system than the one you're working on. -- Tony Plate Tony Plate wrote: The VALUE section in the help for 'unlink' says

Re: [Rd] Active bindings in attached environments

2009-11-05 Thread Tony Plate
into it. Thus, active bindings are evaluated and their values copied into the attached environment. (Is this explanation correct?) -- Tony Plate (PS: Thunderbird wants to spell-correct makeActiveBinding to vindictivenesses, which seems an amusingly appropriate allusion to the nature

Re: [Rd] bug in `pmatch' (error with too long 'choices')?

2009-10-30 Thread Tony Plate
, 651)]) : 'arg' should be one of “white”, “whitesmoke” -- Tony Plate Joerg van den Hoff wrote: I observed the following: match.arg(white, colors()) yields 'white', but match.arg(whit, colors()) yields: `Error in match.arg(whit, colors()) : 'arg' should be one of white, aliceblue

Re: [Rd] what should NCOL(NULL) return?

2009-10-29 Thread Tony Plate
a vector, array or data frame. However, it's pretty common for functions that work with vectors and arrays to treat NULL the same as numeric(0). -- Tony Plate blackhole = matrix(NA, 0, 1) blackhole[,1] = 5 blackhole [,1] h. __ R

Re: [Rd] weigths in nls (PR#13991)

2009-10-09 Thread Tony Plate
, the use of ... arguments does add flexibility, but it takes away some error-checking. -- Tony Plate stephen.b...@cibc.com wrote: Potential bug: I mistyped weights in the call ('weigths') and it did not produce any error= message. The coefs were exactly the same like without weights, so I was su

Re: [Rd] Documentation for is.atomic and is.recursive

2009-09-02 Thread Tony Plate
if not specified) or expression to |is.vector| returns |TRUE| if |x| is a bare vector (of mode logical, integer, real, complex, character, raw or list if not specified, with no attributes other than names), or expression with no attributes other than names -- Tony Plate What would be lost

Re: [Rd] can a key of a list be a variable

2009-08-04 Thread Tony Plate
Patterns like these can help to do what you want: lapply(setNames(1:3, paste(step, 1:3, sep=)), function(i) seq(i)) $step1 [1] 1 $step2 [1] 1 2 $step3 [1] 1 2 3 setNames(list(the result), paste(a, name)) $`a name` [1] the result -- Tony Plate Bilel MASMOUDI wrote: Hi, I search

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-21 Thread Tony Plate
Did you try starting up R-2.8.1 and checking the result of file.access(lib, 2) on that very same directory where R-2.9.1 gives an incorrect indication? If that gives the correct answer, then, look for changes in the file.access code. -- Tony Plate Kevin R. Coombes wrote: Hi, The problem

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-08 Thread Tony Plate
matrices and arrays, and others could be modified when and if their maintainers see the need. -- Tony Plate Bengoechea Bartolomé Enrique (SIES 73) wrote: Hi, I agree with Henrik that his suggestion to have dimension vector attributes working like dimnames (see below) would be an extremely useful

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Tony Plate
could be called when an object in the environment was created, changed or deleted. This code was reasonably simple, and I'd be happy to share it if there is any interest (it was for R-2.4.1). -- Tony Plate The problem is as soon as you pass it to a function, you force the promise, maybe passing

Re: [Rd] should Sys.glob() cope with a UNC windows path beginning with backslashes?

2009-06-29 Thread Tony Plate
Prof Brian Ripley wrote: On Fri, 26 Jun 2009, Tony Plate wrote: I find that Sys.glob() doesn't like UNC paths where the initial slashes are backslashes. The help page for Sys.glob() doesn't specificly mention UNC paths, but does say: File paths in Windows are interpreted with separator

[Rd] should Sys.glob() cope with a UNC windows path beginning with backslashes?

2009-06-26 Thread Tony Plate
datasets methods base -- Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Suggestion for changing r-project.org webpage text around bug reporting (was Re: 'is.integer' (PR#13671))

2009-04-23 Thread Tony Plate
words, but it's boilerplate that experienced eyes can easily skip over. -- Tony Plate [rest of correspondence regarding is.integer() clipped] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] 'is.integer' (PR#13671)

2009-04-22 Thread Tony Plate
-- Tony Plate hzambran.newsgro...@gmail.com wrote: Full_Name: Mauricio Version: 2.9.0 (2009-04-17) OS: i486-pc-linux-gnu Submission from: (NULL) (193.205.203.3) This is a very simple function that seems not to be working, according to the definition given by '?is.integer'. I checked in the Bug

[Rd] how to add a target to the Make that R CMD check uses for running tests?

2009-04-09 Thread Tony Plate
of adding a target anyway.) -- Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] surprising behaviour of names-

2009-03-13 Thread Tony Plate
at your foot and pull the trigger. Reminds me of the story of the guy in New York, who after injuring his back in refrigerator-carrying race, sued the manufacturer of the refrigerator for not having a warning label against that sort of use. -- Tony Plate

Re: [Rd] (PR#13487) Segfault when mistakenly calling [.data.frame

2009-01-30 Thread Tony Plate
-- Tony Plate Cheers, S To bypass our now-suspect functions and get the real subscripting method, he used get from package:base. He was examining a large object, and believing it was a data frame, chose [.data.frame. As it turns out, that object was not a data frame, and he got

Re: [Rd] overwriting '-' and infinite recursions

2009-01-23 Thread Tony Plate
I wonder if you might be able to make use of R's active bindings. These enable you to set things up so that a user definable function is called when an assignment is made or when a value is accessed. It's sort of like overriding assignment for a particular variable, but you don't need to

Re: [Rd] x - 1:2; dim(x) - 2? A vector or not?

2009-01-22 Thread Tony Plate
Martin Maechler wrote: TP == Tony Plate tpl...@acm.org on Fri, 16 Jan 2009 13:10:04 -0700 writes: TP Martin Maechler wrote: PatB == Patrick Burns pbu...@pburns.seanet.com on Tue, 13 Jan 2009 17:00:40 + writes: PatB Henrik Bengtsson wrote

Re: [Rd] x - 1:2; dim(x) - 2? A vector or not?

2009-01-16 Thread Tony Plate
for a rare case, and much, much less cryptic? -- Tony Plate PatB Patrick Burns patr...@burns-stat.com +44 (0)20 8525 PatB 0696 http://www.burns-stat.com (home of The R PatB Inferno and A Guide for the Unwilling S User) /Henrik I think these days we have enough

Re: [Rd] Package install problem on Windows (PR#13284)

2008-11-14 Thread Tony Plate
at the beginning of a session. Are there any potential pitfalls to this approach that we should know about? -- Tony Plate Martin Maechler wrote: SU == Simon Urbanek [EMAIL PROTECTED] on Thu, 13 Nov 2008 18:47:38 -0500 writes: SU On Nov 13, 2008, at 6:11 PM, Tony Plate

Re: [Rd] Package install problem on Windows (PR#13284)

2008-11-13 Thread Tony Plate
or contributed packages. However, if the problems with versioned installs are not amenable to the kinds of fixes that users can contribute, then I guess we should look for a different approach. Suggestions and comments are welcome! Do many people use versioned installs? -- Tony Plate

Re: [Rd] is.matrix

2008-11-11 Thread Tony Plate
could use is.matrix(x) all(dim(x)1) (or maybe all(dim(x) != 1) depending on how you want to treat matrices that have a dimension with zero extent) -- Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] dos-style line endings in .Rbuildignore result in files not being excluded

2008-10-14 Thread Tony Plate
Prof Brian Ripley wrote: On Tue, 14 Oct 2008, Sebastian P. Luque wrote: On Mon, 13 Oct 2008 23:10:41 -0600, Tony Plate [EMAIL PROTECTED] wrote: I was trying, on a Linux system, to get a .Rbuildignore file to work. After far too long, I found the problem was the CRNL line endings

[Rd] dos-style line endings in .Rbuildignore result in files not being excluded

2008-10-13 Thread Tony Plate
, and it would nice if R would work with it. Could a fix for this little problem be incorporated into R? thanks, Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] messing with ...

2008-08-13 Thread Tony Plate
)) and pmatch to find args that below to the optimizer function vs the objective function -- Tony Plate thanks Ben Bolker __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] A patch for extending pdf device to embed popup text and web links

2008-05-05 Thread Tony Plate
they could be better implemented and integrated with R graphics, or integrated with similar functionality for other devices. -- Tony Plate There is also the issue of following standard R coding style and semantics. Rather than your approach of ... text(5, 2, text test) pdf.link.on.text(http

Re: [Rd] Doing the right amount of copy for large data frames.

2008-04-14 Thread Tony Plate
the object, it will stop with an error. In this particular case, why not just track down why data frame modification is copying the entire object and suggest a change so that it just copies the column being changed? (should be possible if list modification doesn't copy all components). -- Tony

Re: [Rd] R_SHARE_DIR not defined for use in tests/Makefile running under Windows

2008-04-11 Thread Tony Plate
these can be used interchangeably (http://www.gnu.org/software/make/manual/make.html#Reference). And, is it ok to assume that the 'make' used for running tests will be a gnu make, or is that a dangerous assumption (and the answer to my question above)? -- Tony Plate Prof Brian Ripley wrote

[Rd] R_SHARE_DIR not defined for use in tests/Makefile running under Windows

2008-04-07 Thread Tony Plate
launch %R_HOME%\bin\$* */ -- Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] problem with 'install.packages'

2008-03-25 Thread Tony Plate
package. in ?install.packages make me wary. -- Tony Plate Spencer Graves wrote: Hi, All: Is there a way to identify whether any users are using a particular package in a shared network R installation? I ask, because we have such a multiple-user installation and when I tried

Re: [Rd] Aliasing a function

2008-02-24 Thread Tony Plate
- formals(f) argtrans - c(a=d, b=e, c=f) names(ff) - argtrans g2 - as.function(c(ff, as.call(c(list(as.name(f)), lapply(argtrans, as.name) g2 function (d, e, f) f(a = d, b = e, c = f) f(1,2,3) a b c 1 2 3 g1(a=1,b=2,c=3) a b c 1 2 3 g2(d=1,e=2,f=3) a b c 1 2 3 -- Tony Plate hadley

Re: [Rd] as.function()

2008-01-14 Thread Tony Plate
, p2) p1 + p2 -- Tony Plate Henrique Dallazuanna wrote: Try this: as.function.foo - function(obj, ...) { newobj - function(x, ...){} body(newobj) - obj return(newobj) } x - expression(2*x + 3*x^2) foo - as.function.foo(x) foo(2) Hope this help On 14/01/2008, Robin Hankin

Re: [Rd] is(x, parent) returns FALSE when class(x) is c(child, parent) (PR#10549)

2008-01-05 Thread Tony Plate
R an imaginary language except when one uses S4 classes? :-) -- Tony Plate [Of course, I understand what you mean, and I agree that normally, the S3 class attribute c(ch, pr) means that ch is conceptually a child of pr. However, there's at least one exception in R {which I have found

Re: [Rd] as.Date.numeric origin default

2008-01-03 Thread Tony Plate
. -- Tony Plate Jeff Ryan wrote: R-devel, I would like to second Gabor Grothendieck's request from September ( http://www.nabble.com/as.Date.numeric-to12962733.html#a12962733 ) on adding a default value (1970-01-01) to the origin argument of as.Date.numeric. I realize there is good reason

[Rd] guidelines for consistency of vector functions

2007-12-16 Thread Tony Plate
this suggestion. Comments? -- Tony Plate PS: Here's a few examples of running an automatic vector-functionality tester on some vector-like classes in R (basic=level 1, extra=level 2, and bonus=level 3 functions) (this might be hard to read if line wrapping happens -- I've attached text

Re: [Rd] Wrong length of POSIXt vectors (PR#10507)

2007-12-16 Thread Tony Plate
Duncan Murdoch wrote: On 15/12/2007 5:17 PM, Martin Maechler wrote: TP == Tony Plate [EMAIL PROTECTED] on Fri, 14 Dec 2007 13:58:30 -0700 writes: TP Duncan Murdoch wrote: On 12/13/2007 1:59 PM, Tony Plate wrote: Duncan Murdoch wrote: On 12/11/2007 6:20 AM, [EMAIL

Re: [Rd] Rapid Random Access

2007-12-14 Thread Tony Plate
things wrt to providing automatic access to objects in .RData files (and were part of the inspiration for the trackObjs package.) -- Tony Plate However I might, for example, want to compute some averages over the elements in the data frames. Or I might want to sample ten of them at random

Re: [Rd] Wrong length of POSIXt vectors (PR#10507)

2007-12-14 Thread Tony Plate
Duncan Murdoch wrote: On 12/13/2007 1:59 PM, Tony Plate wrote: Duncan Murdoch wrote: On 12/11/2007 6:20 AM, [EMAIL PROTECTED] wrote: Full_Name: Petr Simecek Version: 2.5.1, 2.6.1 OS: Windows XP Submission from: (NULL) (195.113.231.2) Several times I have experienced that a length

Re: [Rd] Wrong length of POSIXt vectors (PR#10507)

2007-12-13 Thread Tony Plate
e.g., 'rep', 'unique', 'duplicated', '==', 'sort', '[-', 'is.na', head, tail ... (many of which are provided for POSIXlt). Or is there some good reason that length() cannot be provided (while 'c' and '[' can) for some vector-like classes such as POSIXlt? -- Tony Plate Duncan Murdoch

Re: [Rd] Interactiveness

2007-12-11 Thread Tony Plate
?options (look for error) and ?stop for more details. -- Tony Plate Also, what exactly does non-interactive mode imply, besides this default error handling behaviour? I checked the source, and it's a couple of isatty()'s in the two files named system.c that are doing it. They are of course

Re: [Rd] sd(NA)

2007-12-03 Thread Tony Plate
should differ in their behavior from mean(), mad(), etc? Personally, I'd find it most convenient if all these functions just returned NA values (without warning) when unable to compute a value. -- Tony Plate [resent because http://www.orbitrbl.com/ is blocking emails from one of my ISPs] Patrick

Re: [Rd] pairs, par

2007-10-29 Thread Tony Plate
on top of the plot left by pairs(), look at par(new) something like plot(0:1, type='n', axes=F, xlab=)) hope this helps, Tony Plate Oliver Soong wrote: Hi, I posted over at R-help, and didn't get a response, but perhaps that was the wrong forum for this question. I'm having some confusion

Re: [Rd] append/concatenate an element to a list in C-language

2007-10-18 Thread Tony Plate
to be used very little, and I've never seen their use encouraged, so I would be very cautious. You can read more about pairlists under ?pairlist, in the R-internals manual, and in the source starting at src/include/Rinternals.h (look for LISTSXP). -- Tony Plate Robert Castelo wrote: dear people

Re: [Rd] Friday question: negative zero

2007-09-01 Thread Tony Plate
status major 2 minor 5.1 year 2007 month 06 day27 svn rev42083 language R version.string R version 2.5.1 (2007-06-27) -- Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] sweep sanity checking?

2007-07-11 Thread Tony Plate
Just an opinion from an R user: I think it's a sound idea. I use my own version of sweep with a stricter check: it stops if the vector is not exactly the right length. -- Tony Plate Ben Bolker wrote: Ben Bolker bolker at zoo.ufl.edu writes: What would R-core think of the following

Re: [Rd] bounties

2007-05-11 Thread Tony Plate
I've wondered about this sort of thing too. Are there any successful models like this for other program languages/systems? -- Tony Plate Ben Bolker wrote: Has anyone considered a bounty system for R? (i.e., some kind of system whereby users could put up money to request particular

Re: [Rd] ifelse behaviour

2007-04-26 Thread Tony Plate
' argument has length 1, and the 'no' argument has length 0). -- Tony Plate [EMAIL PROTECTED] wrote: Hi! I'm puzzled by the return value of ifelse consider x-integer(0) ifelse(is(x, character), paste(x), x) [1] NA whereas if (is(x, character)) return(paste(x)) else x [1] integer(0

[Rd] typo in R-exts

2007-04-17 Thread Tony Plate
There looks to be a typo in the R-exts manual: The whose @file{tests} is copied to the check area, ... ^ I'm not sure what was intended here, so I can't suggest a fix. (from https://svn.r-project.org/R/trunk/doc/manual/R-exts.texi) -- Tony Plate

[Rd] use of .Rout.save files in the 'tests' directory of a package

2007-04-17 Thread Tony Plate
of the 'tests' directory? (In cases where they are present in the source directory, they should be identical, AFAICS.) -- Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] typo in R-exts

2007-04-17 Thread Tony Plate
The actual behavior, as far as I can make out, is that all the files in the 'tests' directory are copied, but not any subdirectories (which I personally would have found useful). So, saying the whole directory is probably not accurate. -- Tony Plate Peter Dalgaard wrote: Tony Plate wrote

[Rd] how to control which version of a package library() installs?

2007-04-13 Thread Tony Plate
location in ?library. thanks for any help or suggestions, Tony Plate __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] how to control which version of a package library() installs?

2007-04-13 Thread Tony Plate
() and reattach() a package you will probably need to use unloadNamespace(somePackage) after detach(package:somePackage) -- Tony Plate Prof Brian Ripley wrote: On Fri, 13 Apr 2007, Tony Plate wrote: library() seems to remember the location of a package when I give it a lib.loc, and then use that version

Re: [Rd] how to control which version of a package library() installs?

2007-04-13 Thread Tony Plate
Tony Plate wrote: [snip] Maybe the following sentence might be a useful addition to the Details or Notes section of the help page for detach?: To detach() and reattach() a package you will probably need to use unloadNamespace(somePackage) after detach(package:somePackage) Better

Re: [Rd] how to control which version of a package library() installs?

2007-04-13 Thread Tony Plate
Prof Brian Ripley wrote: On Fri, 13 Apr 2007, Tony Plate wrote: Thank you! I had not realized that the name space remained loaded. When I did unloadNamespace(ExamplePackage) after the detach() I got what I wanted. Maybe the following sentence might be a useful addition to the Details

Re: [Rd] Developer work cycle

2007-04-02 Thread Tony Plate
I tried to summarize some of the very useful tips in this discussion in the R Wiki at http://wiki.r-project.org/rwiki/doku.php?id=developers:workcycle If you feel I used your contribution inappropriately, please let me know and I'll remove it. Anyone, please feel free to improve it! -- Tony

[Rd] checking existence of active bindings

2007-03-28 Thread Tony Plate
, envir=globalenv())) but I was hoping to just be able to use exists(). Was this interaction of exists() with active bindings intended, or did it just arise by accident and might be subject to future improvement? -- Tony Plate __ R-devel@r-project.org

[Rd] proposal to allow just transcript files (output only) in the 'tests' directory

2007-02-20 Thread Tony Plate
a prototype, and it seems pretty simple to add this: as far as I can see, small changes are needed in three files: ./share/make/tests.mk ./src/gnuwin32/fixed/share/tests.mk ./bin/check Please respond with comments/suggestions/corrections/pointing-out-of-gotchas/etc! thanks, Tony Plate

Re: [Rd] bug in partial matching of attribute names

2007-02-14 Thread Tony Plate
Prof Brian Ripley wrote: On Tue, 13 Feb 2007, Tony Plate wrote: Ok, thanks for the news of a fix in progress. BTW, your suggested fix is incorrect. Consider having an exact match after two partial matches in the list of attributes. oops. yes. On the topic of the names attribute

[Rd] question on docs for delayedAssign and substitute

2007-02-13 Thread Tony Plate
- old delayedAssign(x, msg) msg - new! substitute(x) #- I would expect to see 'msg' here x x #- new! [1] new! substitute(x) x Has this functionality been removed, and the docs not updated? Or am I missing something? -- Tony Plate sessionInfo() R version 2.4.1 (2006-12-18) i386-pc

Re: [Rd] bug in partial matching of attribute names

2007-02-13 Thread Tony Plate
doesn't include a names attribute? -- Tony Plate Prof Brian Ripley wrote: It happens that I was looking at this yesterday (in connection with encodings on CHARSXPs) and have a fix in testing across CRAN right now. As for names, as you will know from reading 'R Internals' the names can

[Rd] bug in partial matching of attribute names

2007-02-12 Thread Tony Plate
.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods [7] base -- Tony Plate __ R-devel@r-project.org mailing list https

Re: [Rd] [ operator and indexing ambiguity

2007-01-26 Thread Tony Plate
You can find this info using the function nargs(). I've used this with S3 classes, and as far as I know it should work with S4 classes too. See ?nargs for examples. -- Tony Plate Bradley Buchsbaum wrote: Hi, I am working on writing some S4 classes that represent multidimensional (brain

Re: [Rd] subsetting matrix by subscript=0,x silently skips.

2007-01-18 Thread Tony Plate
are allowed: rows of an index matrix containing a zero are ignored, whereas rows containing an NA produce an NA in the result. So, I think it is behaving as documented. -- Tony Plate Hin-Tak Leung wrote: (e-mailing to R-bugs is intentional - the web itnerface seems to be down) a- cbind(c(1,2

Re: [Rd] subsetting matrix by subscript=0,x silently skips.

2007-01-18 Thread Tony Plate
Hin-Tak Leung wrote: (I have taken off r-bug@, as multiple e-mails hitting r-bug@ probably will result in multiple bug reports, knowing most mail server will retry) Tony Plate wrote: The help page for [ says: A third form of indexing is via a numeric matrix with the one column

Re: [Rd] turning expression object to function

2006-12-18 Thread Tony Plate
the formals works.) -- Tony Plate sessionInfo() R version 2.4.0 (2006-10-03) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] methods

Re: [Rd] data frame subset patch, take 2

2006-12-13 Thread Tony Plate
sensible is defined in terms of the new semantics.) As a particular example, I would consider it OK to break old code that relied on default row names being character data. (But this may not be necessary). -- Tony Plate Martin __ R-devel@r

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

2006-12-06 Thread Tony Plate
-project.org/R/trunk/src/library/base/man/colnames.Rd) -- Tony Plate As you noted yourself, using names() and names- i.e., names(df1) - bla in the example above, is the recommended way for data frames and does not change the rownames to character

Re: [Rd] standardization of slot access

2006-09-26 Thread Tony Plate
if I'm wrong). -- Tony Plate Sebastian P. Luque wrote: Hi, I'm usually confused about when to use 'slot' or '@'. I've frequently read that it's always preferable to use accessor functions, so I would think the '@' operator should be avoided. However, ?slot contains the following advise

Re: [Rd] (PR#9202) Re: Bugs with partial name matching

2006-09-08 Thread Tony Plate
partial matching to on. (4) After another year, eliminate partial matching with $ and [[. Opinions? -- Tony Plate Anil __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Strict seq: a recommendation

2006-08-23 Thread Tony Plate
) [1] integer n - 3 storage.mode(n) [1] double storage.mode(1:n) [1] integer storage.mode(c()) [1] NULL -- Tony Plate Dominick Samperi wrote: In for loops of the form: for(m in seq(beg,end)) ... when beg end, the default behavior is to decrement, and the action described

Re: [Rd] Making a patch

2006-07-25 Thread Tony Plate
I've tried to summarize the information in this thread into a Wiki page: http://wiki.r-project.org/rwiki/doku.php?id=misc:rpatch Please make an additions or alterations as appropriate! -- Tony Plate Duncan Murdoch wrote: On 7/23/2006 6:04 PM, Andrew Robinson wrote: Dear R developers

[Rd] obscure bug in format.default?

2006-07-25 Thread Tony Plate
as a bug. The last call to 'prettyNum' in format.default has the argument preserve.width = common If this is changed to preserve.width = if (trim) individual else common then output is formatted correctly in the case above. -- Tony Plate sessionInfo() Version 2.3.1 (2006-06-01) i386-pc

Re: [Rd] Numerical error in R (win32) (PR#8909)

2006-05-30 Thread Tony Plate
should not be used for financial [...] applications -- it all depends on the needs of the particular financial application.) I don't believe that there are any facilities in R for doing decimal arithmetic, but I would guess that some accounting applications might offer some. -- Tony Plate (I

Re: [Rd] prod(numeric(0)) surprise

2006-01-09 Thread Tony Plate
Since the virtue and reliability of Wikis was brought up, I created a R Wiki page for this at http://www.sciviews.org/_rgui/wiki/doku.php?id=beginners:surprises:emptysetfuncs :-) Anyone: please correct errors and improve it! Tony Plate Duncan Murdoch wrote: On 1/9/2006 1:27 PM, Liaw, Andy

Re: [Rd] Wikis (was about prod(numeric(0)))

2006-01-09 Thread Tony Plate
! Maybe when Phillippe Grosjean returns to his work he can put some more R-related top-level structure on his wiki? In the meantime, anyone else can go in there and start proposing some structure... -- Tony Plate PS. Detlef Steuer did say that he would be happy to shut down his wiki and let

Re: [Rd] typo in `eurodist'

2005-12-08 Thread Tony Plate
(correct): 26,900,000 Collectable: 4,140,000 More targets at http://www.yourdictionary.com/library/misspelled.html (BTW, one can find a list of commonly misspelt wods using Google :-) -- Tony Plate (Ted Harding) wrote: On 08-Dec-05 Martin Maechler wrote: Torsten == Torsten Hothorn [EMAIL PROTECTED

Re: [Rd] x[1,], x[1,,], x[1,,,], ...

2005-11-23 Thread Tony Plate
objects (as you suspect). I don't think R is quite as bad, but I haven't done careful the experiments with R. Do be careful though: this type of manipulation can expose a bug in R, which I don't think has been fixed (PR#7924). -- Tony Plate Thanks Henrik

Re: [Rd] [R] unvectorized option for outer()

2005-10-31 Thread Tony Plate
. What is the appropriate environment for returned value of Vectorize()? Is this approach to creating a Vectorize() function on the right tack at all? Any other improvements or fixes? -- Tony Plate Peter Dalgaard wrote: Thomas Lumley [EMAIL PROTECTED] writes: On Sun, 30 Oct 2005

Re: [Rd] [R] unvectorized option for outer()

2005-10-31 Thread Tony Plate
Duncan Murdoch wrote: On 10/31/2005 2:15 PM, Tony Plate wrote: [snipped comments irrelevant to this post] So, here's a first pass at a general Vectorize() function: Vectorize - function(FUN, vectorize.args) { if (!all(is.element(vectorize.args, names(formals(FUN) stop

[Rd] unvectorized option for outer()

2005-10-28 Thread Tony Plate
, please let me know! -- Tony Plate Rau, Roland wrote: Dear all, a big thanks to Thomas Lumley, James Holtman and Tony Plate for their answers. They all pointed in the same direction = I need a vectorized function to be applied. Hence, I will try to work with a 'wrapper' function

Re: [Rd] octonions

2005-07-29 Thread Tony Plate
played with that much (my initial attempts have worked, but warnings have been generated by setMethod). -- Tony Plate Robin Hankin wrote: Hi I thought it would be fun to develop R functionality for the octonions (there is already some work on quaternions). The octonions are an 8