Displaying 20 results from an estimated 400 matches similar to: "Problem with documentation of user-defined operator (S4 method)"
2011 Mar 11
2
Using missing() in a S4 method with extra arguments
Hi all,
I have a function which makes use of missing() to determine which
arguments are provided in the call - basically, there are two sets of
arguments that map to different strategies the function uses to fulfill
its task. After conversion to an S4 generic I've run into the problem
that if a method uses extra arguments that are not in the signature of
the generic, usage of missing()
2010 Nov 15
1
Package with multiple shared libraries
Dear R-devel members,
I would like to compile a package with two seperate shared libraries.
For example, in a package 'foo', a file 'bar.so' built from a distinct
set of source files should be installed in addition to the default
'foo.so' (or .dll on windows). Does anyone know about a way to achieve
this without having a custom Makefile, e.g. via 'Makevars'?
2010 Dec 07
3
How to find out if a data frame has automatic row names?
Hi all,
I just stumbled across the difference between explicit and 'automatic'
row names for data frames. Is there a quick way to find out if a data
frame has automatic row names or not? Of course I know this for data
frames that I create myself, but what if a function needs to extract
this information for an argument?
The following example shows that this property is not easily
2011 May 03
1
[R] Sweave stops when opening X11 device fails
Hi all,
I am posting this again because I got no reply on r-help. Maybe the
devel-list is the right place for this kind of question.
I've run into the following problem with Sweave: I frequently run Sweave
from a xterm console within an X session owned by a different user, i.e.
my colleague is logged in on this computer and I do "su" with my
username and start R and Sweave
2010 Aug 30
2
S4 Method Rd Warning
Hello,
I am using R 2.11.0. I have a curious problem where I get a warning in R CMD check which is seemingly not relevant to my Rd file.
The warning says :
* checking Rd \usage sections ... WARNING
Bad \usage lines found in documentation object 'enrichmentCalc':
<unescaped bksl>S4method{enrichmentCalc}{GenomeDataList, BSgenome}(rs, organism, seqLen=NULL, ...)
<unescaped
2010 Aug 30
2
S4 Method Rd Warning
Hello,
I am using R 2.11.0. I have a curious problem where I get a warning in R CMD check which is seemingly not relevant to my Rd file.
The warning says :
* checking Rd \usage sections ... WARNING
Bad \usage lines found in documentation object 'enrichmentCalc':
<unescaped bksl>S4method{enrichmentCalc}{GenomeDataList, BSgenome}(rs, organism, seqLen=NULL, ...)
<unescaped
2011 Mar 15
2
Feature request: txtProgressBar with ability to write to arbitrary stream
Hi all,
I use txtProgressBar to monitor progress of large computations. What I
miss is the ability to redirect the progress bar to a stream other than
stdout, specifically to the message stream. This would be useful for
running Sweave scripts: When redirected to stderr, the bar could be
visible even though console output is diverted to the output file (and
there would be no cluttering of the
2011 Jul 14
0
Gui editor / viewer for large data
Dear all,
I am searching for a possibility to view large data sets (e.g. stored in
ffdf objects) in a GUI window in a memory-efficient way. So far I looked
at gtkDfEdit (package RGtk2Extras) and gdf (package gWidgets). Both
operate (as far as I can see) on data frames stored in memory. gtkDfEdit
accepts an ff data frame as input, but there is a long delay before it
shows up, so I presume the
2011 Apr 20
0
Sweave stops when opening X11 device fails
Hi all,
I've run into the following problem with Sweave: I frequently run Sweave
from a xterm console within an X session owned by a different user, i.e.
my colleague is logged in on this computer and I do "su" with my
username and start R and Sweave afterwards. Now, when Sweave comes to a
figure chunk, it sees that there is an X server running and tries to
show whatever I plot
2010 Jan 18
0
Fix for bug in match()
Hello all,
I posted the following bug last week:
# These calls work correctly:
match(c("A", "B", "C"), c("A","C"), incomparables=NA) # okay
match(c("A", "B", "C"), "A") # okay
match("A", c("A", "B"), incomparables=NA) # okay
# This one causes R to hang:
match(c("A",
2010 Nov 23
0
read.table / type.convert: Unexpected column class
Hi all,
I stumbled across the following, in my opinion surprising, behaviour of
read.table:
> data <- read.table(stdin(), sep=",")
0: 1, 2, 3 # Some comment
1:
> sapply(data, class)
V1 V2 V3
"integer" "integer" "numeric"
I was surprised to find that V3 has class "numeric" despite its apparent
integer value. I
2011 Jul 13
1
How to remove last 3 letters
Hello to everybody
I have vector of drug dosage in string format
1.5 mg , 50 mg , 100 mg , 0.5 mg ...
The task is to remove last free symbols: ' mg'
Any suggestions are highly appreciated
2009 Dec 07
0
Sweave, cacheSweave, and data frame
It's been a while since this thread appeared, but I had the same problem
and don't want to keep the solution for myself.
A small, reproducible example:
<<cache=true>>=
a=1
@
<<>>=
a+1
@
Compiling with cacheSweave gives an error:
> library(cacheSweave)
Lade n?tiges Paket: filehash
filehash: Simple key-value database (2.0-1 2008-12-19)
Lade n?tiges Paket:
2011 Mar 31
1
Assign Names of columns in data.frame dinamically
Hello List.
I have many files of ECG, each one with 7 column and I need only the
second column and the name of each ECG. I am doing this but althought
I have various days trying this i haven't gotten, so I ask help with
this, if somebody cans help me I'll be so thankfully.
--------------------------------------------------------------------------------------------------------
2011 Apr 19
1
Where did my packages go ?
Running linux 10.04 ubuntu.
Looks like Ubuntu automatically updated to version 2.13. I was running
version 2.12 until today. But now I'm getting error messages when I use the
require or library command and one of the packages I've downloaded in the
past. For example:
> require(quantmod)
Loading required package: quantmod
Warning message:
In library(package, lib.loc = lib.loc,
2011 Apr 20
2
user input
Dear users,
I have looked on different sources and found different functions to
prompt the user to provide input. However, I couldn't find one that does
exactly what I'm looking for.
select.list() and menu() are nice because a graphic window appears to
prompt the user. However, the user can only choose from a predefined
list of choices. readline() and scan() are more free in the
2008 May 21
2
\S4method in combination with "[" and "[<-"
Dear developers,
We want to use "\S4method" to document new S4-methods for "[" and "[<-".
We use this for other functions/methods and it works without any
problem, but in case of "[" and "[<-" we didn't manage to bring this to
work.
The problem occurs in the development version of our package "distrSim"
which can be found
2009 Sep 07
1
some (minor) Rd issue: line breaking in \S4method within \usage{}
Hi,
this is perhaps not so much an issue, but as you are currently
working on the Rd parser anyway...
When you want to document specific S4 methods for an S4 generic
by \S4method{} within a \usage{} environment, and the second
(signature_list) argument is "long", be it because you use multiple
dispatch, be it because you use long class-names, (or both), one
would probably like to be
2009 Mar 13
1
Rd \usage clause for an S4 replace method
Given S4 methods [ and [<-, how do I write the Rd-file usage clause for
the latter one?
What I have now is:
\S4method{[}{TimeSeries,TimeDate,missing}(x, i, j, ..., drop)
\S4method{[<-}{TimeSeries,TimeDate,missing,ANY}(x, i, j, ..., value)
which results in the following output:
## S4 method for signature 'TimeSeries, TimeDate, missing':
x[i, j, ..., drop]
2011 Apr 09
1
How do I make this faster?
I was on vacation the last week and wrote some code to run a 500-day
correlation between the Nasdaq tracking stock (QQQ) and 191 currency pairs
for 500 days. The initial run took 9 hours(!) and I'd like to make it
faster. So, I'm including my code below, in hopes that somebody will be able
to figure out how to make it faster, either through parallelisation, or by
making changes. I've