Displaying 20 results from an estimated 200 matches similar to: "Rmath: R libraries from C on Mac OS X"
2004 Apr 22
2
Urgent:again question about nmath/standalone
Hello, all,
I have the same question as the last mail I sent. I have installed libRmath in
my system. But I still can not link Rmath through -lRmath. The whole process
is as follow.Is there anybody who is so kind to help me find out the problem?
I will appreciate very much.
[credsim at confsys ~]$ cd /usr/lib
[credsim at confsys lib]$ ls -l libR*
-rw------- 1 bcdesai bcdesai 237828 Apr
2004 Apr 14
1
question about /nmath/standalone
Hello,
I can't link a c code with Mathlib according to introduction of R
manual "Writing R Extensions", page 60.
It is written :
"It is possible to build Mathlib, the R set of mathematical functions
documented in
'Rmath.h?, as a standalone library 'libRmath? under Unix and Windows. (This
includes
the functions documented in Section 5.7 [Numerical analysis
2005 Jun 02
1
could not open libRmath.so
Hi
I got a very tricky problem when I tried to compile a C++ program
which links to libRmath.so. The program itself had no problem, I can
compile and run in my own linux machine where I compiled libRmath.so
file and copied it to system directory (/usr/local/lib).
Now I want to compile my program at another linux box where I don't
have root privilege. That machine only has binary version of R,
2004 Apr 14
2
again question about nmath/standalone
Hello,
I forgot to tell you that I am using Linux OS. And I can?t find
directory "src/nmath/standalone". I will send you the test code I am using and
the whole operation process.
[credsim at confsys ~/src]$ gcc test1.c -o test1 -lRmath
test1.c: In function `main':
test1.c:18: warning: assignment makes pointer from integer without a cast
test1.c:19: warning: assignment makes
2005 Aug 11
1
include C functions from nmath in my own C functions
Hi:
I followed the README in src/nmath/standalone/
to make the use the command "make shared" to make the
libRmath.so file. I also add the directories containg
libRmath.so to LD_LIBRARY_PATH by using command
"export
D_LIBRARY_PATH=$LD_LIBRARY_PATH:$/home/zhliu/Backup/R-2.0.1/src/nmath/standalon
e
"
However, when I try to run the following codes by the
command
2002 May 31
1
Two questions about nmath
Hi !
1) First question.
Excuse me for trouble with the same question. I still have problems
with the compilation of test.c in src/nmath/standalone.
I did follow the instructions you gave me but I still receive this message
[root at my standalone]# cc -o test test.c -L/usr/local -lRmath
/usr/local/libRmath.so: undefined reference to `log'
/usr/local/libRmath.so: undefined reference to
2004 Jun 22
1
R mathlib
Hello, dear R experts!
I run R on Debian 'sarge' platform. There is 'r-mathlib' package in
Debian distribution, which is described as:
$ dpkg --status r-mathlib
...
This packages provides the libRmath shared and static libraries which
can be called from standalone C or C++ code.
Well, I use runif() function in test_runif.c:
#include <Rmath.h>
main()
{
// ...
2000 Oct 30
1
unsuccesfully making libRmath.a
Dear All,
I am having problems making and using the standalone library, after succesfully
installing R from the tar.gz file (I am using Linux, with R-patched, but I have
similar problems with R-devel).
First, when I do:
root at ligarto:/usr/lib/R-patched/src/nmath/standalone > make
....
ar: mlutils.o: No such file or directory
make[1]: *** [libRmath.a] Error 1
make[1]: Leaving directory
2023 Feb 16
0
User-defined RNG with the standalone Rmath library
I have two questions about using a user-defined random number generator (RNG) with the standalone Rmath library. The default RNG with the standalone Rmath library is the Marsaglia-multicarry generator, which has poor properties. The "R Installation and Administration" manual, in the section "The standalone Rmath library", states that:
```
A little care is needed to use the
2006 Feb 25
2
R-Project build system: DESTDIR support
Hello,
I am writing you about the GNU R-Project,
as part of by effort to help GNU projects provide a better, more
consistent build system.
Currently, your project does not support the DESTDIR variable in
generated Makefiles (marked as optional in the GNU coding policies, make and
automake manual).
In my opinion, DESTDIR support can be very helpful for the user, the
distribution-specific
2003 Dec 14
1
compile error with C code and standalone R math C library
Dear People,
I just went back to an old piece of C code. On trying to compile it with
the R math standalone C library I got the following error. Can anyone
enlighten me what I am doing wrong, if anything? C file (rr-sa.c) follows.
I'm on Debian sarge. I'm running R version 1.8.1. Gcc is version
3.3.1.
Thanks in advance.
Faheem.
2008 Jan 29
1
The standalone Rmath library and VC++ 2003
Linking my VC++ application with the standalone Rmath library yields the
following;
------ Build started: Project: Complex plugin, Configuration: Debug
Win32 ------
Linking...
Creating library .\../Debug/complex_plugin.lib and object
.\../Debug/complex_plugin.exp
libRmath.a(mlutils.o) : warning LNK4217: locally defined symbol __iob
imported in function _REprintf
libRmath.a(dbeta.o) :
2002 May 24
1
nmath standalone again
Hi !
I have again problem with nmath standalone sources package.
Following the suggestion of Reid, I did control that
/usr/local, in which I copied the dir standalone, is listed in
/etc/ld.so.conf.
However, because of my big ignorance, I don't understand how I have to do
the linkage to Rmath during the compilation of a source.
What does it mean:
"and link against -lRmath" in
2006 Mar 03
1
Fwd: Re: calling R's library using C
Sorry, forgot to switch the header to the R group....
--- Globe Trotter <itsme_410 at yahoo.com> wrote:
> Date: Thu, 2 Mar 2006 19:35:21 -0800 (PST)
> From: Globe Trotter <itsme_410 at yahoo.com>
> Subject: Re: [R] calling R's library using C
> To: Dirk Eddelbuettel <edd at debian.org>
>
> Hi, Dirk:
>
> Thanks for all the help. I thought I would
2005 Jul 25
1
Rmath library problems
Hello,
Has anybody successfully called the Rmath library from C using the MS
Visual Studio compiler (I am using Visual Studio 6.0)?
I have compiled the Rmath library using gcc, and the 'test.c' program
(which makes a call to qnorm) works fine when compiled with gcc. However,
I get a fatal memory error when I run it after compiling it with Visual C.
Would this memory problem be related
2020 Jun 02
0
R standalone Rmath library - missing log1pexp(), rnbeta()
>>>>> William Birkett
>>>>> on Mon, 1 Jun 2020 15:16:07 -0400 writes:
> I built the the standalone Rmath library,
> https://cran.r-project.org/doc/manuals/r-release/R-admin.html#The-standalone-Rmath-library
> <https://cran.r-project.org/doc/manuals/r-release/R-admin.html#The-standalone-Rmath-library>
> The build process went
2004 Nov 02
0
how to call function in ../src/main
Hi, This is Kotien Wu from NIH/NCI.
We want to use R function for our web:
http://cgap.nci.nih.gov
It works for functions in R/R-1.9.1/src/nmath/standalone very well.
We have function GetPvalueForT.c which has
#define MATHLIB_STANDALONE 1
#include <Rmath.h>
double GetPvalueForT ( double t, double deg ) {
return 2 * pt(t, deg, 0, 0);
}
We create GetPvalueForT.i, which has
/* File :
2002 May 23
1
nmath standalone
Dear all,
I'm trying to use the as a standalone package the nmath sources.
In R-1.4.1/src/nmath/standalone, in linux operating system I made 'make
shared' to obtain libRmath.so. then I copied the dir standalone, where
there is libRmath.so in /usr/local.
I tried to compile test.c with cc test.c but I obtain this error message
/tmp/ccsTxu7U.o: In function `main':
2004 Mar 19
1
R_qsort_int_I() error
Hi,
I want to use R_qsort_int_I() in my C function, but getting the
following error. It looks like there is a conflict between Rmath.h,
which I use to generate random numbers, and R_ext/Boolean.h I would
appreciate any help to fix this problem.
gcc -ansi -g -o Gibbs gibbs.c subroutines.o rand.o vector.o -lm -lRmath
-llapack -lblas -lfrtbegin -lg2c -lm -shared-libgcc
In file included from
2006 Mar 01
3
library file for R's nmath routines
Hi,
I am wondering where the library file for R's nmath routines are?
Doing a search on libR gave me the following:
/usr/lib/libRKC16.so.1.2.0
/usr/lib/libRKC.so.1.2.0
/usr/lib/R/lib/libRlapack.so
/usr/lib/R/lib/libR.so
/usr/lib/libRKC.so.1
/usr/lib/libRKC16.so.1
None of these have the functions in nmath.
Any help? Many thanks and best wishes!
GT