Displaying 20 results from an estimated 2000 matches similar to: "CTRL-C during .Call causes R to quit to command line"
2009 Mar 30
1
List assignment in a while loop and timing
Hello R users
I have question about the time involved in list assignment.
Consider the following code snippet(see below). The first line creates
a reader object,
which is the interface to 1MM key-value pairs (serialized R objects) spanning 50
files (a total of 50MB). rhsqstart initiates the reading and I loop, reading
each key-value pair using rhsqnextKVR. If this returns NULL, we switch to the
2009 Jan 13
2
particulars of importing/loading libraries
Dear List:
Sorry for posting maybe a trivial question, but I have a basic
understanding problem. If I have say pack1 and pack2, two R packages,
and pack2 depends on and imports pack1 fully (as in the code below), is
there a way to make all the functionality of pack1 available for the
global and other environments (not only for the functions called from
withing pack2) by loading pack2 only? I
2009 Feb 18
4
Google Summer of Code 2009
Hi,
in approximately one months time mentoring institutions can propose
projects for the Google Summer of Code 2009, see
http://code.google.com/soc/
Last year the R Foundation succesfully participated with 4 projects,
see http://www.r-project.org/SoC08/ for details. We want to
participate again this year. Our project proposals will be managed by
Manuel Eugster (email address in CC). Manuel
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]
2009 Apr 05
1
RJava question(class not found with rJava's vm, though found with alternate vm)
Not sure if this the right place, but I can't seem to subscribe to the rJava
mailing list. Sorry for the noise.
I have a jar file in the CLASSPATH variable. On running .jinit and checking
.jclassPath, i can see the jar file containing the class. Yet when trying to
instantaite the class, i get a class not found error.
Now If if, create my own vm (see below), and then run .jinit (which will
2009 Feb 11
1
setClassUnion with numeric; extending class union
Dear list:
I am looking for a good way to create an S4 class that would extend
numeric, but would allow NULL instead of data as well. As far as I can
see there is no way at the moment to do that, but please correct me if I
am wrong. The best solution I came up with so far was the following (it
also indicates a problem of using setClassUnion with numeric as one of
the classes):
I define a class
2008 Apr 07
3
Overriding axis formatting with custom Axis method, Axis.numeric etc
Dear list:
I would like to override the default way R formats plot axes with a
custom method(s). Obviously I would prefer to define it as general as
possible avoiding writing a custom method for each individual class
where possible.
The plot.default method (and I assume other methods as well) calls
Axis(...) to produce the axis layout depending on data. In this sense it
seems reasonable to
2009 Jan 15
1
[Q] R CMD check signals error on code that works from UI
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,
toupper(foo))
}), sep="")
R CMD
2008 Nov 24
2
handling a matrix and .C
Hello R-devel,
I want to write extensions for R in C (maybe C++ and Fortran later) and it works fine, but there is one problem, which I cannot solve (in my view).
I want to handle a matrix from R in C. For arrays there is "as.double(...)", but nothing for a matrix.
I searched a while, but didn't find something.
Last I looked at the source code of e1071 and of the core itself and
2009 Mar 10
1
S4 generic masking S3 generic when using namespace
Hi,
I have two example packages, test1 and test2, where the only code in
them is:
setGeneric("predict", function(object, ...) standardGeneric("predict"))
(get them from http://www.cs.mu.oz.au/~gabraham/test1.tar and
http://www.cs.mu.oz.au/~gabraham/test2.tar)
The difference between them is that first does not have a namespace, and
loads fine. The second has a namespace
2008 Mar 09
2
Dead Air on PF firewall
Hi All,
I have an asterisk box on my DMZ, and I'm using a PF for my firewall, I
can make a call but some reasons I have a dead air.
Any Ideas? below are my rules...
ext_if = "bce0"
int_if = "bce1"
altitude = "172.16.1.0/24"
#### machines ####
vbox = "172.16.1.1"
uci = "172.16.1.4"
voices = "203.172.x.1"
ipc =
2008 Apr 10
1
ISOdate/ISOdatetime performance suggestions, other date/time questions
Dear list:
working with date/times I have come across a problem that ISOdate and
ISOdatetime are too slow on large vectors of data. I was surprised just
until I looked at the implementation and the man page: "ISOdatetime and
ISOdate are convenience wrappers for strptime". In other terms, they
convert data to character representation first in order to create a
POSIXlt object that is then
2008 Sep 19
2
Extract method for a new class
Dear list,
I am trying to write a package for simulating meioses in R. We defined a class 'haplotype' which contains the basic units of our simulation:
setClass("haplotype",representation(snp = "numeric",qtl = "list",
hID = "numeric",phID0 = "numeric",phID1 = "numeric"),
2002 Feb 20
2
NTLM and RDR Security Signatures
Hello,
I've been using samba to share files on a Redhat server within a windows
NT domain. Recently, security policies in the domain have changed, and
security signatures are required for the LanManServer and Rdr services.
Now that this has been deployed, I get an error when I try to connect to
the SMB shares on the Redhat server from Windows hosts saying "account
is not authorized to log
2009 Jan 27
1
Return values from .Call and garbage collection
Hi all,
I'm posting this here as it discusses an issue with an external C library. If it would be better in R-Help, then I'll repost.
I'm using an external library which I've written, which provides a large set of data (>500MB in a highly condensed format) and the tools to return values from the data. The functionality has been tested call by call and using valgrind and works
2008 Apr 22
1
graphics::Axis loosing S3/S4 class attributes of 'x' in 2.7.0 RC
Following my previous post on S3 method despatch, I put debug messages
in the code of Axis, Axis.default and plot.default in graphics/R/axis.R
and graphics/R/plot.R to print the class of x, at and y on plot. After
recompiling R, what I see is that x *lost* its class attribute (at least
for classes not known to 'graphics') in Axis, called directly from
plot.default and this could be the
2008 Dec 22
2
... (dotMethods) and cbind/rbind: how to give the signature?
Dear List,
I'm struggling with the signature writing cbind/rbind functions for a S4
class.
First of all, I'm very happy that it is now possible to dispatch on ...
I follow the example for "paste" in ?dotMethods, which works as far as this:
### start example
setClass ("cbtest",
representation = representation (data = "data.frame"),
2010 May 07
1
Bug in R -e "command"
Hi all:
since about a month we encountered a problem with R -e command: spaces
in the "command" of R -e "command" are no more tolerated. This same
issue affects 2.11 patched (05-05-2010), 2.10.1, and current devel (at
least the one of two weeks ago).
(I skip the mid of the printouts, replaced with ...)
* R -e "message('aaa aaa')"
ARGUMENT
2008 Apr 02
1
"[<-" plus drop-type extra argument
Hello
I am writing a replacement method for an S4 class and want to pass
an additional argument to "[<-"() along the lines of "["()'s "drop"
argument.
Specifically, I have an S4 class, call it "foo", with a slot 'x'
that is a
vector and a slot 'NC' that is a scalar.
I want to be able to pass a Boolean argument to the
2001 Apr 04
3
Problems Using the MultipleUsersOnConnection Registry Key in WTS NT4
Hi.
I am running SAMBA 2.0.7 on HP-UX 11.00 and HP-UX 10.20.
I have tried adding the MultipleUsersOnConnection registry key onto my
Microsoft Windows NT Server 4 Terminal Server Edition servers, running with
Service Pack 6. After I make this change in the registry and reboot my WTS
servers all my samba connections from the servers are still being made with
one process instead of being split