Displaying 20 results from an estimated 1000 matches similar to: "Fwd: No source view when using gdb"
2014 Dec 11
0
Fwd: No source view when using gdb
On Thu, 2014-12-11 at 14:00 +0100, Pierrick Bruneau wrote:
> Dear R contributors,
>
> Say I want to debug some C code invoked through .Call() - say
> "varbayes" in the VBmix package. following the instructions in
> "Writing R Extensions", I perform the following actions :
>
> R -d gdb
> run
> library(VBmix)
> CTRL+C
> break varbayes
>
2012 Nov 04
1
Rd2pdf freeze
Hi everyone,
>From the currently available version of the package VBmix, I would like to
retrieve the intermediate .tex file that generates the VBmix-manual.pdf
file.
Formerly, running R CMD check with --no-clean allowed to get this tex
source from a hidden directory : this feature was removed, but can
apparently still be accessed through R CMD Rd2pdf --no-clean.
Surprisingly, while the
2013 Mar 08
2
Unexpected behaviour of apply()
Hello everyone,
Considering the following code sample :
----
indexes <- function(vec) {
vec <- which(vec==TRUE)
return(vec)
}
mat <- matrix(FALSE, nrow=10, ncol=10)
mat[1,3] <- mat[3,1] <- TRUE
----
Issuing apply(mat, 1, indexes) returns a 10-cell list, as expected.
Now if I do:
----
mat[1,3] <- mat[3,1] <- FALSE
apply(mat, 1, indexes)
----
I would expect a
2014 Dec 18
2
segfault when trying to allocate a large vector
Dear R contributors,
I'm running into trouble when trying to allocate some large (but in
theory viable) vector in the context of C code bound to R through
.Call(). Here is some sample code summarizing the problem:
SEXP test() {
int size = 10000000;
double largevec[size];
memset(largevec, 0, size*sizeof(double));
return(R_NilValue);
}
If size if small enough (up to 10^6), everything is
2013 Jan 31
1
Using eigen() for extracting only few major eigenpairs
Hi everyone,
I am using eigen() to extract the 2 major eigenpairs from a large real
square symmetric matrix. The procedure is already rather efficient, but
becomes somehow slow for real time needs with moderately large matrices
(few thousand lines).
The R implementation statically extracts all eigenvalues (and optionally
associated eigenvectors). I heard about optimizations of the eigen
2012 Sep 27
1
Problem with grid.rect
I have a stupid problem that is currently driving me crazy...
Let us suppose that I want to draw a big red square in the middle of my
current device (say X11)
I tried the following code :
pushViewport(viewport(xscale=c(0,1), yscale=c(0,1)), just=c("center", "center"))
vp1 <- viewport(x=unit(0.5, "native"), y=unit(0.5, "native"),
width=unit(0.4,
2014 Dec 20
2
Unexplained difference between results of dppsv and dpotri LAPACK routines
Dear R contributors,
Considering the following sample C code, that illustrates two possible
uses of a Cholesky decomp for inverting a matrix, equally valid at
least in theory:
SEXP test() {
int d = 2;
int info = 0;
double mat[4] = {2.5, 0.4, 0.4, 1.7};
double id[4] = {1.0, 0.0, 0.0, 1.0};
double lmat[3];
F77_CALL(dpotrf)("L", &d, mat, &d, &info);
lmat[0] = mat[0];
lmat[1]
2012 Oct 10
1
Filling points in a trellis object
With the following code :
I would like to plot 4 points, and have the circle and diamond shapes filled
with grey. What am I missing ?
Thanks by advance for your help,
Pierrick Bruneau
Research Fellow
CRP Gabriel Lippmann
--
View this message in context: http://r.789695.n4.nabble.com/Filling-points-in-a-trellis-object-tp4645679.html
Sent from the R help mailing list archive at Nabble.com.
2013 Mar 20
1
help on extracting values from a matrix
Dear All,
any thoughts on how I can do the following:
let us say we have:
a <-c(2,4,16,28,48)
b <-c(10,4,2,0.4,0.03)
d <-cbind(a,b)
what I would like to do is to extract values of column b in the matrix based on the corresponding values of column a. For example: I would like to extract all b values that have a corresponding a value that is less than 24 into a numeric vector, so
2013 Mar 20
2
problem subsetting data.frame in R version 2.15.2 for Windows
Good day.
I create a data frame like this:
> data <- data.frame(a=1:10,b=11:20,c=21:30)
I can subset this data.frame by saying:
> data[data$a>7,]
and I get this result
a b c 8 8 18 28 9 9 19 29 10 10 20 30
I understand I should get the same result by saying
2013 Mar 20
3
highlight overlapping region of two densities
Hi all.
I would like to highlight overlapping regions of two densities and I could
not find a way to do it.
Here is the sample code:
myd <- c(2,4,5, 4,3,2,2,3,3,3,2,3,3,4,2,4,3,3,3,2,2.5,
2, 3,3, 2.3, 3, 3, 2, 3)
myd1 <- myd-2
plot(range(density(myd)$x, density(myd1)$x), range(density(myd)$y,
density(myd1)$y), type = "n")
lines(density(myd), col=1, lwd=4)
2001 Jan 18
5
Samba configuration error
Hi,
I am an unix admin trying to install samba 2.0.7 on a HP unix 10.20
system.
After a long string of checking messages, at end there is an ERROR
message which abort the configuration:
checking configure summary
ERROR: No locking available. Running Samba would be unsafe
configure: error: summary failure. Aborting config
I was wondering what caused it and how to get around it. This is
2003 Oct 08
7
chan_capi and latest Debian package
After
apt-get update && apt-get upgrade -y
wget http://www.junghanns.net/asterisk/downloads/chan_capi.0.2.5c.tar.gz
tar xfvz chan_capi.02.5c.tar.gz
cd chan_capi-0.2.5c
make && make install
shutdown -r now
asterisk seg faults upon calling in via ISDN.
Any ideas are greatly appreciated.
rgds
pos
2003 Feb 11
3
Samba getting user info from NT PDC
Hi!
My boss asked me to be able to share some directories on a FreeBSD Samba server
with users already created (and used) on a NT 4.0 PDC server.
So I followed http://www.sugoi.org/bits/index.php?bit_id=10
I just replaced the Windows 2k part by adding the NetBIOS name of the machine to
the NT PDC.
When I did the smbpasswd trick it worked like charm:
testsmb# smbpasswd -j CH-DOMAIN -r PDC
2005 Dec 19
1
Upsmon problem
Hi,
I feel that i'm having a small problem with my upsmon configuration
(maybe even simply a permissions problem) since I upgrade today to 2.0.2
I have apcsmart set up and talk to my ups no problem (upsc get answer).
I have upsd running no problem!
But when I try to start upsmon, it's unable to talk to my upsd. Having
try a few option I found that saying RUN_AS_USER=root makes my upsmon
2003 Feb 13
6
!!ATTENTION NEWBIES!!
I've been reading this list for a few weeks now and
I've given advice on questions that look challenging
but I've deleted MANY questions like these:
"How do I (easy question found in the documents)?"
Though I don't count myself an expert, I've known
enough experts to see that they _HATE_ it when you
don't invest some time before asking a question. I
too have
2008 May 26
2
RcppTemplate find example C++ souce code without Rtools ??
Dear R users,
I would like to call R from C++ and Rcpp class library already compiled are
a big advantage !!
I have already read the doc/PDF in the installed package 5.0 and all the
posts in this forum
It's possible to get the source code (RcppExample.cpp) whitout Rtools ??
(i'm not familiar whit Rtools)
many thanks in advance
Roberto Iacopetti
win XP sp 2.2600
Dev-C++ 4.9.9.2
R
2014 Dec 18
0
segfault when trying to allocate a large vector
Hi Pierrick,
You're storing largevec on the stack, which is probably causing a stack
overflow. Allocate largvec on the heap with malloc or one of the R memory
allocation routines instead and it should work fine.
Karl
On Thu, Dec 18, 2014 at 12:00 AM, Pierrick Bruneau <pbruneau at gmail.com>
wrote:
>
> Dear R contributors,
>
> I'm running into trouble when trying to
2008 Mar 31
1
as.character ()
Hello,
I'm trying to tranform a numeric vector into a character vector.
> x=c(2.00,1.20,5.00,6.56)
> y= as.character(x)
> y
[1] "2" "1.2" "5" "6.56"
What I want is :
[1] "2.00" "1.20" "5.00" "6.56"
Does someone know how to do this please ?
Benoit Bruneau
2017 Jan 11
2
rgl
I have a Fedora linux 24 64bit workstation I am trying to install rgl on and I keep running into this error:
trying URL 'https://cran.cnr.berkeley.edu/src/contrib/rgl_0.97.0.tar.gz'
Content type 'application/x-gzip' length 2369444 bytes (2.3 MB) ==================================================
downloaded 2.3 MB
* installing *source* package 'rgl' ...
** package