Displaying 20 results from an estimated 400 matches similar to: "Files and classes in a package?"
2014 Mar 24
2
[PATCH 08/12] drm/nouveau/graph: enable when using external firmware
On Mon, Mar 24, 2014 at 05:42:30PM +0900, Alexandre Courbot wrote:
[...]
> diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c b/drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
> index 6ef8bf181b2d..f997a18f5760 100644
> --- a/drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
> +++ b/drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
> @@ -1133,10 +1133,14 @@
2011 Mar 06
1
Seeking guidance in package creation when it contains s4 class
Dear all, I am having problem to create a package when this package is
supposed to have some newly created s4 class. Here is my workout:
> #rm(list = ls())
> setClass("aClass", sealed=T, representation(slot1 = "vector", slot2 = "character"))
[1] "aClass"
> fn1 <- function(x, y, z) {
+ x <- x[1]
+ y <- y[1]
+ z <- as.character(z[1])
+
2009 May 27
2
Object-oriented programming in R
Dear R-users,
I have very recently started learning about object-oriented programming
in R. I am far from being an expert in programming, although I do have
an elementary C++ background.
Please take a look at these lines of code.
> some.data = data.frame(V1 = 1:5, V2 = 6:10) ;
> p.plot = ggplot(data=some.data,aes(x=V1, y=V2)) ;
> class(p.plot) ;
> [1] "ggplot"
My
2008 Mar 14
2
Multiple should_receive(:render).with
I''m trying to specify that a particular view must render two different partials.
My spec looks like:
describe AClass do
it do
template.should_receive(:render).with(:partial => ''foo'', :locals => { ... })
...
end
describe ''some conditional case'' do
it do
template.should_receive(:render).with(:partial =>
2003 Aug 06
1
S4 methods bug in naming of slots (PR#3665)
Hello,
I am using R 1.7.1 on a Redhat Linux machine, version 7.3.
The following works fine:
setClass("ok", representation(
"A" = "matrix",
"Cmatrix" = "matrix"))
new("ok",
"A" = diag(4),
"Cmatrix" = diag(4))
But the following doesn't work:
setClass("notok", representation(
2006 Apr 17
1
slot named C
"C" appears to be an illegal name for a slot in an S4 class (example
below). If this is a known limitation, and not a bug, it would be nice
if it were caught by setClass.
Paul Gilbert
> setClass("testobj", representation ( C = "numeric"))
[1] "testobj"
> new("testobj", C= 2)
Error in methodsPackageMetaName("C", name) :
2004 Aug 12
1
correlation structures in NLME
I am using the latest version of R on a Windows machine and get the
following error when I try to initialize a correlation structure with
the function corAR1 in NLME. This example is taken from the book of
Pinheiro and Bates, so it should work. What is going wrong?
> library(nlme)
> data(Orthodont)
> cs1AR1 <- corAR1(0.8, form= ~1 | Subject)
> cs1AR1 <- initialize(cs1AR1, data =
2009 Jun 16
1
[LLVMdev] runtime library for jitted code
Victor Zverovich <victor.zverovich at googlemail.com> writes:
> The question about the name mangling gave me an idea that it can be used to
> automate registration of DLL functions. Instead of manually creating
> Function objects specifying a return type and argument types which is
> error-prone and time-consuming one can get a list of functions exported from
> a DLL using
2014 Nov 25
0
problem with setGroupGeneric from package methods
Hi,
There seems to be a problem with setGroupGeneric() from package 'methods'. The symptoms are somewhat erratic, in the sense that small changes may lead to any of the following behaviours.
1.Package works without problems on Windows and installs on Linux but gives error when loaded with library().
2.Package installs on both systems and gives error when loaded on any of them.
3.
2009 Jan 08
1
File name determines success or failure of package installation -- please help
Synopsis:
I am trying to build and install a package in R, but I have run into a
problem where the file names determine success or failure of the package
installation. I started with a single file containing two class
definitions. This package installs properly. If I split the classes into
two files, the build fails. If I simply change the file name of one file
with no other changes, the
2003 Mar 10
4
terms.formula
I'm in the very initial stage of expanding the formula processing
in my quantile regression function rq() to handle additive
nonparametric components, say qss(x), or qss(x,z). I need some
advice about strategy for formula processing. My initial foray
was to use:
terms(formula,specials="qss")
and then modify the components of the resulting
terms.object. But in changing formula
2004 Jun 20
9
A way to list only variables or functions?
I am curious if there is any way to list only variables or functions in
current environment, rather than listing all objects? Thanks.
--
Daehyok Shin (Peter)
Geography Department
Univ. of North Carolina-Chapel Hill
2004 Jun 20
9
A way to list only variables or functions?
I am curious if there is any way to list only variables or functions in
current environment, rather than listing all objects? Thanks.
--
Daehyok Shin (Peter)
Geography Department
Univ. of North Carolina-Chapel Hill
2004 Jul 10
6
where does R search when source()?
Exactly where does R search for foo.R if I type source("foo.R")?
Only from current working directory (same as getwd()), from all directories
specified by e.g. $PATH? Thanks.
Daehyok Shin
2004 Jul 10
6
where does R search when source()?
Exactly where does R search for foo.R if I type source("foo.R")?
Only from current working directory (same as getwd()), from all directories
specified by e.g. $PATH? Thanks.
Daehyok Shin
2013 Sep 02
1
[PATCH] drm/nv50-: make dma-objects read-only where appropriate
I don't see why the display engine would need write access to the entirety of
vram, when read-only access is enough.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
---
drivers/gpu/drm/nouveau/nv50_display.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c
2006 Apr 10
3
Simple act_as template
Hello !
I posted a simple template to show how to add ''act_as_whatever'' to
ActiveRecord.
I think this might be useful to others as there are some trickery ruby
things in this
file.
Here is the template : http://textsnippets.com/posts/show/384
Gaspard Bucher
--
Posted via http://www.ruby-forum.com/.
2004 Jun 07
7
Vectors of years, months, and days to dates?
The interface for dates in R is a little confusing to me.
I want to create a vector of Date objects from vectors of years, months, and
days.
One solution I found is:
years <- c(1991, 1992)
months <- c(1, 10)
days <- c(1, 2)
dates <- as.Date(ISOdate(years, months, days))
But, in this solution the ISOdate function converts the vectors into
characters,
which can cause serious
2004 Apr 12
4
Only referenc copy when calling C routine?
What happens when I pass an array to a dynamically linked C routine?
Is only its reference copied when an array is passed and returned?
Or, is its whole content copied?
In R extension manual, I found the following description.
But, I can't know exactly which is true.
"There can be up to 65 further arguments giving R objects to be passed to
compiled code.
Normally these are copied before
2006 May 22
2
using Singleton with Prototype
Hello all. I''m writing my own object using prototype and I
wonder how you write and call only one instance of class. Can
anyone share his idea of singleton?
thanks
Gregor
----------------------------------------------------
Gdy nadchodzi przełomowy moment w historii, musisz zdecydować,
po czyjej stronie będziesz.
"X-Men: Ostatni bastion" - w kinach od 26 maja.