Displaying 20 results from an estimated 400 matches similar to: "How to call R functions from a C++ program"
2000 Jun 30
1
I have a dream of creating a program on statistical analyses.
2000 Sep 02
4
colors for background and plotting area
Dear all,
I am trying to prepare some figures where I'd like the color of the plot region
(i.e., the area bounded by the axes) to be different from the margin area
(i.e., the area of the figure not within the axes region). I can use "bg" but
that changes the background of everything? How can I accomplish what I want?
Thanks,
Ramon
--
Ramón Díaz-Uriarte
Triana 47
28016 Madrid
2008 May 21
5
swat password
Hello all,
I'm having trouble logging into swat. Not even root can login! I'm using
Rocks 4.1 (linux cluster based on CentOS) Has anybody experienced this?
Thanks in advance!
Santiago
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 Mar 02
1
Mathlib
First of all I would like to join the chorus of approval over the release
of R 1.0.0. It really is an excellent piece of software. I'm sure you
will astonish us again with Omega.
I have a query about Mathlib. It is such a nice collection of functions
that it would be nice to use it in other software, not necessarily related
to R. Is it possible to build Mathlib separately, and/or install
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
2008 Oct 04
3
Palm OS port
hello all,
At my workplace, our colleague Mukesh has just completed a port of
speex 1.2.1 to Palm OS. He had to write a couple of mathlib functions,
but the trunk remains unchanged.
It works quite well, I was wondering if there will be any interest in
this port in the distribution.
- farhan
2010 Dec 20
1
R hangs on the stats.so library
Dear all,
I having this problem on my laptop.
It was caused by my clumsy attempts to upgrade the system.
As I wrote here,
(http://www.mail-archive.com/r-sig-debian at r-project.org/msg01364.html)
I was trying to solve the same problem with JAGS/rjags on my laptop.
After typing R in a terminal I'm currently get the following:
> R version 2.9.0 (2009-04-17)
> Copyright (C) 2009 The R
1999 Mar 05
2
[Andreas Krause <Andreas.Krause@genedata.com>] Re: splus shell escapes
Anyone know what the problem is with IRIX 6.5 ? (esp if there is a
solution?). Looks like the built-in math stuff is masking definitions
from R source.
(passing this along for a friend).
best,
-tony
From: Andreas Krause <Andreas.Krause@genedata.com>
To: "A.J. Rossini" <rossini@biostat.washington.edu>
Subject: Re: splus shell escapes
# download
./configure
R is now
1999 Jan 26
1
'repeated' calculation
I have pulled Jim Lindsey's repeated library and put it under the
libraries directory, as are all the other toolboxes. 2 questions:
Running R COMPILE *.c and *.f goes fine except that Mathlib.h cannot be
found - it is not in the include library. I cannot find any other
Mathlib.h on my system anywhere - presumably this is an R specific module.
Was this missing from the 0.62.4 distribution -
2000 Oct 12
2
works in R-1.1.1 but not in R-development; why?
Dear All,
A library (PHYLOGR) that passed the usual tests in R-1.1.1 gives errors with
R-devel; my (mis?)understanding of scoping rules is
that it should have worked in both. The problems seem related to using the
name of the data frame for extracting weights or subsets within a function
call. The problems can be reproduced as follows:
**********************
datai <- data.frame( y =
2020 Sep 01
1
Rust bindings to nmath
>>>>> Dirk Eddelbuettel
>>>>> on Tue, 1 Sep 2020 07:56:53 -0500 writes:
> On 1 September 2020 at 13:01, Richard Dodd wrote:
> | I needed some statistical functions for a project I was working on in
> | Rust, and I've used the R math library as a standalone solution. I
> That's its purpose as far as I can tell. We have
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
2020 Sep 01
2
Rust bindings to nmath
Hello @R-devel
I needed some statistical functions for a project I was working on in
Rust, and I've used the R math library as a standalone solution. I
thought the R developers would be interested in the fact that their work
is being used elsewhere, and I also wanted to say thanks for some code I
do NOT want to have to write myself!
The "crate" (Rust's name for a package) is at
1999 Feb 09
3
Installing on 64-bit Dec or SGI
Hi all,
The systems guys here in the stat dept don't seem to be able to
compile R on the Dec Alphas or on the SGIs. Can anyone give them a hand?
-Greg
-------------------------------------------------------------------------------
Gregory R. Warnes | It is high time that the ideal of success
warnes at biostat.washington.edu | be replaced by the ideal of service.
2004 Jun 21
2
Cross build Makefile
Hello,
I am trying to use Yan and Rossini's Makefile for cross building Windows
versions of R packages in Linux with R 1.9.0. When compiling R with the
mingw tools I get an error about expm1 being undeclared when first found
at src/main/arithmetic.c:1019
If I fiddle a bit with it later on I also get errors about log1p bein
undeclared.
Any idea what should I look for?
I am using R 1.9.0 in
2004 Jun 21
2
Cross build Makefile
Hello,
I am trying to use Yan and Rossini's Makefile for cross building Windows
versions of R packages in Linux with R 1.9.0. When compiling R with the
mingw tools I get an error about expm1 being undeclared when first found
at src/main/arithmetic.c:1019
If I fiddle a bit with it later on I also get errors about log1p bein
undeclared.
Any idea what should I look for?
I am using R 1.9.0 in
2009 Nov 13
2
random numbers in C
I need some random numbers in my C program. Here a small example:
////////////////////////////////////////////////////////////////////////////////
#include <R.h>
void rand (int* n)
{
int len = *n;
for (int i = 0; i < len; i++)
Rprintf("%1.5f ", unif_rand());
}
dyn.load("rand.dll")
.C("rand", as.integer(10))
dyn.unload("rand.dll")
2012 Jan 27
2
The following code (using rgamma) hangs
Hi,
I'm seeing something that may be a bug in R's standalone math library,
which is packaged by Debian as r-mathlib. I reported it to the Debian BTS
as http://bugs.debian.org/657573
I'm using Debian squeeze, and the code was tested with r-mathlib 2.11.1-6
(default on stable) and 2.14.1-1 (from testing/unstable).
I summarize this report below. The following code with the R math
2002 Jan 14
1
trouble using R Mathlib as standalone
Dear People,
I am trying to use R's Math library as standalone, as documented in
/src/nmath/standalone. I am using C++ in Debian testing, and the versions
are as follows:
ii g++-3.0 3.0.3-1 The GNU C++ compiler.
ii r-mathlib 1.4.0-1 `GNU S' - Standalone R math library
I have a file (rand.cc) as follows. I don't think that lattice.hh or mh.hh
are very