Displaying 20 results from an estimated 2000 matches similar to: "pythag missing in src/appl/ROUTINES (PR#544)"
2000 May 22
2
hypot(x,y) instead of pythag(a,b) ?!
Some of you may have seen the pythag() part in the R API definition in
"Writing R Extensions" (source = doc/manual/R-exts.texinfo).
or followed the report and Prof. Brian Ripley's answer about pythag()'s
availability from R's binary.
As we say in above manual
>> `pythag(A, B)' computes `sqrt(A^2 + B^2)' without overflow or
>> destructive
2011 Mar 19
1
Undefined symbol "Rf_pythag" while loading spatstat
Today I installed the newest R develepment branch
R version 2.14.0 Under development (unstable) (2011-03-18 r54866)
on FreeBSD 9.0-CURRENT (amd64). All seems fine so far.
After that I updated my R packages with option 'checkBuilt=TRUE'. There
are four packages (spatstat, pscl, adehabitatLT, adehabitatHR) which
gives an error like this:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
2004 Jun 30
1
AS_NUMERIC and as.numeric - Could someone explain?
Dear List,
I stepped into a strange effect which I can't explain to myself
(probably due to lack of knowledge on R internals).
I have four vectors a,b,c and z of size 10000 each. With these vectors I
call
.Call("hyp2f1forrey", a, b, b, z, PACKAGE = "hyp2f1")
to access
SEXP hyp2f1forrey(SEXP a, SEXP b, SEXP c, SEXP x)
{
int i,n;
double *xa, *xb, *xc, *xx,
2000 Apr 24
1
compiling R-1.0.1 under Solaris
Dear all,
I am trying to compile R version 1.0.1 under Solaris on a SUNsparcUltra10.
Note that I'm doing this in my home directory as I cannot do it as root.
The configure script seems to run correctly and issues as the last few lines:
-----------------------------------------------
...
R is now configured for sparc-sun-solaris2.7
Source directory: .
Installation directory:
2010 Jun 15
1
Error when callin g C-Code
Hi
when I call the function below in R, i get the error: Object 'pairlist'
can't be converted to 'double'.
#include <R.h>
#include <Rdefines.h>
#include <Rmath.h>
SEXP CSimPoisson(SEXP lambda, SEXP tgrid, SEXP T2M, SEXP Ni, SEXP NT)
{
double sign, EVar;
double *xlambda, *xtgrid, *xT2M, *xNi, *xNT, *xtau;
SEXP tau;
int ltgrid =0;
int i = 0;
int j = 0;
2003 May 20
1
building a Win32 DLL with R objects?
I've been attemping to create a test dll that contains R objects (actually I
simply copied the code from the "Writing R extensions") and got it to build
the dll using rcmd shlib main.c (okay, it's simple, but effective). Here's
the info so far:
this is the contents of the main.c file (not there's no WinMain()). Do we
put it in or does the script do it when we compile?
2012 Dec 10
1
Changing arguments inside .Call. Wise to encourage "const" on all arguments?
I'm continuing my work on finding speedups in generalized inverse
calculations in some simulations. It leads me back to .C and .Call,
and some questions I've never been able to answer for myself. It may
be I can push some calculations to LAPACK in or C BLAS, that's why I
realized again I don't understand the call by reference or value
semantics of .Call
Why aren't users of
2000 Mar 27
1
Installing R on Solaris
Hi,
I've been trying to install R on Solaris, I've been following the
instruction for configuring & compiling R (I have gcc and f77
installed)- but I get Error messages. I'd appreciate it if you could
look at the output, (pasted below) and give me some advice on what to
do. I've attached the R install 'readme'.
Thanks, a quick reply would be greatly appreciated,
2005 Sep 13
3
NUMERIC_POINTER question
Dear R-developers,
Using .Call I pass a S4 class with e.g. the following class definition:
setClass("mmatrix",representation(
data="matrix")
)
On the "C side" i do
mat = GET_SLOT(vs,install("data"));
and then:
printf("%f\n",NUMERIC_POINTER(mat)[1]);
The above print statement produces the correct output if
xx<- new("mmatrix")
2004 Feb 11
1
.Call setAttrib(ans,R_DimSymbol,dim); Crashes.
Hi!
I want to return a matrix.
The code does the R interfacing.
This version does it fine.
SEXP ans,dim;
PROTECT(ans = NEW_NUMERIC(count*2));
memcpy(NUMERIC_POINTER(ans),result,count*sizeof(double));
memcpy(&(NUMERIC_POINTER(ans)[count]),occur,count*sizeof(double));
/** PROTECT(dim=NEW_INTEGER(2));
INTEGER_POINTER(dim)[0]=2;
INTEGER_POINTER(dim)[1]=count;
2004 Jan 09
1
Call and memory
I use a large real matrix, X, in C code that is passed from R and
transposed in place in the C code. I would like to conserve memory and,
if possible, allocate space for only one copy of X -- hence I would like
to pass a pointer to the data in the X object to the C code.
The Writing R Extensions manual says that neither .Call nor .External
copy their arguments. They also say that these
2012 Jun 10
0
rsync hanging in read-batch mode
Trying to do something like this, in Ubuntu 11.10/12.04:
Location A
(work occurs changing files)
rsync --write-batch /media/bkup/foo.rsb /path/to/files/ /path/to/copy/
Location B
rsync --read-batch /media/bkup/foo.rsb /path/to/files/
rsync --read-batch /media/bkup/foo.rsb /path/to/copy/
(work occurs changing files)
rsync --write-batch /media/bkup/foo.rsb /path/to/files/ /path/to/copy/
2001 Jun 15
1
R CMD check (PR#982)
In revising the splancs package, I use R CMD check. After a number of
changes to various files in the directory tree, R CMD check fails at the
* checking for undocumented objects ... ERROR
stage as shown below. But running undoc() in R (pointed at the Rcheck
directory, not on the older version) doesn't show the same error, and grep
on the Rcheck R code finds the function. I ran undoc() under
2001 Jul 02
0
ReleaseLargeFreeVectors SIGSEGV (?) (PR#1008)
Full_Name: Roger Bivand
Version: 1.3.0
OS: GNU/Linux RH6.2, 7.0, Debian 2.2
Submission from: (NULL) (158.37.100.64)
I'm working on interfacing ANN: A Library for Approximate Nearest Neighbor
Searching (http://www.cs.umd.edu/~mount/ANN/) to R, following up a prototype
package I tried in May 2000. ANN is written in C++; my C++ is very weak. Last
year
I didn't experience any problems with
1999 Jun 09
4
packages with FORTRAN code
Recent sensible changes to the dynload mechanism have made an old
problem resurface: how should we deal with packages which contain
Fortran code and may need to be linked against additional libraries
such as -lf2c?
The current consensus is that extra Fortran libraries maybe needed are
handled via the make variable FLIBS, and that `-lf2c' or `-lg2c' are
added by default if g77 is used.
2004 Jan 05
1
slow and max connection errors
Sorry about not being specific enough. I will try and be more so in the
future. Here is what I have currently:
Apple X-serve running Yellowdog (a Redhat 9 port for ppc) with 1GB of
RAM, 3 60GB HD not setup as RAID. They are individual partitions (/var
and /, /home and /shared). The shared partition is strictly for Samba
file sharing. I build in a matching user in both the system and in
2008 Jul 01
1
Users can't delete an email (Totally Random effect)
Hello all... Found a weird one here. I tried to search the web but I'm
not having luck so I thought I'd hit the mailing list.
We have noticed off and on all school year that every so often a user
gets an email that they just can't delete using Thunderbird or Outlook
over IMAP (we do not support Pop3 anymore.) Essentially the user clicks
the email and takes it to the trash.
2014 Sep 07
1
lbfgsb from C/C++
Hi,
I would like to call R's lbfgsb function from my C/C++ code by including
R_ext/Applic.h and linking against libR.
Currently, I am allocating memory for x (and the other input arrays for
lbfgsb) in my C/C++ code via malloc/new. However, this gives a segmentation
fault when executing the program.
I tried to allocate x via PROTECT(x = NEW_NUMERIC(n)); x_p =
NUMERIC_POINTER(x);.
This compiles
2010 Jun 18
3
C interface
Greetings,
I am trying to call simple C-code from R.
I am on Windows XP with RTools installed.
The C-function is
#include <R.h>
#include <Rinternals.h>
#include <Rmath.h>
#include <Rdefines.h>
// prevent name mangling
extern "C" {
SEXP __cdecl test(SEXP s){
SEXP result;
PROTECT(result = NEW_NUMERIC(1));
double* ptr=NUMERIC_POINTER(result);
double t =
2017 Aug 11
2
Issues of R_pretty in src/appl/pretty.c
See https://stat.ethz.ch/pipermail/r-devel/2017-August/074746.html for the origin of the example here.
That
pretty(c(-1,1)*1e300, n = 1e9, min.n = 1) gave 20 intervals, far from 1e9, but
pretty(c(-1,1)*1e300, n = 1e6, min.n = 1) gave 1000000 intervals
(on a machine), made me trace through the code to function 'R_pretty' in https://svn.r-project.org/R/trunk/src/appl/pretty.c .
*lo is