Displaying 20 results from an estimated 600 matches similar to: "lattice key inside panel"
2008 May 20
1
S4 generic for lowess
Hi,
A lowess method is defined in our package for one of our S4 classes. To
explicitely define the generic this is being used
if (!isGeneric("lowess"))
setGeneric("lowess", useAsDefault = lowess)
This works fine for many other methods inherited from various R
packages. In this case a warning is issued in R CMD check:
* checking R code for possible problems ... NOTE
2008 May 28
1
Cross-compilers for 2.7.0
Hello,
Am I right in thinking the cross-compilations tools, kindly maintained
by Prof Ripley, are still waiting to be updated for 2.7.0?
Thanks,
Iago
--
Iago Mosqueira
Cefas
Systems Modelling
Pakefield Rd.
Lowestoft NR33 0HT
U.K.
+44 (0)1502 558003
2007 Apr 19
2
setClass inside a function
Hello,
I would like to create a function that gets passed a class name and then calls setClass, and a few other functions, inside. I have done this in the past with setmethod, creating accessors for all slots in a set of S4 classes. But setClass is choking when my function is called isnide a package, telling about an error in exists(cname, where). I assume this to be a problem with the
2003 Sep 05
1
Problem with S4 slots in C code (PR#4073)
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C3738F.63DE3390
Content-Type: text/plain;
charset="iso-8859-1"
#I want to be able to create a new S4 class and read data into it using C
code
# Here is a very simple S4 object inheriting from "array", but with 5
2003 Oct 27
3
(PR#4806)
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C39C9F.B5DABBD0
Content-Type: text/plain;
charset="iso-8859-1"
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing
2003 Jun 23
3
FW: S4 classes, creating in C
I am using C code to create an S4 object based on Douglas Bates's example
in his lecture notes on
<http://www.ci.tuwien.ac.at/Conferences/DSC-2003/Tutorials/RExtensions/slide
s.pdf>
http://www.ci.tuwien.ac.at/Conferences/DSC-2003/Tutorials/RExtensions/slides
.pdf
e.g.
SEXP La_DGE_dc(SEXP A)
{
SEXP aa = PROTECT(duplicate(A));
SEXP adims, pivot, val;
int
2002 Nov 13
1
DLLs adding in C++ code
I would like to utilise the power of R by adding my own software as a
package written in C++. As a first step I am trying
to write a DLL with a simple function that can be called from R. The DLL
contains a C++ routine written and complied in Microsoft Visual C++ Ver 6.0
and is based upon the example in R-Exts
eg I am trying to create the following example function
SEXP out(SEXP x, SEXP y)
{
2005 Jun 14
1
operators as S4 methods
Dear all,
I need to re-define some mathematical operators (+, *, /, etc) for an S4
class based on array. All references I have found (S Programming, Green
Book) show how to define S3 methods for this (like in page 89 of S
Programming for "-.polynomial"). What is the preferred S4 way for doing
this? I hope I haven't missed some obvious piece of documentation.
Many thanks,
Iago
2004 Jun 16
2
Loading 'akward' data file
Generally you'd use file() to open the file, then use readLines(), say
inside a while() loop to read one `chunk' at a time. However, your example
looks a bit strange. The possibility of empty line makes it a bit more
complicated, by that last couple of lines seems to suggest that you could
have a line of data follow by another line of data without variable label.
If that's true, I
2011 Jun 01
1
Overloading S4 methods
Dear all,
I am experiencing some problems with S4 method overloading. I have
defined a generic for graphics:plot, using
setGeneric("plot", useAsDefault = plot)
and with
importFrom('graphics', 'plot') and
exportMethods('plot') in the NAMESPACE file of pkg A.
I then proceed to define a method for signature c('myS4class',
'missing'). This works
2003 Aug 21
2
mcmc
Hello,
I am about to move all of my modelling work into R, and I have been
investigating the present state of MCMC and Bayesian methods in R.
Following a thread on the mailing list in 2000, I have looked at
mcmcpack and Hydra. Three years down the line, is there anything new in
this area? I have used both MCSim and WinBUGS in the past. The first one
seems promising, but is too focused towards
2004 Jun 21
2
Cross build Makefile
Hello,
I am trying to use Yan and Rossini's Makefile for cross building Windows
versions of R packages in Linux with R 1.9.0. When compiling R with the
mingw tools I get an error about expm1 being undeclared when first found
at src/main/arithmetic.c:1019
If I fiddle a bit with it later on I also get errors about log1p bein
undeclared.
Any idea what should I look for?
I am using R 1.9.0 in
2004 Jun 21
2
Cross build Makefile
Hello,
I am trying to use Yan and Rossini's Makefile for cross building Windows
versions of R packages in Linux with R 1.9.0. When compiling R with the
mingw tools I get an error about expm1 being undeclared when first found
at src/main/arithmetic.c:1019
If I fiddle a bit with it later on I also get errors about log1p bein
undeclared.
Any idea what should I look for?
I am using R 1.9.0 in
2006 Mar 29
1
Bundle internal dependencies
Dear all,
When creating a bundle with some internal dependencies (package B in
bundle depends on package A), would having the same version installed
suffice? Can I ignore the dependencie in package B's description? The
test of package B fails when calling data() for an object in pacakge A,
so I am not sure right now whether the whole dependencie is not being
met or simple relates to data().
2004 Nov 29
1
\link{} to help pages in Debian
Hello,
In my Debian 3.0 systems, packages are installed in two different
places, namely /usr/lib/R/library and /usr/local/lib/R/site-library,
depending on whether they come from debian packages or CRAN ones. Help
pages for my own packages, installed in the second location, cannot find
help pages from, for example, the base package via \link{}. I also tried
specifying the package with
2002 Feb 08
2
glm with four variables
Hi,
Sorry if this is a very basic question, but when I run this
glm(formula = loge ~ lat + ne + dep, family = gaussian)
summary shows the same formula but results only for the first two variables.
What am I doing wrong?
iago
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2008 Feb 05
1
Need for garbage collection after creating object
Hello,
After experiencing some difficulties with large arrays, I was surprised
to see the apparent need for class to gc() after creating fairly large
arrays. For example, calling
a<-array(2, dim=c(10,10,10,10,10,100))
makes the memory usage of a fresh session of R jump from 13.8 Mb to
166.4 Mb. A call to gc() brought it down to 90.8 Mb,
> gc()
used (Mb) gc trigger (Mb)
2006 Oct 04
1
Default argument value for "["
Dear all,
After installing R 2.4.0, a definition of "[" for an S4 class has
stopped working as the default for drop in the generic, TRUE, appears to
override the default in the method
The method is defined for demonstration purposes as
setMethod("[", signature(x="FLQuant"),
function(x, i="missing", j="missing", k="missing",
2007 Dec 20
2
SHLIB steps on a Makefile
Hi,
I need to create a Makefile.win for a given package so as to fiddle
slightly with the compilation process. My Makefile works fine in Linux
but I am having trouble creating Makefile.win for MinGW. I first
looked at the commands that Rcmd SHLIB appeared to be running and
copied those onto the Makefile. But one step seems to be missing, the
creation of the _res.rc file needed by windres
2005 Feb 17
1
Subsetting using dimnames on S4 array-based class
Hello,
I did send this message to r-help and got no reply, no I am resubmitting
here in case this was a bit too specific for the other list.
Many thanks,
Iago
From:
Iago Mosqueira
<imosqueira@suk.azti.es>
To:
r-help@stat.math.ethz.ch
Subject:
Subsetting using dimnames on S4
array-based class