[Rd] [BUG?] utils::prompt(name=f)

2012-07-30 Thread Paul Roebuck
?prompt [SNIP] ## Create a help file for each function in the .GlobalEnv: for(f in ls()) if(is.function(get(f))) prompt(name = f) foo - function(x) { cat(x, '\n')} prompt(name=foo) Error in utils:::prompt(object, filename = filename, name = name, ...) : argument object is missing,

[Rd] Tcl/Tk Binding % Substitutions

2011-02-22 Thread Paul Roebuck
How should we translate something like the following? Tcl bind Frame Enter {%W config -bg red} such that the widget id (and other % substitutions) can be accessed in R callback? one - tkframe(width=30, height=30) tkbind(Frame, Enter, function(TBD} { ## Do

[Rd] Accessing Package NEWS (NEWS.Rd)

2011-02-19 Thread Paul Roebuck
Okay. So, after having spent quite some time never really tracking down why my package NEWS files were unacceptable to readNEWS(), I noticed that there was recent (to me anyway) development that allowed the NEWS to be done as an Rd file. Sweet! A more standard format... I converted a NEWS file in

Re: [Rd] Recover source from LazyLoaded installation

2010-07-27 Thread Paul Roebuck
I had already tried that but can't get past this: Error: package was built before R 2.10.0: please re-install it Sent from my iPhone On Jul 25, 2010, at 7:03 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Jul 23, 2010, at 2:46 PM, Paul Roebuck wrote: Is there a means

[Rd] Recover source from LazyLoaded installation

2010-07-25 Thread Paul Roebuck
Is there a means of recovering the source from a package with LazyLoad = true? Package is Windows 2.9.1 pure R but have no access to original. In R directory, I see pkgname, pkgname.rd[bx], sysdata.rd[bx]. Attempting this on OS X 10.6 with R-2.11.1 if it matters. Sent from my iPhone

Re: [Rd] Makevars, cc files in multiple directories

2009-10-29 Thread Paul Roebuck
On Thu, 29 Oct 2009, Saptarshi Guha wrote: In the src folder of my R package I have a.cc b.cc f/g/x.cc my Makevars.in has all: $(SHLIB) upon installing only, a.o and b.o is build and the final dll is comprised of a.o and b.o How can I instruct $(SHLIB) to pick up its source files

[Rd] doc buglet / relist method

2009-01-15 Thread Paul Roebuck
Under Details section for relist: objects into a vector representation. \code{relist()}, it's methods and * [GRAMMAR] Don't use apostrophes for possessive pronouns. R version 2.7.2 (2008-08-25) -- and --

[Rd] [Q] R CMD check signals error on code that works from UI

2009-01-15 Thread Paul Roebuck
Add the following to example section of a dot-Rd manpage: ## :WHY: The following kills R CMD check but runs fine on console. foos - c(aaa, bbb, ccc) cat(sapply(foos, function(foo) { sprintf(name: %-18s upper: %s\n, foo,

[Rd] doc buglet / attr method

2008-11-19 Thread Paul Roebuck
Under Value section for attr: For the extractor, the value of the attribute matched, or \code{NULL} if no exact match is found and no or more ^^ than one partial match is found. R version 2.7.2 (2008-08-25) -- and --

Re: [Rd] using yscrollcommand in tkcanvas crashes R (PR#13231)

2008-10-30 Thread Paul Roebuck
On Thu, 30 Oct 2008 [EMAIL PROTECTED] wrote: Full_Name: Sundar Dorai-Raj Version: 2.8.0 OS: Windows Submission from: (NULL) (76.220.41.126) The following code crashes R: library(tcltk) tt - tktoplevel() tc - tkcanvas(tt, yscrollcommand = function(...) tkset(ts, ...)) sessionInfo()

Re: [Rd] write.csv(..., col.names = FALSE) (PR#13202)

2008-10-26 Thread Paul Roebuck
On Fri, 24 Oct 2008 [EMAIL PROTECTED] wrote: in write.csv() it is not possible to set both row.names = FALSE, col.names = FALSE since the col.names = FALSE gets overwritten: write.csv function (...) { Call - match.call(expand.dots = TRUE) for (argname in c(col.names, sep, dec,

[Rd] doc buglet / dim method

2008-06-23 Thread Paul Roebuck
Under Value section for dim: The replacemnt method changes the dim attribute... ^^ should be replacement R version 2.7.1 RC (2008-06-20 r45965) -- SIGSIG -- signature too long (core dumped)

[Rd] slot(obj, nosuch) documentation question

2008-06-07 Thread Paul Roebuck
Using slot() on object (or @) and using a nonexistent slotname returns an error (see example code). R setClass(foobar, representation=list(a=numeric)) [1] foobar R foobar - new(foobar, a=5) R [EMAIL PROTECTED] [1] 5 R [EMAIL PROTECTED] Error: no slot of name b for this object of class foobar The

[Rd] doc buglet / as.Date method

2008-06-06 Thread Paul Roebuck
Under Details section for as.Date: as.Date will accept numeric data (the number of days since an epoch), but only is origin is supplied. ^^ should be if R version 2.7.0 Patched (2008-06-04 r45830) -- SIGSIG --

Re: [Rd] R-2.8.0 : get platform device with get(getOption(device))

2008-05-31 Thread Paul Roebuck
On Fri, 9 May 2008, Paul Roebuck wrote: On Thu, 8 May 2008, Peter Dalgaard wrote: [SNIP Ripley conversation] oThe device option now is a function in some standard setups. Consequentially, get(getOption(device)) will fail; programmers should usually use dev.new() instead

[Rd] doc buglet / system method

2008-05-21 Thread Paul Roebuck
Under Value section for system: If the command could not be run for any reason, the value is 256*127 = 52512. ^ should be 32512 R version 2.7.0 Patched (2008-05-20 r45743) -- SIGSIG -- signature too long (core dumped)

Re: [Rd] R-2.8.0 : get platform device with get(getOption(device))

2008-05-09 Thread Paul Roebuck
On Thu, 8 May 2008, Peter Dalgaard wrote: Prof Brian Ripley wrote: Here is the NEWS item, for 2.5.0 ooptions(device = ) now accepts a function object as well as the name of a function. The construct in the subject line has been broken ever since. Yet the change produced

Re: [Rd] Problem using ofstream in C++ class in package for MacOS X

2007-02-08 Thread Paul Roebuck
On Thu, 8 Feb 2007, Ross Boylan wrote: On Thu, Feb 08, 2007 at 11:53:21PM +0100, cstrato wrote: ... Maybe there's some subtle linker problem, or a problem with the representation of strings What do you mean with linker problem? Nothing very specific, but generically wrong options,

Re: [Rd] Help with OS X (BSD) ps command

2007-02-06 Thread Paul Roebuck
On Fri, 2 Feb 2007, Jeffrey J. Hallman wrote: My fame package has a function that checks to see if a FAME SERVER process is already running. On Linux, I can do this in one of two ways: pid - Sys.getpid() user - Sys.info()[user] cmd - paste(pgrep -fU, user, -P, pid, 'FAME SERVER')

Re: [Rd] Detecting compilation under R

2006-12-19 Thread Paul Roebuck
On Thu, 14 Dec 2006, Prof Brian Ripley wrote: On Thu, 14 Dec 2006, Barry Rowlingson wrote: [Silently discarding the answer to his question, and breaching 'fair use' copyright provisions.] So the problem is that you needed rather #include R.h #ifdef USING_R x = rand_unif(0.0,1.0);

Re: [Rd] separators in data()

2006-06-15 Thread Paul Roebuck
On Thu, 15 Jun 2006, Gabor Grothendieck wrote: Currently, four formats of data files are supported: 1. files ending '.R' or '.r' are 'source()'d in, with the R working directory changed temporarily to the directory containing the respective file. 2. files ending

[Rd] array dimname argument (was Re: YA S4 method dispatch question)

2006-05-10 Thread Paul Roebuck
On Tue, 9 May 2006, Martin Morgan wrote: You won't like this ...;) return(drop(callGeneric(array(x, c(1, length(x)), val) ))) i.e., 'val' is inside 'array'! I was discouraged from answering sooner by the

[Rd] YA S4 method dispatch question

2006-05-09 Thread Paul Roebuck
I recently encountered this and was wondering if someone could explain what happened. Basis of question involves what the difference between the calls makes as the end result is the same: identical(matrix(1:8, nrow = 1), array(1:8, c(1, 8))) TRUE If I run the code below as shown, I get the

Re: [Rd] Minor issue building 2.3.0 under Red Hat Linux 9

2006-04-28 Thread Paul Roebuck
On Thu, 27 Apr 2006, Prof Brian Ripley wrote: On Thu, 27 Apr 2006, Marc Schwartz wrote: On Thu, 2006-04-27 at 10:53 +0100, Prof Brian Ripley wrote: On Thu, 27 Apr 2006, Dominick Samperi wrote: Building R 2.3.0 fails under Red Hat 9.0 because ssize_t is not defined in

[Rd] R-FAQ.pdf TOC missing

2006-04-28 Thread Paul Roebuck
I downloaded 2.3 version of R-FAQ.pdf from CRAN and noticed the table of contents does not appear in the PDF version as it does in the HTML version. -- SIGSIG -- signature too long (core dumped)

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2006-04-15 Thread Paul Roebuck
of .onAttach() startup messages? I've seen message() before in the manpages but never saw any documentation on how or when it might be considered appropriate to use. Why would one want to represent a simple non-error message as a condition in the first place? On Thu, 13 Apr 2006, Paul Roebuck wrote

Re: [Rd] [R] S4 method dispatch matrixOrArray (fwd)

2006-04-15 Thread Paul Roebuck
() work fine. Paul Roebuck wrote: Sorry to bother but could you shed some light on this? I don't understand why order of setMethod calls makes any difference. Since it obviously does, it has shaken the foundations of what I thought I understood about S4 methods. Even Gabor was surprised

Re: [Rd] Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2006-04-13 Thread Paul Roebuck
On Thu, 13 Apr 2006, Liaw, Andy wrote: From: Bill Dunlap On Thu, 13 Apr 2006, Prof Brian Ripley wrote: On Thu, 13 Apr 2006, Peter Ruckdeschel wrote: in Writing R extensions as well as in the help to .onAttach(), you mention that one could use this function to issue a

[Rd] diag manpage quibble

2006-03-23 Thread Paul Roebuck
R-2.2.1/src/library/base/R/man/diag.Rd -- -diag(x = 1, nrow, ncol= ) +diag(x = 1, nrow, ncol = n) -- SIGSIG -- signature too long (core dumped) __

Re: [Rd] Open .ssc .S ... files in R (PR#8690)

2006-03-20 Thread Paul Roebuck
On Fri, 17 Mar 2006 Simon Urbanek wrote: On Mar 17, 2006, at 2:45 PM, Duncan Murdoch wrote: On 3/17/2006 2:19 PM, [EMAIL PROTECTED] wrote: - Quick summary: In the File:Open dialog, please change S files (*.q) to S files (*.q, *.ssc, *.S) and show the corresponding files

[Rd] Minor Typo in image.Rd

2006-02-24 Thread Paul Roebuck
https://svn.r-project.org/R/trunk/src/library/graphics/man/image.Rd Currently: == \arguments{ [...] \item{xlab, ylab}{ [...] Default to the \sQuote{call names} of \code{x} or \code{y}, or to \code{} if these where unspecified.} ^ Should read:

[Rd] invalid graphics state using dev.print (fwd)

2006-02-08 Thread Paul Roebuck
On Mon, 6 Feb 2006 18:12, Simon Urbanek wrote: On Feb 6, 2006, at 5:24 PM, Paul Roebuck wrote: Tried on R-Sig-Mac with no responses, but I need some kind of answer. [...] Does the following work on your system? Interesting, no, it doesn't either. For png and pdf I use Quartz

[Rd] Generated HTML tags not all lowercase

2006-01-24 Thread Paul Roebuck
Noticed while fixing problem in my package documentation that some Rd code referencing an environment variable as \env{PATH} produced the HTML as CODEPATH/CODE. R-2.2.1/share/perl/R/Rdconv.pm#785-800: shows there are others as well. Although R seems to currently target HTML 4.0 (or older) and

Re: [Rd] Problems with calloc function.

2006-01-05 Thread Paul Roebuck
On Tue, 3 Jan 2006, Marcelo Damasceno wrote: Sorry about my incautiousness, I use the tips, but is happen same problems. Not really. You definitely skipped over the most important one - don't terminate the host process. if(temp4 == NULL){ printf(\n\n No Memory4!);

Re: [Rd] shared-mime-info (PR#8278)

2005-11-21 Thread Paul Roebuck
On Fri, 4 Nov 2005, Peter Dalgaard wrote: Vaidotas Zemlys writes: On 04 Nov 2005 13:51:56 +0100, Peter Dalgaard wrote: [SNIP RPM discussion] There you can find xml file for R scripts. I've made it from some example. It is really only a proof of a concept. But it would not be very

Re: [Rd] NAMESPACE, S4, and .onLoad

2005-11-21 Thread Paul Roebuck
On Mon, 21 Nov 2005, Seth Falcon wrote: The Writing R Extensions manual instructs developers who use S4 classes and methods in a package with a name space to: There needs to be an .onLoad action to ensure that the methods package is loaded and attached: .onLoad -

Re: [Rd] two-way communication using Unix pipes

2005-11-16 Thread Paul Roebuck
On Wed, 16 Nov 2005, Jonathan Callahan wrote: I am trying to communicate with R from a perl program. Because this code must be deployed on systems that are outside of my control I do not wish to pursue the RSperl.pm approach which requires that R be compiled to use shared libraries. I have

Re: [Rd] Package manpage DCF hooks

2005-11-15 Thread Paul Roebuck
On Tue, 15 Nov 2005, Martin Maechler wrote: Paul == Paul Roebuck [EMAIL PROTECTED] on Mon, 14 Nov 2005 15:57:04 -0600 (CST) writes: Paul On Mon, 14 Nov 2005, Gabor Grothendieck wrote: On 11/14/05, Paul Roebuck [EMAIL PROTECTED] wrote: Was looking at what

Re: [Rd] Package manpage DCF hooks

2005-11-14 Thread Paul Roebuck
On Mon, 14 Nov 2005, Gabor Grothendieck wrote: On 11/14/05, Paul Roebuck [EMAIL PROTECTED] wrote: Was looking at what was output for pkgname-package.Rd and wondered if any there was any means (via macro, etc) to merge some of the same information with a template for my package manpage

Re: [Rd] Brainstorm: Alpha and Beta testing of R versions

2005-11-07 Thread Paul Roebuck
On Sun, 6 Nov 2005, Henrik Bengtsson wrote: Andrew Robinson wrote: On Fri, Nov 04, 2005 at 09:58:47AM +0100, Martin Maechler wrote: [Mainly for R-foundation members; but kept in public for general brainstorming...] [SNIP] 2) Try to use the structure of the reporting page to prompt

Re: [Rd] pb with dyn.load - fortran code now attached

2005-10-26 Thread Paul Roebuck
On Wed, 26 Oct 2005, Gilles GUILLOT wrote: QUESTION 1: [EMAIL PROTECTED] guillot]$ R R : Copyright 2005, The R Foundation for Statistical Computing Version 2.2.0 (2005-10-06 r35749) ISBN 3-900051-07-0 system(R CMD SHLIB ~/tmp/test1.f) g77 -fPIC -g -O2 -c /home/guillot/tmp/test1.f -o

Re: [Rd] pb with dyn.load - fortran code now attached

2005-10-26 Thread Paul Roebuck
On Wed, 26 Oct 2005, Prof Brian Ripley wrote: On Wed, 26 Oct 2005, Paul Roebuck wrote: On Wed, 26 Oct 2005, Gilles GUILLOT wrote: QUESTION 1: [EMAIL PROTECTED] guillot]$ R R : Copyright 2005, The R Foundation for Statistical Computing Version 2.2.0 (2005-10-06 r35749) ISBN 3

Re: [Rd] R and Java

2005-10-05 Thread Paul Roebuck
On Tue, 4 Oct 2005, Vasundhara Akkineni wrote: I am a grad student and am working on a project where i need to integrate java and R. I have a front end in java and i need to call R functions and be able to dispaly the plots and graphs produced by R on my java front end. I came across some

[Rd] Registering S3 class from external package

2005-08-11 Thread Paul Roebuck
The package I'm working on can extract data from external packages but would otherwise have no dependency on them. However, I desire to be able to dispatch based on an external S3 class if its package is attached (.First.lib). My code is S4-based and its package has NAMESPACE. Registering the

Re: [Rd] Error registering finalizer

2005-07-26 Thread Paul Roebuck
On Tue, 26 Jul 2005, Paul Roebuck wrote: What exactly is a reference object? I'm getting this error message attempting to register a finalizer: can only weakly reference/finalize reference objects Still don't have an explanation for the above but the code now works with the following

[Rd] Vector of S4 Objects

2005-07-25 Thread Paul Roebuck
Can someone show me how to create a vector of S4 objects or point me to an example? Reading Green Book 7.1.5 to me implied I could simply add vector to my object's representation. But it also implied that would have no change to the implementation of my class, but I did find a .Data slot defined

[Rd] S4 Dispatching

2005-07-19 Thread Paul Roebuck
Is it possible for S4 to (continue) dispatch to a class created during dispatching? The code below doesn't work; is this not possible or have I ommitted something? Concept was to create a SEXP with R_AllocatePtr, give it a class attribute, and continue dispatch. Example code below omits multiple

[Rd] R_AllocatePtr

2005-07-19 Thread Paul Roebuck
Had been looking into Luke Tierney's R_AllocatePtr() and was left with a question about exactly when does R reclaim heap memory. Implication of 'simpleref.nw' is that one can allocate C data on the R heap, and as long as pointer object is alive, the data and pointer will remain valid. But it calls

[Rd] Packaging and Optional BioC Capabilities

2005-07-11 Thread Paul Roebuck
I am currently involved with a package that has certain raw capabilities that enable it to be used without external package dependencies. However, there are certain Bioconductor packages containing classes from which I can extract data to pass along to my current code. Since my code is not really