[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 t

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

2011-01-23 Thread Tony Plate
cs widget (https://r-forge.r-project.org/projects/tabbedplots/ ), having this hook would enable it to operate in a mode 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) > sap

Re: [Rd] Bug in read.table?

2010-11-07 Thread Tony Plate
le.path("tmp2.txt"), header=FALSE, as.is=TRUE, quote="") V1V2V3V4 1 37.82751 -1.207797 001º12'28.07013"W 037º49'39.04345"N 2 37.82751 -1.207797 001º12'28.07093"W 037º49'39.04359"N 3 37.82751

Re: [Rd] Drop single-dimensional array

2010-09-09 Thread Tony Plate
n, throwing an error 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 s

Re: [Rd] Large discrepancies in the same object being saved to .RData

2010-07-11 Thread Tony Plate
(v1)), value=TRUE) [1] " .. ..- attr(*, \".Environment\")= " [2] " .. .. ..- attr(*, \".Environment\")= " > -- Tony Plate On 7/10/2010 10:10 PM, bill.venab...@csiro.au wrote: Well, I have answered one of my questions below. The hidden environment is at

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

2010-05-17 Thread Tony Plate
he last line is using the appropriate environment for your application. I didn't read 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" trig

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(&q

Re: [Rd] 00LOCK and nfs

2010-04-27 Thread Tony Plate
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
* 2") This doesn't address the confusion 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 fro

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
tringr") works fine for me. Maybe it was a temporary glitch? Have you checked whether you have a valid repository selected? E.g., I have in my .Rprofile: options(repos=c(CRAN="http://cran.cnr.Berkeley.edu"; , CRANextra="http://www.stats.ox.ac.uk/pub/RWin";)) Enjoy learning R!

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

2009-12-08 Thread Tony Plate
ow the suggestion in the help for [.data.frame to get 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 unambiguou

[Rd] documentation omission in Extract.Rd?

2009-11-30 Thread Tony Plate
default methods that are documented in Extract.Rd, or is the source of the docs not up-to-date with the latest Rd syntax? I ask because I was looking for examples of how to write documentation for extraction and replacement functions. This is based on looking at the source code

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

2009-11-22 Thread Tony Plate
Xlt <- function(x) { length(x$sec) } >> >> in datetime.R, to avoid breaking functions (like the >> str.POSIXt method) which use length() in this way? PD> [You need "wishlist" in the title for this sort of stuff.] PD> I'd be wary of t

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 m

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

2009-11-10 Thread Tony Plate
ll systems! 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 fo

[Rd] typo in docs for unlink()

2009-11-10 Thread Tony Plate
tems that don't support it. Could this be clarified in the help file? thanks, Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Active bindings in attached environments

2009-11-05 Thread Tony Plate
jects 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 a

Re: [Rd] inconsistent behavior for logical vectors when using apply (" TRUE")

2009-11-04 Thread Tony Plate
This happens in as.matrix(), which gets called by apply(). When you've got a mixed-mode dataframe like this, as.matrix() converts everything to character. But, the rules it uses for each column don't seem to be entirely consistent regarding whether columns are space-padded to make each elemen

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

2009-10-30 Thread Tony Plate
"whit", colors()) Error in match.arg("whit", colors()) : 'arg' should be one of “white”, “aliceblue”, ... > match.arg("whit", colors()[c(1,651)]) Error in match.arg("whit", colors()[c(1, 651)]) : 'arg' should be one of “white”, “whit

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

2009-10-29 Thread Tony Plate
rgument as "x 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. ___

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

2009-10-09 Thread Tony Plate
uture if and when it is needed.) In general, 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

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

2009-09-02 Thread Tony Plate
.vector| returns |TRUE| if |x| is a vector (of mode logical, integer, real, complex, character, raw or list 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

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] "

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] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-20 Thread Tony Plate
They seem to work as intended on my Windows system with a NetApp file system mounted on a letter drive.) -- Tony Plate Kevin R. Coombes wrote: Hi, I have just updated R from version 2.8.1 to version 2.9.1. I am running Windows XP Professional, Service Pack 3. With the update, I decide

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-08 Thread Tony Plate
he "[" methods. However, the most useful would probably be the one for ordinary 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 t

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Tony Plate
ironment so that an R function 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 fun

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

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

2009-06-26 Thread Tony Plate
1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils 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
e things for everybody. The R maintainers will have to deal with less false bug reports, naive users will avoid harsh criticisms, and bystanders will witness fewer wince-inducing lashings. And yes, it's more 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
9 * 49) [1] TRUE > is.wholenumber(1/49 * 49, tol=0) [1] FALSE > -- 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, ac

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

2009-04-09 Thread Tony Plate
he 'forceonce' protection pretty easily, but the $(DONEFORCE) protection seems harder to get rid of, and I'd like to think there must be an easier way 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
Wacek Kusnierczyk wrote: Tony Plate wrote: Wacek Kusnierczyk wrote: [snip] i just can't get it why the manual does not manifestly explain what 'names<-' does, and leaves you doing the guesswork you suggest. I'm having trouble understanding the p

Re: [Rd] surprising behaviour of names<-

2009-03-13 Thread Tony Plate
your foot will be shattered should you choose to point the gun 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 no

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

2009-01-30 Thread Tony Plate
2-22) 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] stats graphics grDevices utils datasets methods base > -- Tony P

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 me

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

2009-01-22 Thread Tony Plate
Martin Maechler wrote: "TP" == Tony Plate on Fri, 16 Jan 2009 13:10:04 -0700 writes: TP> Martin Maechler wrote: >>>>>>> "PatB" == Patrick Burns >>>>>>> on Tue, 13 Jan 2009 17:00:40 + writes:

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

2009-01-16 Thread Tony Plate
know about 1D arrays in spite of the many years he's been using R. Would a wierd solution like the above have helped? At the moment, I'd tend to keep it "as is" if only just for historical reminescence, but I can be convinced to change the current "tendency" ... Martin Maech

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

2008-11-14 Thread Tony Plate
g the latest library prior to attaching packages 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 wr

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

2008-11-13 Thread Tony Plate
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
oks like want, you 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 line endings

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

2008-10-13 Thread Tony Plate
ppen easily, 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
lists, use constructs like names(formals(optim)) and pmatch to find args that below to the optimizer function vs the objective function -- Tony Plate thanks Ben Bolker ___

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

2008-05-05 Thread Tony Plate
d to the RSvgDevice package written by T Jake Luciani) were just a first attempt and I'd welcome any discussion or suggestions on how they could be better implemented and integrated with R graphics, or integrated with similar functionality for other devices. -- Tony Plate There is al

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

2008-04-14 Thread Tony Plate
ge so that it just copies the column being changed? (should be possible if list modification doesn't copy all components). -- Tony Plate > > Implementation code snippet :: > ### The S4 class. > setClass('DataFrame', > representation(data =

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

2008-04-11 Thread Tony Plate
nvironment variable", 2008/03/21), but AFAICS, the gnu make documentation suggests 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 i

[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
tes like "NB: versioned installs are not installs of a named 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 installa

Re: [Rd] Aliasing a function

2008-02-24 Thread Tony Plate
(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 wickham wrote: > On Sat, Feb 23, 2008 at 5:52 PM, Gabor Grothendieck > <[EMAIL PROTECTED]> wrote: > >> I assume he wants to be ab

Re: [Rd] as.function()

2008-01-14 Thread Tony Plate
> makefun(expression(p1 + p2)) function (p1, p2) p1 + p2 > -- Tony Plate Henrique Dallazuanna wrote: > Try this: > > as.function.foo <- function(obj, ...) > { > newobj <- function(x, ...){} > body(newobj) <- obj > return(newobj) > } > > x <- expre

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

2008-01-05 Thread Tony Plate
nt one... > > Now, still being curious: Are you implicitly saying that in S-plus, > is() behaves differently, namely > ``as if S3 classes would exist?'' (:-) > Is S-PLUS 7.0, I see the following behavior: > x <- structure(1, class=c("a", "ab")) Wa

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

2008-01-03 Thread Tony Plate
batable, but using it seems consistent with the "Details" section of ?Date. -- 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

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

2007-12-17 Thread Tony Plate
e there any great benefit that length() always returns the length of the underlying list for POSIXlt -- if there was a length() method one could get at the underlying length using length(unclass(x)). It just seems like a design oversight that makes using such classes unnecessarily difficult and err

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: >>

[Rd] guidelines for consistency of vector functions

2007-12-16 Thread Tony Plate
ce of software that was carefully engineered for widespread use.) All of the above is a rough draft that could be discussed further (e.g., should '[.<-' go in level 1 or level 2?) if there was any interest in pursuing this suggestion. Comments? -- Tony Plate PS: Here&#x

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 >>>> Submissio

Re: [Rd] Rapid Random Access

2007-12-14 Thread Tony Plate
kage and the filehash package also do similar 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 fram

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

2007-12-13 Thread Tony Plate
elements > length(x0) [1] 1 > length(c(x0, x1)) [1] 2 > length(c(x1,x10)) [1] 11 > all(x3 == x3[seq(len=length(x3))]) [1] TRUE > all(x3 == c(x3[1], x3[2], x3[3])) [1] TRUE > length(c(x3[2], x10[5:7])) [1] 4 > It would also be possible

Re: [Rd] Interactiveness

2007-12-11 Thread Tony Plate
the right direction here? I really > have no idea how to do this. > Specify a non-NULL error handler by doing something like this: > options(error=dump.frames) See ?options (look for "error") and ?stop for more details. -- Tony Plate > Also, what exactly does non-inte

Re: [Rd] sd(NA)

2007-12-03 Thread Tony Plate
t useful with sd() & var() that these functions 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.orbitr

Re: [Rd] pairs, par

2007-10-29 Thread Tony Plate
nate system on the plotting device to draw 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 ge

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

2007-10-18 Thread Tony Plate
. In general, pairlists seem 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 "LISTS

Re: [Rd] Friday question: negative zero

2007-09-01 Thread Tony Plate
rce("y.R") > y [1] 0 > 1/y [1] Inf > version _ platform x86_64-unknown-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 2 minor 5.1 year 2007 month 06 day

Re: [Rd] subcripts on data frames (PR#9885)

2007-08-28 Thread Tony Plate
Scrub 5.2 FALSE8 10 Rookery.Slope 1.5 4 Grassland 5.0 TRUE 7 2 Silwood.Bottom 5.1 2 Arable 5.2 FALSE7 > -- Tony Plate [EMAIL PROTECTED] wrote: > I'm not sure if this is a bug, or if I'm doing somet

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 zoo.ufl.edu> writes: > > >> What would R-core

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 requ

Re: [Rd] system() in packages

2007-04-27 Thread Tony Plate
-c \"echo foo | sed s/foo/bar/\"") bar > # and some use of quotes within the command actually works! > system("bash -c \"echo foo | sed 's/foo/bar rrr/'\"") bar rrr > [Beware: complex quoting inside the -c command can be difficult to get ri

Re: [Rd] ifelse behaviour

2007-04-26 Thread Tony Plate
(here the 'test' 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(

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

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

2007-04-17 Thread Tony Plate
at the testing always uses the copies of the files in fresh copy 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

[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) --

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 fo

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("some

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

2007-04-13 Thread Tony Plate
or detach?: To detach() 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 t

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

2007-04-13 Thread Tony Plate
E=English_United States.1252 attached base packages: [1] "stats" "graphics" "grDevices" "utils" "datasets" "methods" [7] "base" other attached packages: ExamplePackage "1.0" > Am I doing something wrong here? I can't find any mention of persistence of package location in ?library. thanks for any help or suggestions, Tony Plate __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] accessing hidden functions in testing code

2007-04-11 Thread Tony Plate
attach(loadNamespace(pkg), name=paste("namespace", pkg, sep=":"), pos=3) Are there any pitfalls that I will find if I continue with this approach? Or is there another better way? -- Tony Plate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] list/matrix chimera

2007-04-10 Thread Tony Plate
hadley wickham wrote: > On 4/10/07, Tony Plate <[EMAIL PROTECTED]> wrote: >> Aren't you just seeing the effect of drop=TRUE? (at least with the >> examples you give below -- they all pick out a submatrix with extent one >> on some dimension) >> >> AF

Re: [Rd] list/matrix chimera

2007-04-10 Thread Tony Plate
a matrix (or array) of non-atomic objects -- wouldn't your proposed change remove (or at least damage) that functionality? -- Tony Plate Seth Falcon wrote: > Hi all, > > If dimensions are added to a list, it will become a matrix-like hybrid > that calls itself a matrix,

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! --

[Rd] checking existence of active bindings

2007-03-28 Thread Tony Plate
g to claim that this behavior contradicts the documentation, but it's not what I expected from reading the documentation.) The only ways I can see to check in pure R if an active binding exists without calling the binding are things like > identical(TRUE, try(bindingIsActive(&quo

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

2007-02-20 Thread Tony Plate
n addition would be considered, I would be happy to supply patches to implement it (and test them in a build under Windows & Linux). I have tested 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/

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. > &g

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

2007-02-13 Thread Tony Plate
Or am I missing something? Are there some other objects for which the first loop 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

[Rd] question on docs for delayedAssign and substitute

2007-02-13 Thread Tony Plate
.: > msg <- "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 updat

[Rd] bug in partial matching of attribute names

2007-02-12 Thread Tony Plate
ke it work. Can anybody explain why? E.g.: > attr(x, "names") [1] "a" "b" > attr(x, "nam") NULL > sessionInfo() R version 2.4.1 (2006-12-18) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_Unit

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 >

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

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

2007-01-18 Thread Tony Plate
values 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

Re: [Rd] turning expression object to function

2006-12-18 Thread Tony Plate
start out with f having a NULL body, the first attempt to assign 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

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

2006-12-13 Thread Tony Plate
ile to do so. (Where 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 > > ___

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

2006-12-06 Thread Tony Plate
alue must be character data.) For reference, here's the Details section of ?colnames as it relates to replacement "methods" (these functions don't appear to be generics...?): > The replacement methods for arrays/matrices coerce vector > and factor values of value to charac

Re: [Rd] standardization of slot access

2006-09-26 Thread Tony Plate
syntactic variants (please correct me 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 wou

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

2006-09-08 Thread Tony Plate
on, and package maintainers see the warnings. (3) After a year or two (assuming most packages no longer contain use of partial matching), change the default warning about partial matching to "on". (4) After another year, eliminate partial matching with "$" and "[[

Re: [Rd] Strict seq: a recommendation

2006-08-23 Thread Tony Plate
t;integer" > storage.mode(1:3) [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: &g

[Rd] obscure bug in format.default?

2006-07-25 Thread Tony Plate
ith any interpretation of the documentation for format.default under which this output could be considered correct, so I suspect this behavior should be classified as a bug. The last call to 'prettyNum' in format.default has the argument preserve.width = "common" If this is

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: > >>

  1   2   >