[Rd] unname() returns a named vector when the input vector has length 0

2009-11-11 Thread Hervé Pagès
Hi, > x <- c(aa=22, bb=555) > unname(x[FALSE]) named numeric(0) Cheers, H. > sessionInfo() R version 2.10.0 (2009-10-26) x86_64-unknown-linux-gnu locale: [1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_CA.UTF-8LC_COLLATE=en_CA.UTF-8 [5] LC_MONETARY=C LC_MESSA

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 (the Window

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

2009-11-11 Thread Cameron Bracken
On Wed, Nov 11, 2009 at 8:06 PM, Duncan Murdoch wrote: > On 11/11/2009 8:03 PM, Cameron Bracken wrote: >> >> On Wed, Nov 11, 2009 at 5:15 PM, Duncan Murdoch >> wrote: >>> >>> On 11/11/2009 6:49 PM, Cameron Bracken wrote: On Wed, Nov 11, 2009 at 4:36 PM, Duncan Murdoch wrote: >

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 wrote: On 11/11/2009 6:49 PM, Cameron Bracken wrote: On Wed, Nov 11, 2009 at 4:36 PM, Duncan Murdoch wrote: On 11/11/2009 4:41 PM, Cameron Bracken wrote: I am developing a package (http://r-forge.r

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

2009-11-11 Thread Seth Falcon
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 (the Windows docs do not mention that not all systems

Re: [Rd] html help in Windows

2009-11-11 Thread Marc Schwartz
On Nov 11, 2009, at 6:54 PM, Fraser Sim wrote: Hi all, Another comment re: html help in Windows. It seems that we've lost the functionality of being able to browse the other functions in a package. In chm, after calling a help function on 'arrayw' in say package 'limma' in BioC, it was p

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

2009-11-11 Thread Cameron Bracken
On Wed, Nov 11, 2009 at 5:15 PM, Duncan Murdoch wrote: > On 11/11/2009 6:49 PM, Cameron Bracken wrote: >> >> On Wed, Nov 11, 2009 at 4:36 PM, Duncan Murdoch >> wrote: >>> >>> On 11/11/2009 4:41 PM, Cameron Bracken wrote: I am developing a package (http://r-forge.r-project.org/proje

Re: [Rd] html help in Windows

2009-11-11 Thread Gabor Grothendieck
This has already been discussed on this list. Its now a link at the bottom of the page labeled Index. On Wed, Nov 11, 2009 at 7:54 PM, Fraser Sim wrote: > Hi all, > > > > Another comment re: html help in Windows. It seems that we've lost the > functionality of being able to browse the other func

[Rd] html help in Windows

2009-11-11 Thread Fraser Sim
Hi all, Another comment re: html help in Windows. It seems that we've lost the functionality of being able to browse the other functions in a package. In chm, after calling a help function on 'arrayw' in say package 'limma' in BioC, it was possible to see all of the other functions in the limma

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

2009-11-11 Thread Cameron Bracken
On Wed, Nov 11, 2009 at 4:36 PM, Duncan Murdoch 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. The package builds fine under Mac OS X and Linux. >> I am really

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 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. The package builds fine under

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

2009-11-11 Thread Duncan Murdoch
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. The package builds fine under Mac OS X and Linux. I am really out of my element on windows, but I know there is a cygwin package for l

[Rd] Fwd: fameInit TSfame fame.dll

2009-11-11 Thread Bunny, lautloscrew.com
> > Dear all, > > i used Paul Gilbert´s great TSfame to make R interact with fame. I had to > dyn.load("chli.dll") and dyn.load("fame.dll") manually but everything has > worked well so far. Unfortunately my system has been deleted and reinstalled, > but i still have a working fame client an

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

2009-11-11 Thread Cameron Bracken
I am developing a package (http://r-forge.r-project.org/projects/swfdevice/) which links against the ming C library. The package builds fine under Mac OS X and Linux. I am really out of my element on windows, but I know there is a cygwin package for libming. My question is, does anyone have advice

Re: [Rd] Clarification on generic functions and methods

2009-11-11 Thread Doran, Harold
Hi Ken: Well, I'm quite pleased with a solution I found. The t.test method and its .Rd file showed me that I can export only the generic method, use \alias{jml2.default} and \alias{jml2.formula} in the .Rd file for jml2, and then use \method{jml2}{default}{args} and \method{jml2}{formula}{args}

Re: [Rd] Clarification on generic functions and methods

2009-11-11 Thread Ken Knoblauch
Doran, Harold air.org> writes: > > Thank you, Henrik. This actually doesn't work when I build the package, which may only require a slight > modification to what I'm doing now. First, I create a NAMESPACE as: > > ### NAMESPACE FILE CONTENTS > export(jml2) > S3method(jml2, fit) > S3method(jml2,

[Rd] Bug in the stats package (PR#14059)

2009-11-11 Thread j . zhang
This is a multi-part message in MIME format. --020309030400080109090707 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello dear Maintainer, I report a bug (or at least a weak point needing documentation)

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

2009-11-11 Thread hadley wickham
> I think it would be nice to get this back and make it less platform > specific.  It would need indexing of the content of the pages, and > Javascript or similar to access the indices. It would be nice to have an interface to something like lucene - would be useful for other projects apart from R

Re: [Rd] Clarification on generic functions and methods

2009-11-11 Thread Doran, Harold
Thank you, Henrik. This actually doesn't work when I build the package, which may only require a slight modification to what I'm doing now. First, I create a NAMESPACE as: ### NAMESPACE FILE CONTENTS export(jml2) S3method(jml2, fit) S3method(jml2, default) S3method(jml2, formula) S3method(print,

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

2009-11-11 Thread Daniel Murphy
That did it. Was having trouble searching 'help' for how to optionally configure 'help'. Thanks. -Dan On Wed, Nov 11, 2009 at 8:57 AM, Henrik Bengtsson wrote: > For the text based help, there is no search feature on Windows, e.g. > > options(help_type="text"); > help(readLines); > > but if you us

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

2009-11-11 Thread Duncan Murdoch
On 11/11/2009 11:40 AM, hadley wickham wrote: I understand that no one wanted to maintain the old Help, but one feature I used extensively -- as a newbie to R or to an unfamiliar package -- was the capability of searching for a word or phrase on the Help page itself. Ctrl-F/Command-F (Windows/mac

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

2009-11-11 Thread Henrik Bengtsson
For the text based help, there is no search feature on Windows, e.g. options(help_type="text"); help(readLines); but if you use the HTML-based help, you can use the browser's search features as suggested/wanted: options(help_type="html"); help(readLines); /Henrik On Wed, Nov 11, 2009 at 5:40

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

2009-11-11 Thread hadley wickham
> I understand that no one wanted to maintain the old Help, but one feature I > used extensively -- as a newbie to R or to an unfamiliar package -- was the > capability of searching for a word or phrase on the Help page itself. > Ctrl-F/Command-F (Windows/mac) 'differently-phrased-capability' was a

[Rd] Help in 2.10 lost its "Find" feature

2009-11-11 Thread Daniel Murphy
Sirs: I understand that no one wanted to maintain the old Help, but one feature I used extensively -- as a newbie to R or to an unfamiliar package -- was the capability of searching for a word or phrase on the Help page itself. Ctrl-F/Command-F (Windows/mac) 'differently-phrased-capability' was a

Re: [Rd] Clarification on generic functions and methods

2009-11-11 Thread Henrik Bengtsson
Using jml <- function(...) UseMethod("jml") will do. /Henrik On Wed, Nov 11, 2009 at 4:26 PM, Doran, Harold wrote: > I have constructed the following functions and need a little clarification: > > ### function to fit the model parameters > jml.fit <- function(dat, con = 1e-3, bias=FALSE, ...)

Re: [Rd] R 2.10.0 Mac OS X 10.6 (PR#14058)

2009-11-11 Thread simon . urbanek
Stephen, I cannot reproduce it (using Leopard build). Please supply full information (including sessionInfo() and version of the GUI used) as required by the posing guide. Thanks, Simon On Nov 11, 2009, at 7:50 , step...@prollenium.com wrote: > > --Apple-Mail-56-463481941 > Content-Transf

[Rd] Clarification on generic functions and methods

2009-11-11 Thread Doran, Harold
I have constructed the following functions and need a little clarification: ### function to fit the model parameters jml.fit <- function(dat, con = 1e-3, bias=FALSE, ...){ do stuff ... } ### default function which calls jml.fit jml.default <- function(dat, con = 1e-3, bias=FALSE, ...){

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

2009-11-11 Thread Henrik Bengtsson
On Wed, Nov 11, 2009 at 12:55 PM, Duncan Murdoch wrote: > Henrik Bengtsson wrote: >> >> On Wed, Nov 11, 2009 at 11: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 >>>

Re: [Rd] Unexpected behaviour of seq(from,to,by) (PR#14057)

2009-11-11 Thread Petr Savicky
> # Hi there. > # I'm not sure whether or not this is a bug. No, this is not a bug. See FAQ 7.31 at http://cran.r-project.org/doc/FAQ/R-FAQ.html and the comments below. > # But it surely is an unexpected behaviour. > > V <- seq(from=0,to=1,by=0.1) > > # Should generate a sequence with a step

Re: [Rd] polygon kills X-server (PR#14055)

2009-11-11 Thread Ludo Pagie
I was thinking along the same line. I have an NVidia, GeForce 6600 GT, 256 MB, NVIDIA Driver Version:169.12. Ludo On Wed, Nov 11, 2009 at 10:01:02AM +0100, Uwe Ligges wrote: > > > Ben Bolker wrote: >> xs4all.nl> writes: >> >>> Full_Name: Ludo Pagie >>> Version: 2.10.0 >>> OS: linux, ubuntu, 8.0

[Rd] Unexpected behaviour of seq(from,to,by) (PR#14057)

2009-11-11 Thread raimon . massanet
Full_Name: Raimon Massanet Version: 2.9.2 OS: Linux Ubuntu 8.10 Submission from: (NULL) (147.83.71.76) # Hi there. # I'm not sure whether or not this is a bug. # But it surely is an unexpected behaviour. V <- seq(from=0,to=1,by=0.1) # Should generate a sequence with a step of 0.1 V==0 # [1] T

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 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 (the W

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

2009-11-11 Thread Henrik Bengtsson
On Wed, Nov 11, 2009 at 11: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 (the Windows docs do not men

Re: [Rd] Help with fPortfolio

2009-11-11 Thread Yohan Chalabi
"AB" == Abhijit Bera on Wed, 11 Nov 2009 15:34:50 +0500 Hi Abhijit, Please note that cross-posting is considered to be impolite. AB> I'm getting the following errors while using the AB> efficientPortfolio function AB> even though I'm setting the target return to the mean of t

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

2009-11-11 Thread Duncan Murdoch
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 (the Windows docs do not mention that not all systems support recursive=TRUE). Here's a plea

[Rd] Help with fPortfolio

2009-11-11 Thread Abhijit Bera
Hi I'm getting the following errors while using the efficientPortfolio function even though I'm setting the target return to the mean of the TargetReturn I obtain from the portfolio object created by the feasiblePortfolio function. First Error: Error: targetReturn >= min(mu) is not TRUE Second E

Re: [Rd] polygon kills X-server (PR#14055)

2009-11-11 Thread Uwe Ligges
Ben Bolker wrote: xs4all.nl> writes: Full_Name: Ludo Pagie Version: 2.10.0 OS: linux, ubuntu, 8.04 Submission from: (NULL) (83.163.218.221) when I make a polygon with 100,000 vertices my X-server is being killed. This occurs in R-2.9.0 and a freshly installed R-2.10.0 I'm running Ubuntu wi