Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-23 Thread Duncan Murdoch
that would be far off. - Some general rationalization of the whole help system. Duncan Murdoch MISC: I understand that \link[=className-class]{className} is part of standard Rd conventions, but to the best of my knowledge \link[=className.class]{className} is not, correct? I would like

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Duncan Murdoch
On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: - Ways to link from man pages to vignettes. The reverse would be nice, but it's not possible with the current design, so that would be far off. If feasible I would

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Duncan Murdoch
On 24/09/2009 5:42 AM, Romain Francois wrote: On 09/24/2009 11:28 AM, Duncan Murdoch wrote: On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: - Ways to link from man pages to vignettes. The reverse would be nice

Re: [Rd] Crash due to extreme example

2009-09-24 Thread Duncan Murdoch
Now fixed, in R-devel and R-patched. Duncan Murdoch On 23/09/2009 7:10 PM, Saptarshi Guha wrote: Hello, I was trying this bit of code (i know it is an extreme case) g=function(r){ if(r==1) return(list(x=1)) else return(list(x=g(r-1))) } For z=g(500), the code runs

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Duncan Murdoch
On 24/09/2009 6:29 AM, Romain Francois wrote: On 09/24/2009 12:04 PM, Duncan Murdoch wrote: On 24/09/2009 5:42 AM, Romain Francois wrote: On 09/24/2009 11:28 AM, Duncan Murdoch wrote: On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch

Re: [Rd] R v2.10.0: Doc clarification for cross references and where are we heading?

2009-09-24 Thread Duncan Murdoch
On 24/09/2009 7:30 AM, Duncan Murdoch wrote: On 24/09/2009 6:29 AM, Romain Francois wrote: On 09/24/2009 12:04 PM, Duncan Murdoch wrote: On 24/09/2009 5:42 AM, Romain Francois wrote: On 09/24/2009 11:28 AM, Duncan Murdoch wrote: On 23/09/2009 11:21 PM, Gabor Grothendieck wrote: On Wed

Re: [Rd] Crash due to extreme example

2009-09-24 Thread Duncan Murdoch
On 9/24/2009 11:00 AM, Saptarshi Guha wrote: Thanks. What caused problem? R builds up the element name (x$x$x ...) in a fixed size buffer. There was code to detect when the buffer was full and stop building the name, but it was buggy. I patched the bug. Duncan Murdoch Regards

Re: [Rd] Rtools210 missing jpeg-7?

2009-09-26 Thread Duncan Murdoch
be updated to R_HOME/library/grDevices/libs/. h. Thanks. I'm on the road for a few days, so this might not get fixed right away, but you've found the workaround. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [Rd] Downloading R-2.10.0

2009-09-29 Thread Duncan Murdoch
, but there may be some glitches... Duncan Murdoch Best, Uwe Ligges Gabor Grothendieck wrote: For Windows, this page http://cran.r-project.org/bin/windows/base/ gives a link to download - R 2.9.2 - r-patched (R 2.9.2 patched) - old releases and - r-devel (R 2.11.0) but there is no obvious link to R

Re: [Rd] buglet in is.na?

2009-09-30 Thread Duncan Murdoch
it clearer, and you think this is the sort of error someone would not understand given the warning message, please submit a patch. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] buglet in is.na?

2009-09-30 Thread Duncan Murdoch
to be in trouble if someone passes in a vector of numbers, some of which are NA and some of which are not? Duncan Murdoch Nicholas On Wed, 30 Sep 2009 14:41 -0400, Duncan Murdoch murd...@stats.uwo.ca wrote: On 9/30/2009 2:29 PM, Nicholas Lewin-Koh wrote: Hi the following example I think demonstrates

[Rd] Rd.sty question: LaTeX expert needed

2009-10-01 Thread Duncan Murdoch
it illegal to nest \preformatted within other macros, but that seems to be an unfortunate limitation. Any help would be appreciated. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] creating environments in package's C code

2009-10-01 Thread Duncan Murdoch
. That is, use SEXP env; PROTECT(env = NewEnv(R_GlobalEnv)); defineVar(install(OK),NewInteger(0),env); UNPROTECT(1); Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Dependency 'sma' is not available

2009-10-02 Thread Duncan Murdoch
of open source is that someone else could take over maintenance of sma if it is open source and the original author is no longer interested. You should think about doing it, or recruiting someone with the necessary skills if you don't have them. Duncan Murdoch Martin

Re: [Rd] environment( seq.int ) is NULL

2009-10-02 Thread Duncan Murdoch
fix it. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] plotmath documentation (PR#13978)

2009-10-02 Thread Duncan Murdoch
This is not a bug, because it does, in the very first sentence of the Details section: A mathematical expression must obey the normal rules of syntax for any R expression... Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] how to document stuff most users don't want to see

2009-10-05 Thread Duncan Murdoch
that was generated by this code: Further information is available in the following \link{vignettes}: \tabular{ll}{ \code{grid} \tab Introduction to \code{grid} (\url{../doc/grid.pdf})\cr \code{displaylist} \tab Display Lists in \code{grid} (\url{../doc/displaylist.pdf})\cr ... Duncan Murdoch

Re: [Rd] unit testing for R packages?

2009-10-05 Thread Duncan Murdoch
but didn't find anything. Are there any suggestions out there? Nothing very specific, but what there is is described in that manual in the discussion of the tests subdirectory. Duncan Murdoch Currently I have several (a lot?) classes/methods that I keep tinkering with, and I'd like to run

Re: [Rd] unit testing for R packages?

2009-10-05 Thread Duncan Murdoch
{)} This will fail in a future release of R, because those aren't valid expressions within \dontshow{}, which expects R code. You can achieve the same effect using the clearer all.equal(A,B) \dontshow{ stopifnot(isTrue(.Last.value)) } Duncan Murdoch I think it helps the documentation to include

Re: [Rd] unit testing for R packages?

2009-10-05 Thread Duncan Murdoch
. But 2.11.0 (due next spring) may well enforce the rules that have been documented but unenforced since before the release of 2.9.0. Duncan Murdoch Thanks, Spencer Duncan Murdoch wrote: On 05/10/2009 4:39 PM, spencerg wrote: I put unit test in the examples, using \dontshow to hide

Re: [Rd] Help file doesn't display correctly

2009-10-06 Thread Duncan Murdoch
the browser is open (hopefully the server is handling this safely; it hasn't crashed for me yet). I'll commit this... Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] inconsistency in return value of peaks() {splus2R} (PR#13988)

2009-10-07 Thread Duncan Murdoch
vi...@phil.uu.nl wrote: Full_Name: Benny van der Vijgh Version: 2.7.2 OS: Windows Vista Submission from: (NULL) (194.171.252.108) The return value of peaks() in package splus2R is not consistent. This is not an R bug. Please contact the author of that package. Duncan Murdoch

Re: [Rd] R-10 alpha windows() bug?

2009-10-09 Thread Duncan Murdoch
of the control panel applet for the display.) By default, R tries to create a window that is 7 inches by 7 inches. Does it look as though it's getting the pixel count for that correct? Does specifying the xpinch and ypinch values in windows.options() help? Duncan Murdoch I am

Re: [Rd] Possible bug in the Rd parser?

2009-10-10 Thread Duncan Murdoch
it at the end). I don't know LaTeX well enough to tell you the best workaround for this, but one option is to used the recently added \if or \ifelse and \out macros instead of \deqn. Of course, that will make your Rd file unusable in earlier versions, so it's not necessarily the best idea. Duncan

Re: [Rd] Possible bug in the Rd parser?

2009-10-10 Thread Duncan Murdoch
that provides cases, or a conflict with our Rd.sty file, but I don't know which. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Possible bug in the Rd parser?

2009-10-10 Thread Duncan Murdoch
On 10/10/2009 2:25 PM, Duncan Murdoch wrote: On 10/10/2009 8:07 AM, Mathieu Ribatet wrote: Dear list, I got an automatic email complaining than some of my packages didn't pass 'R CMD check' for R-2.10.0 alpha anymore. Both of them make use of the cases LaTeX environment. Inspecting the log

Re: [Rd] Possible bug in the Rd parser?

2009-10-11 Thread Duncan Murdoch
, but mainly it detects things that weren't working before, but were undetected as errors. Duncan Murdoch Cheers, Mathieu Le samedi 10 octobre 2009 à 20:40 +0200, Duncan Murdoch a écrit : On 10/10/2009 2:25 PM, Duncan Murdoch wrote: On 10/10/2009 8:07 AM, Mathieu Ribatet wrote: Dear

Re: [Rd] unexpected behavior in list of lexical closures (PR#14004)

2009-10-13 Thread Duncan Murdoch
to do it, but any expression evaluating the argument will work. Duncan Murdoch The following code creates a list of functions that are lexically closed over a single argument. If a print statement is included then each function in the list evaluates to a different value. If the print

Re: [Rd] MASS (and class, nnet, spatial) for R 2.10.0 ?

2009-10-14 Thread Duncan Murdoch
, and spatial, which are now separate recommended packages, whose source is included in the R source tarball, or on CRAN in http://cran.r-project.org/src/contrib/2.10.0/Recommended/ Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] R RSS feed

2009-10-15 Thread Duncan Murdoch
look like, I'll fix it. Duncan Murdoch Paul La version française suit le texte anglais. This email may contain privileged

Re: [Rd] Eigenvalue Bug in psych principal (PR#14010)

2009-10-15 Thread Duncan Murdoch
, but no longer in 2.9.2. For example: This is not a bug report about R. You should contact the maintainers of the packages involved. Duncan Murdoch library(MBESS) data(HS.data) library(psych) Subset the dataset to include only 8 variables new.data-subset(HS.data, select=c(deduct, numeric

Re: [Rd] R RSS feed

2009-10-15 Thread Duncan Murdoch
tags (e.g. LI without /LI, a typical problem I found, at least in http://developer.r-project.org/blosxom.cgi/R-devel/NEWS/index.rss). Thanks, will fix those. Duncan Murdoch These problems will make the browsers choke but I also find Google Reader does not mind at all -- you can still read the RSS

Re: [Rd] Question when compiling source code with VC++

2009-10-15 Thread Duncan Murdoch
. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Fixing html help port in 2.10

2009-10-16 Thread Duncan Murdoch
? Perhaps we could consult an environment variable or option() to choose the port instead of leaving it completely random. The reason it is random is the worry that multiple R instances on the same machine might collide. All processes on the machine see the same ports. Duncan Murdoch

Re: [Rd] linking to package directories broken in R = 2.10 beta

2009-10-17 Thread Duncan Murdoch
, but not for an arbitrary path. We are concerned about security: any user on your system who can guess your port number can access your help system, so we want to be sure that such users can't access private files. Duncan Murdoch I very much enjoy the new help system and would be even more

Re: [Rd] Specifying (set of random) port numbers for the help HTML server (Was: Re: Fixing html help port in 2.10)

2009-10-18 Thread Duncan Murdoch
On 17/10/2009 12:08 AM, Henrik Bengtsson wrote: On Fri, Oct 16, 2009 at 7:54 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 10/16/2009 10:39 AM, Dieter Menne wrote: I noted that the new html-help in 2.10 under Windows uses a random port on my computer. This cause a problem, because when I

Re: [Rd] Specifying (set of random) port numbers for the help HTML server (Was: Re: Fixing html help port in 2.10)

2009-10-18 Thread Duncan Murdoch
On 18/10/2009 11:14 AM, Dieter Menne wrote: Duncan Murdoch-2 wrote: options(help.ports = sample(6800:6850)) Nice. So just in case I want options(help.ports = sample(6800:6800)) What would be the adverse effects (besides me having to check that that port is reasonable

Re: [Rd] linking to package directories broken in R = 2.10 beta

2009-10-18 Thread Duncan Murdoch
On 17/10/2009 1:57 PM, Thomas Petzoldt wrote: Duncan Murdoch wrote: Thomas Petzoldt wrote: [...] This is fine, but in contrast to older versions (= 2.9.2) no automatic index is created for the linked directory, so we now get: URL /library/foo/examples/ was not found but linking

Re: [Rd] linking to package directories broken in R = 2.10 beta

2009-10-18 Thread Duncan Murdoch
On 18/10/2009 4:45 PM, Thomas Petzoldt wrote: Duncan Murdoch wrote: [...] The doc directory is known to be visible. It might surprise someone if arbitrary directories were visible, and readable by any user. 2) The change will introduce additional work for package authors that used

Re: [Rd] Bug with .First in R 2.10

2009-10-18 Thread Duncan Murdoch
() will do it.) However, if I dump the function and source it, the problem goes away. So I suspect there is something wrong in the notOK.RData file. How did you create it? Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] Bug with .First in R 2.10

2009-10-19 Thread Duncan Murdoch
use a couple of different machines and (in the runup to 2.10) a couple of R versions. I've tracked this down to a problem when the .First is loaded from the image file, likely due to a change on Sept 29. Hopefully it will be fixed before release. Duncan Murdoch

Re: [Rd] Bug with .First in R 2.10

2009-10-20 Thread Duncan Murdoch
, this one started to manifest itself. It should be okay in RC builds newer than r50178 (which should show up by tomorrow on most platforms). Thanks for making this reproducible! Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] source and textConnection

2009-10-22 Thread Duncan Murdoch
because then I have to adapt a certain mechanism in RExcel. I think this is a bug, but it may not be serious enough to fix during code freeze, so there's a good chance it will remain in 2.10.0, but hopefully not in later releases. I'll take a look today. Duncan Murdoch

Re: [Rd] Error in link in Rd file stops package installation

2009-10-23 Thread Duncan Murdoch
On 10/22/2009 11:03 PM, William Dunlap wrote: The following patch seems to get the warning message right Thanks, I'll put this in if nobody else gets there first. Duncan Murdoch lag.zoo html Rd warning: ./man/lag.zoo.Rd:54: file link 'diff' in package

Re: [Rd] source and textConnection

2009-10-23 Thread Duncan Murdoch
to find when they're fresh, which is why we ask people to try out the R-devel builds. In this case, it's obvious how to fix the bug, but I'd rather not do that until I see what the change that caused it was intended to do: I don't want to undo that. Duncan Murdoch

Re: [Rd] source and textConnection

2009-10-23 Thread Duncan Murdoch
On 10/23/2009 8:27 AM, Duncan Murdoch wrote: On 10/22/2009 7:21 AM, Erich Neuwirth wrote: Using todays freshly downloaded compiled version of R-2.10.0 beta let me pose this question once again: myconn-textConnection(print(11*11)) source(myconn) produces [1] 121 Warning message: In source

Re: [Rd] R CMD check: Error in .C

2009-10-26 Thread Duncan Murdoch
mypackage? Duncan Murdoch Many thanks. -- Etienne Laliberté Rural Ecology Research Group School of Forestry University of Canterbury Private Bag 4800 Christchurch 8140, New Zealand Phone: +64 3 366 7001 ext. 8365 Fax: +64 3 364 2124 www.elaliberte.info

Re: [Rd] Typo in help(parse_Rd, package=tools)

2009-10-27 Thread Duncan Murdoch
On 26/10/2009 10:44 PM, Henrik Bengtsson wrote: Under See Also in help(parse_Rd, package=tools) it says: Rd2HTML for the converters that use the output of parseRd. Should be parse_Rd not parseRd. Thanks, fixed. Duncan Murdoch sessionInfo() R version 2.10.0 Patched (2009-10-26 r50212

Re: [Rd] mysteriously persistent generic definition

2009-10-28 Thread Duncan Murdoch
this problem, nor does 2.9.2, or 2.8.1. I think you'll just have to upgrade. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Help with lang4

2009-10-29 Thread Duncan Murdoch
On 29/10/2009 10:38 AM, Abhijit Bera wrote: Can't find the source to Rf_lang* series of functions. :| They're in src/include/Rinlinedfuns.h. Duncan Murdoch But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install(myfunction),arg1,arg2,arg3); PROTECT(SETCAR

Re: [Rd] parse_Rd and/or lazyload problem

2009-10-30 Thread Duncan Murdoch
objects, because it counts every environment separately, even though they may all be references to the same one. I haven't looked at your code, but that could be a problem. Duncan Murdoch The examples below use files which can be found at ftp://ftp.csiro.au/MarkBravington, but you'll obviously

Re: [Rd] parse_Rd and/or lazyload problem

2009-10-31 Thread Duncan Murdoch
the problem without using internals directly, I'll follow up.) Duncan Murdoch I'm encountering problems when making lazy-loadable databases of the output from 'parse_Rd'. The lazy- load database is of seemingly limitless size when I try to reload it... Admittedly I am using functions

Re: [Rd] parse_Rd and/or lazyload problem

2009-11-01 Thread Duncan Murdoch
of 'makeLazyLoadDB' is quite standard. The problem is not easy to reproduce. It took 4-5 hours work to get the 3-line reproducible example that I posted, plus another couple since, so I'm also reluctant to spend more time... Okay, then we both agree we should drop it. Duncan Murdoch

Re: [Rd] parse_Rd and/or lazyload problem

2009-11-01 Thread Duncan Murdoch
On 01/11/2009 3:12 PM, mark.braving...@csiro.au wrote: Okay, then we both agree we should drop it. Duncan Murdoch No we don't. I can't provide a functioning mvbutils, or debug, until this is resolved. I am trying to be a good citizen and prepare reproducible bug reports-- e.g. the 3 line

Re: [Rd] Request: bring back windows chm help support (PR#14034)

2009-11-01 Thread Duncan Murdoch
to reinstate it. They're much more interested in market research than R Core is, because their customers pay them for their product. They'd probably be happy to sell you an enhanced R supporting CHM help if they think there's a market for it. Duncan Murdoch

Re: [Rd] Request: bring back windows chm help support (PR#14034)

2009-11-01 Thread Duncan Murdoch
On 01/11/2009 5:47 PM, alexios wrote: Peter Ehlers wrote: Duncan Murdoch wrote: On 31/10/2009 6:05 PM, alex...@4dscape.com wrote: Full_Name: alex galanos Version: 2.10.0 OS: windows vista Submission from: (NULL) (86.11.78.110) I respectfully request that the chm help support for windows

Re: [Rd] recover and called from information

2009-11-01 Thread Duncan Murdoch
I've put a fix for this in place in R-devel now. It required adding another parameter to browser(), so I'd like to test it out a while before backporting it to 2.10.0 patched. Please give it a try, and let me know if you notice anything wrong. Duncan Murdoch On 27/10/2009 12:51 PM, Romain

Re: [Rd] likely bug in 'serialize' or please explain the memory usage

2009-11-03 Thread Duncan Murdoch
. If they need to refer to local variables in the creating frame, then you'll get all of them, so be careful about what you create there. If they don't need to refer to the local frame you can just attach a new smaller environment after building the function. Duncan Murdoch Sklyar, Oleg (London) wrote

Re: [Rd] likely bug in 'serialize' or please explain the memory usage

2009-11-03 Thread Duncan Murdoch
wouldn't call it a bug. Duncan Murdoch Both have their own environments, so I do not see why it should be different. As an interim measure I just removed all the inline function definitions from these 'parallel' calls defining the functions as hidden outside of the caller, a bit ugly but works

Re: [Rd] Request: bring back windows chm help support (PR#14034)

2009-11-03 Thread Duncan Murdoch
things as bugs or expect everything to be in its final state, but do point out things that are causing problems. Duncan Murdoch One more comment inline. On Mon, 2 Nov 2009, John Fox wrote: Dear Alexios and Duncan, I think that there's one more thing to be said in favour of chm help

Re: [Rd] error in install.packages() (PR#14042)

2009-11-04 Thread Duncan Murdoch
, it is happening in one of the filters. I'd guess it happens because your repository has only one entry (a missed drop=FALSE somewhere maybe) or because the filter is finding no matches. I'll track down the details and fix it. Thanks for the report. Duncan Murdoch

Re: [Rd] error in install.packages() (PR#14042)

2009-11-04 Thread Duncan Murdoch
coerced the vector to a list, and then the invalid subscript type 'list' came soon after. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] error in install.packages() (PR#14042)

2009-11-04 Thread Duncan Murdoch
On 11/4/2009 12:15 PM, William Dunlap wrote: -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Wednesday, November 04, 2009 8:47 AM To: michael.m.spie...@gmail.com Cc: r-b...@r-project.org; r-de

[Rd] sapply improvements

2009-11-04 Thread Duncan Murdoch
On 11/4/2009 12:15 PM, William Dunlap wrote: -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Wednesday, November 04, 2009 8:47 AM To: michael.m.spie...@gmail.com Cc: r-b...@r-project.org; r-de

Re: [Rd] Small patch to packages.R

2009-11-07 Thread Duncan Murdoch
On 06/11/2009 9:49 AM, Chris Masters wrote: Very small patch to packages.R install.packages on an internal package repository that worked with 2.9 failed in 2.10 Problem: available.packages(contriburl=http://url.to.my/repo;) Error in f(res) : invalid subscript type 'list' This occurred

Re: [Rd] RSiteSearch and my R site

2009-11-08 Thread Duncan Murdoch
On 08/11/2009 7:23 AM, Jonathan Baron wrote: Duncan, This is not a problem with anything you just did, but I'm writing you and ccing r-devel, in case I am allowed to post there (which I think I'm not). R-devel is a public list, no problem posting here. The problem (in case this gets to

Re: [Rd] Bug in all.equal() or in the plm package

2009-11-09 Thread Duncan Murdoch
is that the length.Formula method in the Formula package (which plm depends on) returns a vector of length 2. Now there's nothing in R that requires length() to return a scalar, but all.equal assumes it does, and I'd guess there are lots of other places this assumption is made. Duncan Murdoch

Re: [Rd] \\signature macro generated by promptMethods

2009-11-09 Thread Duncan Murdoch
\R's internal code.} Duncan Murdoch setClass(track, + representation(x=numeric, y=numeric)) [1] track setGeneric(foo, function(x){ standardGeneric(foo) } ) [1] foo setMethod( foo, track, function(x){ NULL } ) [1] foo promptMethods( foo ) A shell of methods documentation has

Re: [Rd] \\signature macro generated by promptMethods

2009-11-09 Thread Duncan Murdoch
On 11/9/2009 8:12 AM, Duncan Murdoch wrote: On 09/11/2009 7:39 AM, Romain Francois wrote: Hello, promptMethods generate a macro for signatures, but the macro does not exist in the Rd parser. Right, that's not supposed to be a macro. See ?cbind2 for an example, \item{\code{signature(x

Re: [Rd] Negative integer subscripts in [[?

2009-11-09 Thread Duncan Murdoch
a function exactly, by walking down the parse tree. I think it's something that would be rarely used, but when you need it, it's very handy. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2009-11-11 Thread Duncan Murdoch
system, or only apply on your system. I think the hardest part of doing this would be designing the output; actually implementing it would not be so bad. Duncan Murdoch -- Tony Plate Tony Plate wrote: The VALUE section in the help for 'unlink' says: | 0| for success, |1| for failure

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

2009-11-11 Thread Duncan Murdoch
Henrik Bengtsson wrote: On Wed, Nov 11, 2009 at 11:36 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 10/11/2009 11:16 PM, Tony Plate wrote: PS, I should have said that I'm reading the docs for unlink in R-2.10.0 on a Linux system. The docs that appear in a Windows installation of R

Re: [Rd] Help in 2.10 lost its Find feature

2009-11-11 Thread Duncan Murdoch
. It would need indexing of the content of the pages, and Javascript or similar to access the indices. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Building package under windows which links against a cygwin library

2009-11-11 Thread Duncan Murdoch
write your R interface to it, and everything may just work. The tricky bit might be getting the Makevars or Makefile right, but theirs is really simple, so that shouldn't be so bad. Duncan Murdoch __ R-devel@r-project.org mailing list https

Re: [Rd] Building package under windows which links against a cygwin library

2009-11-11 Thread Duncan Murdoch
On 11/11/2009 6:49 PM, Cameron Bracken wrote: On Wed, Nov 11, 2009 at 4:36 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 11/11/2009 4:41 PM, Cameron Bracken wrote: I am developing a package (http://r-forge.r-project.org/projects/swfdevice/) which links against the ming C library

Re: [Rd] Building package under windows which links against a cygwin library

2009-11-11 Thread Duncan Murdoch
On 11/11/2009 8:03 PM, Cameron Bracken wrote: On Wed, Nov 11, 2009 at 5:15 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 11/11/2009 6:49 PM, Cameron Bracken wrote: On Wed, Nov 11, 2009 at 4:36 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 11/11/2009 4:41 PM, Cameron Bracken wrote: I

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

2009-11-11 Thread Duncan Murdoch
On 11/11/2009 9:49 PM, Seth Falcon wrote: On 11/11/09 2:36 AM, Duncan Murdoch wrote: On 10/11/2009 11:16 PM, Tony Plate wrote: PS, I should have said that I'm reading the docs for unlink in R-2.10.0 on a Linux system. The docs that appear in a Windows installation of R are different

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

2009-11-12 Thread Duncan Murdoch
Martin Maechler wrote: SF == Seth Falcon s...@userprimary.net on Wed, 11 Nov 2009 18:49:12 -0800 writes: SF On 11/11/09 2:36 AM, Duncan Murdoch wrote: On 10/11/2009 11:16 PM, Tony Plate wrote: PS, I should have said that I'm reading the docs for unlink in R

Re: [Rd] sapply improvements

2009-11-12 Thread Duncan Murdoch
. Column names of the matrix value or names of the vector value are set from ‘X’ as in ‘sapply’. Thanks for suggesting this. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-13 Thread Duncan Murdoch
in an environment. But then it would be inconsistent with what it does in other situations. Duncan Murdoch The biggest advantage is that it will easily eliminate a whole class of programming error. The biggest disadvantage is that it is not backwards-compatible with old R programs. I suppose

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-13 Thread Duncan Murdoch
On 11/13/2009 2:39 PM, Trishank Karthik Kuppusamy wrote: Hello Duncan, Thanks for your reply. On Nov 13, 2009, at 2:27 PM, Duncan Murdoch wrote: You get the same behaviour when asking for a nonexistent element of a list, or a nonexistent attribute. If you want stricter checking, don't use

Re: [Rd] plot arguments (PR#14063)

2009-11-13 Thread Duncan Murdoch
in case of problems - luckily I had an old executable. Where did you download from that didn't have earlier versions posted? Duncan Murdoch Regards, Colin Dr Colin Harpham Senior Research Associate Climatic Research Unit School of Environmental Sciences University of East Anglia

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-13 Thread Duncan Murdoch
On 11/13/2009 3:03 PM, Trishank Karthik Kuppusamy wrote: On Nov 13, 2009, at 2:47 PM, Duncan Murdoch wrote: Inconsistent with what happens for lists: x - list() x$b NULL and attributes: attr(x, b) NULL Ah, I see. I would claim that the same argument for default safety should apply

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-13 Thread Duncan Murdoch
the parent of the environment to emptyenv() when you created it? Duncan Murdoch On Fri, Nov 13, 2009 at 2:27 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 11/13/2009 2:03 PM, Trishank Karthik Kuppusamy wrote: Greetings everyone, I have a question about the default behaviour of a missing

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-13 Thread Duncan Murdoch
On 13/11/2009 7:26 PM, Gabor Grothendieck wrote: On Fri, Nov 13, 2009 at 7:21 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 6:39 PM, Gabor Grothendieck wrote: Note that one should use inherits = FALSE argument on get and exists to avoid returning objects from the parent

Re: [Rd] Suggestion: Add links to NEWS and CHANGES on help.start() page

2009-11-15 Thread Duncan Murdoch
use the news() function, but it requires the news2HTML translation to give nice looking output. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Suggestion: Add links to NEWS and CHANGES on help.start() page

2009-11-15 Thread Duncan Murdoch
CRAN page such as: http://cran.r-project.org/package=zoo but the demos are not listed even there. The structure is in place for displaying package news, but it doesn't display yet. I think Kurt Hornik is working on the actual display. Duncan Murdoch On Fri, Nov 13, 2009 at 3:37 AM

Re: [Rd] n=1 default for random number generators

2009-11-16 Thread Duncan Murdoch
. Is there anyone in the core team who would be willing to include this change? I doubt it. Even if you put together the patch (and I didn't see an offer to do so), merging it into the trunk code would take more work than you'd save in several years of typing the 1. Duncan Murdoch

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-16 Thread Duncan Murdoch
On 11/16/2009 12:07 PM, Robert Gentleman wrote: Hi, On Fri, Nov 13, 2009 at 4:55 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 7:26 PM, Gabor Grothendieck wrote: On Fri, Nov 13, 2009 at 7:21 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 6:39 PM, Gabor

Re: [Rd] R crash with intToUtf8 on huge vectors (PR#14068)

2009-11-16 Thread Duncan Murdoch
[5] LC_TIME=German_Germany.1252 attached base packages: [1] stats graphics grDevices datasets utils methods base other attached packages: [1] RODBC_1.3-1 I didn't have RODBC present, and was working in an English_United States.1252 locale. Duncan Murdoch Many

Re: [Rd] make.packages.html

2009-11-17 Thread Duncan Murdoch
(.DESCRIPTION$, , pg))) } Thanks, I'll take a look. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] make.packages.html

2009-11-17 Thread Duncan Murdoch
(.DESCRIPTION$, , pg))) } I've committed your patch to R-devel and R-patched now. Thanks! Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R crash with intToUtf8 on huge vectors (PR#14068)

2009-11-17 Thread Duncan Murdoch
)) Brian Ripley has tracked this one down and a fix should appear shortly. The intToUtf8 code was written for reasonably small conversions, and it overflowed the stack when it tried to produce a 20 megabyte string there. Do you have a real application that works with such large strings? Duncan

Re: [Rd] Link to pdf documentation from other package ?

2009-11-18 Thread Duncan Murdoch
me know if this doesn't work, I haven't tested. Duncan Murdoch Thanks for any suggestions, regards, Ulrike __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Link to pdf documentation from other package ?

2009-11-18 Thread Duncan Murdoch
Ulrike Groemping wrote: Duncan Murdoch-2 wrote: Ulrike Groemping wrote: Dear developeRs, I have not found anything recent about how to link to a vignette or other documentation from within Rd-files. Is this now possible with the new help system ? For example, I would like to link

Re: [Rd] Link to pdf documentation from other package ?

2009-11-18 Thread Duncan Murdoch
On 11/18/2009 7:28 AM, Ulrike Grömping wrote: Duncan Murdoch schrieb: Ulrike Groemping wrote: Duncan Murdoch-2 wrote: Ulrike Groemping wrote: Dear developeRs, I have not found anything recent about how to link to a vignette or other documentation from within Rd-files. Is this now

Re: [Rd] Link to pdf documentation from other package ?

2009-11-18 Thread Duncan Murdoch
On 11/18/2009 8:01 AM, ml-it-r-de...@epigenomics.com wrote: Ulrike Grömping wrote, On 11/18/09 13:28: Duncan Murdoch schrieb: Ulrike Groemping wrote: Duncan Murdoch-2 wrote: Ulrike Groemping wrote: Dear developeRs, I have not found anything recent about how to link to a vignette

Re: [Rd] Issue when calling deparse(substitute(x)) from C with anonymous R vectors ?

2009-11-19 Thread Duncan Murdoch
Can you put together a minimal, self contained example, not requiring an external system? This has the symptoms of a bug in the external code (e.g. a missing PROTECT), but it is possible it's a bug in R. Duncan Murdoch On 19/11/2009 2:40 AM, Laurent Gautier wrote: Dear list, When calling

Re: [Rd] Issue when calling deparse(substitute(x)) from C with anonymous R vectors ?

2009-11-19 Thread Duncan Murdoch
On 19/11/2009 6:32 AM, Duncan Murdoch wrote: Can you put together a minimal, self contained example, not requiring an external system? This has the symptoms of a bug in the external code (e.g. a missing PROTECT), but it is possible it's a bug in R. And I should have read the followups before

Re: [Rd] R strings, null-terminated or size delimited?

2009-11-21 Thread Duncan Murdoch
substantial isn't going to be feasible. Duncan Murdoch I'm already using #define USE_RINTERNALS in my .c file to inspect R values. Basically, what are the macros or functions to access the values of the vecsexps? VECTOR_ELT and SET_VECTOR_ELT (assuming that you're referring to VECSXP which

<    1   2   3   4   5   6   7   8   9   10   >