Displaying 12 results from an estimated 12 matches for "embeddedrcall".
2005 Mar 17
1
Compiling "embedding R" examples
...nclude -I/home/laurent/R-2.0.1/src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/laurent/R-2.0.1/tests/Embedding/Rtest.c -o Rtest.o
gcc -I. -I../../src/include -I/home/laurent/R-2.0.1/src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/laurent/R-2.0.1/tests/Embedding/embeddedRCall.c -o embeddedRCall.o
../../bin/R CMD LINK gcc -o Rtest Rtest.o embeddedRCall.o -L/home/laurent/R-clean/lib -lR
mkdir .libs
gcc -o Rtest Rtest.o embeddedRCall.o -L/home/laurent/R-clean/lib -lR -R/home/laurent/R-clean/lib/R/lib
Undefined first referenced
symbol...
2006 May 25
1
compiling tests/Embedding
...o and compiler and arch information. Do I have an
improperly built R shared library or is there a problem with the
Embedding tests or something else I am not seeing?
Thanks for any help!
George
ost at hawk0:/data5/ost/R/R-2.3.0/tests/Embedding> make
../../bin/R CMD LINK gcc -o Rtest Rtest.o embeddedRCall.o -L`cd ../.. &&
/bin/pwd`/lib -lR
gcc -o Rtest Rtest.o embeddedRCall.o
-L/autofs/tewa_data5/ost/R/R-2.3.0/lib -lR -Wl,--rpath
-Wl,/data5/ost/R/R-2.3.0/lib
embeddedRCall.o(.text+0x1e): In function `Test_tryEval':
/autofs/tewa_data5/ost/R/R-2.3.0/tests/Embedding/embeddedRCall.c:81:...
2005 Mar 17
3
Compiling "R Embedded" examples
...nclude -I/home/laurent/R-2.0.1/src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/laurent/R-2.0.1/tests/Embedding/Rtest.c -o Rtest.o
gcc -I. -I../../src/include -I/home/laurent/R-2.0.1/src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /home/laurent/R-2.0.1/tests/Embedding/embeddedRCall.c -o embeddedRCall.o
../../bin/R CMD LINK gcc -o Rtest Rtest.o embeddedRCall.o -L/home/laurent/R-clean/lib -lR
mkdir .libs
gcc -o Rtest Rtest.o embeddedRCall.o -L/home/laurent/R-clean/lib -lR -R/home/laurent/R-clean/lib/R/lib
Undefined first referenced
symbol...
2019 Apr 05
2
Parsing code with newlines
...on is barely mentioned anywhere and longjmp into
terminated setuploop function followed by R_suicide look like a mystery.
Error: bad value
Fatal error: unable to initialize the JIT
That aside, here is the code with newlines that fails to parse. I hope
it will paste alright here.
#include "embeddedRCall.h"
#include <R_ext/Parse.h>
int
main(int argc, char *argv[])
{
SEXP e, tmp;
int hadError;
ParseStatus status;
init_R(argc, argv);
PROTECT(tmp = mkString("\n\r ls()"));
PROTECT(e = R_ParseVector(tmp, 1, &status, R_NilValue));
if (status != PARS...
2002 Apr 17
1
Problems embedding R in a C application
...not an option). I'm
developing on a Win2K box. The two problems I've hit (so far!) are these:
Macro definition (R is using a macro already defined in one of the core
windows libraries)
Unresolved external - missing definition for func Rf_initEmbeddedR which is
prototyped as an extern in EmbeddedRCall.c
Here are the issues again (in more detail)
===========================================================
1. Macro re-definition
In file ..\include\R_ext\RS.h
the line (37):
#define ERROR ),error(R_problem_buf);}
causes this problem :
warning C4005: 'ERROR' : macro redefinition...
2005 Feb 04
5
simple example of C interface to R
i'd like to use the C interface to R in a program i'm writing. as a
starting point, i'm trying to create a very simple C program that uses
R. i've read the R documentation on this, but i'm having trouble
figuring out where SEXP is defined and how to use it.
i noticed someone else on this list also tried to use the C interface,
but they ran into similar problems:
2019 Apr 10
0
Parsing code with newlines
...gt; terminated setuploop function followed by R_suicide look like a mystery.
>
> Error: bad value
> Fatal error: unable to initialize the JIT
>
>
> That aside, here is the code with newlines that fails to parse. I hope
> it will paste alright here.
>
>
> #include "embeddedRCall.h"
> #include <R_ext/Parse.h>
>
> int
> main(int argc, char *argv[])
> {
> SEXP e, tmp;
> int hadError;
> ParseStatus status;
>
> init_R(argc, argv);
>
> PROTECT(tmp = mkString("\n\r ls()"));
> PROTECT(e = R_P...
2008 Aug 30
0
R embedded reinitialization error (PR#12644)
...cation.
The simplest example I can provide is a modified tests/Embedding/Rplot.c file
with one line added.
Here each call to "eval_R_command" contains complete
initialization/deinitialization
of embedded R. Second call to eval_R_command fails:
//tests/Embedding/Rplot.c
#include "embeddedRCall.h"
int main(int argc, char *argv[]) {
eval_R_command("plot", argc, argv); // this completes OK
eval_R_command("plot", argc, argv); // this line is added and fails
return(0);
}
Output:
D:\R\tests\Embedding>rplot
Error in .Call("R_isMethodsDispatchOn&quo...
2009 Nov 14
1
R_tryEval for OCaml-R.
Hello.
I'm currently working on the OCaml-R binding allowing to call R code
from Objective Caml.
As Objective Caml is a functional language, I'd like the binding to be
as 'functional' as possible. Specifically, this means that I'd like
using the R_tryEval function and all related entry points in libR.so.
I've had a look at R-exts.pdf, but R_tryEval is not documented.
2007 Oct 13
1
R API - optim
...ned reference to `nmmin'
Thanks in advance for any help.
------------------------
#include <R_ext/Applic.h>
#include <R.h>
#include <stdio.h>
double parabola(int n, double *par, void *ex) { double xm = par[0] - 1;
return xm * xm + 13;
}
/*
* Copied from tests/Embedded/embeddedRCall.c:
*/
extern int Rf_initEmbeddedR(int argc, char *argv[]);
int main()
{
char *argv[]= {"nmminDemo", "--gui=none", "--silent"}; const int argc =
3;
double initial[1] = {1.5};
double result[1];
double value;
int convergenceCode;
/*
* The following v...
2010 Nov 22
4
How to call R from C
Hi all!
I read R Extensions manual.
But still I am not sure how to call R functions from C.
Would any of you give me a sample C code to show how to call R functions - for instance, time series functions - from C in the embedded way of C code?
[[alternative HTML version deleted]]
2019 Apr 10
1
Parsing code with newlines
...ed by R_suicide look like a mystery.
>>
>> Error: bad value
>> Fatal error: unable to initialize the JIT
>>
>>
>> That aside, here is the code with newlines that fails to parse. I hope
>> it will paste alright here.
>>
>>
>> #include "embeddedRCall.h"
>> #include <R_ext/Parse.h>
>>
>> int
>> main(int argc, char *argv[])
>> {
>> SEXP e, tmp;
>> int hadError;
>> ParseStatus status;
>>
>> init_R(argc, argv);
>>
>> PROTECT(tmp = mkString(&q...