dear list,
since matrix manipulations is often of interest in statistical
computations, i'd like to get a working example of using Lapack for
regression. However, i run into an error.
My matrix-lapack-example.c file:
#include R_ext/Lapack.h
void reg(const char* trans, const int* m, const int*
The
extra \n is located at line 142 of the current source function:
cat(\n, dep, if (do.trunc)...
HTH,
--
///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\
Jose Claudio Faria
Estatistica - prof. Titular
UESC/DCET/Brasil
joseclaudio.fa...@gmail.com
///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\
I understand global variables can be a bad idea, but even so I would like to
understand what is going on here...
### DESCRIPTION OF PROGRAM ###
...I have a strange bug on a global variable in some C code which I am compiling
using
$ MAKEFLAGS=CFLAGS=-g -O0 R CMD SHLIB myProgram.c
the global
To answer my own question...
I have two copies of my program
1) a working copy stored in $PROJECT/analysis/c
2) a packaged copy stored in $PROJECT/analysis/myPackage_1.0.2.tar.gz
I have been running a script which does the following
library(myPackage)
load(myData)
detach(package:myPackge)
usually what happens is (# meant to be a comment char)
% R -d gdb -f test.R
gdb run
...segfault happens, breaks into gdb
gdb bt # print the backtrace
gdb up # move up the stack, to get to 'your' frame
gdb l # show source listing, use -O0 compiler flag, see gdb help dir
gdb print
Full_Name: Rich Calaway
Version: 2.9.2
OS: Windows Vista
Submission from: (NULL) (65.47.30.18)
Consider the following function:
myfun - function(){
print(log(-1))
browser()
print(Good-bye!)
}
In the default case, with options(warn=0), if I call this function and type
Hi, all-
This one was moved to featuresFAQ, which appears to be the works as
documented folder, with the following note:
intentional: you do need to set repositories or interrupt R.
If this is true, there's still a bug, and in fact two of them: the graphical
menu dialog should have no Cancel
Hello,
I was trying this bit of code (i know it is an extreme case)
g=function(r){
if(r==1)
return(list(x=1))
else
return(list(x=g(r-1)))
}
For z=g(500), the code runs but when I print z i.e
z
I get
environment: R_GlobalEnv
*** caught bus error ***
address 0x1, cause
On 23/09/2009 7:10 PM, Saptarshi Guha wrote:
Hello,
I was trying this bit of code (i know it is an extreme case)
g=function(r){
if(r==1)
return(list(x=1))
else
return(list(x=g(r-1)))
}
For z=g(500), the code runs but when I print z i.e
z
I get
environment:
Hi,
in 'Writing R Extensions of R v2.10.0, under Section
'Cross-references' (2009-09-07) it says:
1. The markup \link{foo} (usually in the combination
\code{\link{foo}}) produces a hyperlink to the help for foo. Here foo
is a topic, that is the argument of \alias markup in another Rd file
On 23/09/2009 10:08 PM, Henrik Bengtsson wrote:
Hi,
in 'Writing R Extensions of R v2.10.0, under Section
'Cross-references' (2009-09-07) it says:
1. The markup \link{foo} (usually in the combination
\code{\link{foo}}) produces a hyperlink to the help for foo. Here foo
is a topic, that is the
On Wed, Sep 23, 2009 at 10:54 PM, Duncan Murdoch murd...@stats.uwo.ca wrote:
- Ways to link from man pages to vignettes. The reverse would be nice, but
it's not possible with the current design, so that would be far off.
If feasible I would like to be able to link to any text, html or pdf
You want the filename to be an alias because links sometimes go to aliases
and sometimes to filenames; you want the name to match because that's what
is displayed at the top of the page, so people might remember just go to
the Foo man page.
It would be really good to emphasise this somewhere.
13 matches
Mail list logo