Displaying 20 results from an estimated 11000 matches similar to: "confusion about evaluation."
2008 Jul 27
1
64-bit R on Mac OS X 10.5.4
Hi Matt
Your method is the easiest way for me to install the 64-bit R. I followed the directions on your web site and then did the following:
R --arch=x86_64
source("http://bioconductor.org/biocLite.R")
biocLite(type = "source",lib = "/Library/Frameworks/R.framework/Versions/2.8/Resources/RLib64")
I got many errors and warnings which I copied to the attached file.
2011 Apr 19
1
self-referential representations in S4
I'm trying to do the following:
> setClass("MyNode", representation(parent = "MyNode"))
[1] "MyNode"
Warning message:
undefined slot classes in definition of "MyNode": parent(class "MyNode")
I scanned the docs, but found nothing. The representation function has no
problem, it's the setClass function which gives the warning.
What
2011 Sep 14
2
External pointers and an apparent memory leak
I'm using external pointers and seemingly leaking memory. My determination of a memory leak is that the R process continually creeps up in memory as seen by top while the usage as reported by gc() stays flat. I have isolated the C code:
void h5R_allocate_finalizer(SEXP eptr) {
Rprintf("Calling the finalizer\n");
void* vector = R_ExternalPtrAddr(eptr);
free(vector);
2010 Apr 30
1
help needed with help
I installed
R version 2.11.0 (2010-04-22)
on may macbook (snow leopard)
and run R from within emacs
Now when I try to get help, I get
> ?lm
(in the new "help" window)
Error in help("lm", htmlhelp = FALSE) :
unused argument(s) (htmlhelp = FALSE)
Help!
p.s. I am running:
This is GNU Emacs 22.2.50.1 (i386-apple-darwin9.4.0, Carbon Version 1.6.0)
of 2008-07-17 on
2010 Mar 03
1
linking hdf5, requires setting LD_LIBRARY_PATH
I am writing an R package to interface to hdf5 files (yes I know one
exists, the issue will be demonstrated using that package). I tend to like
to build/install things locally so that aspects of the system I am working
on don't cause problems later when attempting to install elsewhere. To
this end, I build and install the hdf5 libraries w/out incident:
tar xzf hdf5-1.8.4.tar.bz2
cd hdf5-1.8.4
2010 May 18
1
difficulties with setMethod("[" and ...
Apologies if I am not understanding something about how things are being
handled when using S4 methods, but I have been unable to find an answer to
my problem for some time now.
Briefly, I am associating the generic '[' with a class which I wrote
(here: myExample). The underlying back-end allows me to read contiguous
slabs, e.g., 1:10, but not c(1, 10). I want to shield the user from this
2009 Aug 20
2
Problem using findVar( ) in combination with R's lazy evaluation
Hi All,
I have a few small questions about the usage of the C findVar( ) function
when used in C code called with '.Call'. In my case I create an R function
with an argument. This function calls some C code in which I use findVar( )
to retrieve the values from the argument. Ofcourse normally I would just
give the values as argument to .Call, but in my project I need to use
findVar for
2012 Sep 28
1
Annotate a segmented linear regression plot
Hello,
I have produced some segmented regressions with the segmented package by
Viggo Mutteo. I have some example data and code below. I want to annotate
the individual segments with the slope parameter (actually it would be
nicer to annotate with 1000*slope and add some small amount of text as
well). How can I do it? Reading the docs for segmented I can access all of
the slope parameters via a
2005 Feb 13
2
row equality.
I think that this is an easy one...
I have a matrix where each row is an (x,y,z) triplet. Given a potential
(xnew,ynew,znew) triplet I want to know if the matrix already contains a
row with the new values (the space already has that point). I can do it
using a for loop, but I would like to know if there is anyway in which I
can do it without the for loop.
I do it now like this (this
2013 May 05
1
Avoid entering {} evaluation in debugger
Hi,
f1 <- function(){
browser()
print("aaa")
}
f2 <- function(){
a <- 12
eval(envir = parent.frame(),
bquote({
b <- .(a)
}))
}
Now do,
f1()
and enter n RET and then {1+2}:
Browse[2]> {1 + 2}
debug at #1: 1 + 2
Browse[3]>
{} is now being debugged. This was never bothering me
2006 Mar 15
1
multiple packages using the same native code.
This might fall under the purview of bundles, but I could not find any
example bundles which demonstrated what I am after.
I would like to construct two packages (A, B) which utilize a number of
common C functions. The most straightforward way to do this is just copy
the relevant .c and .h files from one src directory to the next, but
this is tedious especially in the face of multiple
2013 Aug 21
11
Confusion with puppetdb (storeconfig) and query database
Hello,
I have configured puppet and puppetdb (storeconfig) with postgresql and the
service run and the collecting are good for example:
I can make query with the next command and responds ok .
[.........................]
[root@master]# curl -X GET -H ''Accept: application/json''
http://127.0.0.1:8080/v2/facts --data-urlencode ''query=["=", "name",
2005 May 17
1
returning an empty list.
I would like to return an empty list from a C function. This I would do as:
if (file.exists()) {
/* do something */
}
else {
SEXP empty_list;
PROTECT(empty_list = NEW_LIST(0));
UNPROTECT(1);
return empty_list;
}
The PROTECT, UNPROTECT lines seemed like overkill to me, but as far as I
understood the documentation this seemed like the correct usage. It
seems like I could
2006 Nov 25
2
cat not evaluated before file.choose
As part of a larger function I have code similar to the reduced
example below. The user is instructed to choose a file, which gets
read using read.csv. In this example, I just have the name of the
file print out.
When I call this function with choosefile(), the file dialog box
appears before the first cat line is printed. After I choose a file,
both cat lines are printed.
choosefile
2006 Apr 20
1
R CMD check: non source files in src on (2.3.0 RC (2006-04-19 r37860))
Hello, I am having an issue with R CMD check with the nightly build of
RC 2.3.0 (listed in the subject.)
The problem is this warning:
* checking if this is a source package ... WARNING
Subdirectory 'src' contains:
README _Makefile
These are unlikely file names for src files.
In fact, they are not source files, but I do not see any reason why they
cannot be there, or why I need to
2008 Mar 07
1
confused about CORREP cor.LRtest
After some struggling with the data format, non-standard in
BioConductor, I have gotten cor.balance in package CORREP to work. My
desire was to obtain maximum-likelihood p-values from the same data
object using cor.LRtest, but it appears that this function wants
something different, which I can't figure out from the documentation.
Briefly, my dataset consists of 36 samples from 12
2011 Jul 15
1
Confusing inheritance problem
I have library in development with a function that works when called
from the top level, but fails under R CMD check. The paricular line of
failure is
rsum <- rowSums(kmat>0)
where kmat is a dsCMatrix object.
I'm currently stumped and looking for some ideas.
I've created a stripped down library "ktest" that has only 3
functions: pedigree.R to create a pedigree or
2008 Sep 10
0
wrong number of arguments
I am a newbie at rails and can''t figure out the following problem. Can
anyone help?
I am running the following:
Ruby version 1.8.6 (powerpc-darwin9.4.0)
RubyGems version 1.2.0
Rails version 2.1.0
Active Record version 2.1.0
Action Pack version 2.1.0
Active Resource version 2.1.0
Action Mailer version 2.1.0
Active Support version 2.1.0
I created three models using the:
2008 Aug 18
1
exonmap question: rma (or justplier) crashes
An embedded and charset-unspecified text was scrubbed...
Name: ?????? ?? ????????.
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080818/dcaa0623/attachment.pl>
2006 Nov 14
2
Problem with file size
Hi everyone,
I have 2 environments (2 different R sessions) as described below:
Session 1:
Name of the environment: "CrlmmInfo"
Objects in the environment:
index1: logical index - length 238304
index2: logical index - length 238304
priors: list of 4 - (matrix 6x6, 2 vectors of length 6, vector of
length 2) - all num
params: list of 4:
centers [238304 x 3 x