search for: rembedded

Displaying 20 results from an estimated 41 matches for "rembedded".

Did you mean: embedded
2010 Aug 03
1
License for Rembedded.h
...compatible with GPL, by making the relevant header files available under the LGPL. This was an explicit change that was made in February 2001, and allows for DLLs that require the API header files for compilation and are linked against R.dll to not be "infected" with the GPL. However the Rembedded.h header file isn't included in the list in the doc\COPYRIGHTS file, and the copyright statement in the Rembedded.h header file lists the GPL and not the LGPL as the relevant license. So it doesn't look like it is allowed that I be able to use the R invocation API to launch R and embed it...
2016 May 18
2
Latest R-devel build failing on OS X
Dear R-devel, The latest version of R-devel (05-17) is throwing an error for me when building on OS X (v 10.11.4): making Rembedded.d from Rembedded.c making dynload.d from dynload.c making system.d from system.c making sys-unix.d from sys-unix.c making sys-std.d from sys-std.c making X11.d from X11.c clang -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fPIC -Wall -mtune=core2 -g -O2 -c...
2016 May 18
3
Latest R-devel build failing on OS X
...n) > make[3]: *** [R.bin] Error 1 > On 18 May 2016, at 14:18 , Keith O'Hara <keith.ohara at nyu.edu> wrote: > > Dear R-devel, > > > > The latest version of R-devel (05-17) is throwing an error for me when building on OS X (v 10.11.4): > > > > making Rembedded.d from Rembedded.c > > making dynload.d from dynload.c > > making system.d from system.c > > making sys-unix.d from sys-unix.c > > making sys-std.d from sys-std.c > > making X11.d from X11.c > > clang -I. -I../../src/include -I../../src/include -I/usr/local/incl...
2010 Sep 29
0
getDLLVersion
...hrough the example in the help page on calling the .dll directly ( http://cran.r-project.org/doc/manuals/R-exts.html#Calling-R_002edll-directly ). When I compile I consistently get the error that getDLLVersion() as well as get_R_HOME() and getRUser() are undefined references. These are defined in Rembedded.h ln60 as: extern char *getDLLVersion(void), *getRUser(void), *get_R_HOME(void); I included Rembedded.h from the example. I searched the entire R directory for the string getDLLVersion and only found it in Rembedded.h and the help documentation (for the .dll directly example). Am I missing some...
2016 May 18
0
Latest R-devel build failing on OS X
...xit code 1 (use -v to see invocation) make[3]: *** [R.bin] Error 1 On 18 May 2016, at 14:18 , Keith O'Hara <keith.ohara at nyu.edu> wrote: > Dear R-devel, > > The latest version of R-devel (05-17) is throwing an error for me when building on OS X (v 10.11.4): > > making Rembedded.d from Rembedded.c > making dynload.d from dynload.c > making system.d from system.c > making sys-unix.d from sys-unix.c > making sys-std.d from sys-std.c > making X11.d from X11.c > clang -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fPIC...
2010 Aug 06
1
Is R GPL or LGPL (or can I write a commercial front end to R)?
...by making the relevant header files available under the LGPL. This was an explicit change that was made in February 2001, and the intention was to allow for DLLs that require the API header files for compilation and are linked against R.dll to not be "infected" with the GPL. However the Rembedded.h header file isn't included in the list in the doc\COPYRIGHTS file, and the copyright statement in the Rembedded.h header file lists the GPL and not the LGPL as the relevant license. So it doesn't look like it was the intention to allow that I be able to use the R invocation API to launch...
2009 Sep 16
2
I want to get a reference to this time series object
...like above. Here is what I tried to do. It doesn't work because "[" is obviously not an operation or function on SWX.RET. So how do I get a reference to this object? #include <stdio.h> #include <R.h> #include <Rinternals.h> #include <Rdefines.h> #include <Rembedded.h> int main(int argc, char** argv) { SEXP e,c,portSpec,portData,portConstr,portVal,tsAssets; int errorOccurred,nx,ny,i,j; double *v; const char *x,*y; Rf_initEmbeddedR(argc, argv); // loading fPortfolio PROTECT(e = lang2(install("library"), mkString(&quo...
2016 May 18
0
Latest R-devel build failing on OS X
...Error 1 > >> On 18 May 2016, at 14:18 , Keith O'Hara <keith.ohara at nyu.edu> wrote: > >>> Dear R-devel, >>> >>> The latest version of R-devel (05-17) is throwing an error for me when building on OS X (v 10.11.4): >>> >>> making Rembedded.d from Rembedded.c >>> making dynload.d from dynload.c >>> making system.d from system.c >>> making sys-unix.d from sys-unix.c >>> making sys-std.d from sys-std.c >>> making X11.d from X11.c >>> clang -I. -I../../src/include -I../../src/include...
2007 May 12
0
The best way to use R's linear algebra functions from C
...from the web, ran the "Embedded" tests, and grep'ed / looked at the source code. It is now my understanding that there are several ways I could use R from C: 1. Pass data from C to an R function, loaded during R runtime; 2. Build R statements and use Rparse.h to execute them; 3. Use Rembedded.h to call R's C functions; 4. Directly call R's C functions. 4) would be the fastest (I think?), and speed is some concern. However, I am finding it very tough going to discover how to implement this. For example: given two matrices represented as arrays of doubles and their numbers of row...
2009 Apr 01
1
R in standalone application
...ions about the direction to give to a user, knowing his/her habits. Because I used R back at school, I thought I can use some of his functions in my application, as a shared library. I reviewed the "Rinternals" and "R extensions" documents, and decided to give a try to the REmbedded.c file. Compilation and linking went well. But the execution failed with a "Fatal error: R home directory is not defined". Does it mean that R has to to be distributed with my application or, did I miss something in my readings ? If that is of any importance, I am working on unix but...
2007 Apr 07
2
Rf_PrintValue problem with methods::show
...able changes to the R_ParseVector call). On powerpc Linux I get a segfault. $ RPROG=R-devel $ ${RPROG} --version | head -1 R version 2.6.0 Under development (unstable) (2007-04-06 r41080) $ export LD_LIBRARY_PATH=`${RPROG} RHOME`/lib $ cat parseEvalS4.c #include <Rinternals.h> #include <Rembedded.h> #include <R_ext/Parse.h> int main(int argc, char *argv[]) { SEXP e, val; int i, errorOccurred; ParseStatus status; char *cmds[] = { "show(5)", "show(cbind2)", "cbind2" }; argv[0] = "R"; Rf_initEmbeddedR(argc, argv);...
2009 Aug 25
2
Clarifications please.
...learly. I have a vague idea but still I cannot understand how I would evaluate an R expression like Covariance <- round(cov(100 * SWX.RET), digits = 4) using lang, install and R_tryEval. 2) What exactly does install do? 3) I wrote the following code: #include <Rinternals.h> #include <Rembedded.h> int main (int argc, char** argv) { SEXP e,val; int errorOccurred; Rf_initEmbeddedR(argc, argv); // library("fPortfolio") PROTECT(e = lang2(install("library"), mkString("fPortfolio"))); R_tryEval(e, R_GlobalEnv, NULL); UNPROTECT(1);...
2008 Sep 03
8
suggestion of new API function for embedded programming.
...ot;t.test(x,conf.level=(1-p))$conf.int[2]" I had an idea for an addition to the embedded API. There are a number of hidden or static parse functions (R_ParseBuffer, R_Parse1Buffer, etc.) which take an IoBuffer* and returns a parsed tree. If one or more of these functions were exported to the Rembedded.h API we could do something like the following: R_Expr = R_Parse1Buffer(&R_ConsoleIob, 0, &status); if (PARSE_OK==status) { ... value = eval(R_CurrentExpr, rho); ... } or possibly simplifying the interface to take the CMDL string: R_Expr = R_Parse1Line("t.test(x,...
2009 Dec 26
1
Problem compiling R library on FC4 ( conflicting declaration in Rinterface.h and stdint.h)
...; #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> #define R_NO_REMAP #define R_INTERFACE_PTRS 1 #define CSTACK_DEFNS 1 #include <Rversion.h> #include <R.h> #include <Rdefines.h> #include <Rinterface.h> #include <Rembedded.h> #include <R_ext/Boolean.h> #include <R_ext/Parse.h> #include <R_ext/Rdynload.h> Thanks Saptarshi
2009 Jun 26
1
bug in Rf_PrintValue ?
...ing program segfaults at the second call to Rf_PrintValue(). To failure depends on the value of the y-string. E.g., if I change it from "coverage" to, say, "COVERAGE", the segfault does not occur. /* bug.c */ #include <stdio.h> #include <Rinternals.h> #include <Rembedded.h> int main(int argc, char **argv) { char *x = "foo"; char *y = "coverage"; SEXP x_r, y_r; Rf_initEmbeddedR(argc, argv); PROTECT( x_r = mkChar( x ) ); Rf_PrintValue( x_r ); printf( "OK\n" ); PROTECT( y_r = mkChar( y ) ); Rf_PrintValue( y_r );...
2011 Mar 02
3
CentOS 5 install won't make with shared libs enabled
...h.o print.o printarray.o printvector.o printutils.o qsort.o random.o raw.o registration.o relop.o rlocale.o saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o unique.o util.o version.o vfonts.o xxxpr.o ../unix/Rembedded.o ../unix/libunix.a ../appl/libappl.a ../nmath/libnmath.a ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a ../extra/tre/libtre.a ../extra/xz/liblzma.a -L../../lib -lRblas -lgfortran -lm -lreadline -lncurses -ldl -lm /usr/bin/ld: CConverters.o: relocation R_X86_64_32S agains...
2009 Jan 08
1
Callbacks seems to get GCed.
...bose. The first couple of call of calls still work, but at some point one of the callbacks (callback1 in my case) changes its type. Regards and thanks for any help, Bernd #include <stdio.h> #include <stdlib.h> #define R_INTERFACE_PTRS 1 #include <Rversion.h> #include <Rembedded.h> #include <Rinternals.h> #include <Rdefines.h> #include <R_ext/Parse.h> #include <R_ext/Rdynload.h> #include <R_ext/RStartup.h> #include <Rinterface.h> SEXP callback1; SEXP callback2; void set_callback1(SEXP func) { PROTECT(callback1 = func); } void se...
2006 Apr 13
1
R-latest.tar.gz make error
...VE_CONFIG_H -fPIC -fno-common -g -O2 - std=gnu99 -c vfonts.c -o vfonts.o g77 -fPIC -fno-common -g -O2 -c xxxpr.f -o xxxpr.o gcc -dynamiclib -L/usr/local/lib -dynamiclib -install_name libR.dylib -compatibility_version 2.3.0 -current_version 2.3.0 - headerpad_max_install_names -o libR.dylib Rembedded.o CConverters.o CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o apse.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate...
2009 Sep 29
3
How do I access class slots from C?
...() a list I want to set the weights so that I can compute a feasiblePortfolio. Unfortunately I cannot figure out how to do this from C. Here is what I wrote so far: #include <stdio.h> #include <R.h> #include <Rinternals.h> #include <Rdefines.h> #include <Rembedded.h> int main(int argc, char** argv) { SEXP e,c,portSpec,portData,portConstr,portVal,portWeights,tsAssets,tsReturns,nAssets,reciprocal; int errorOccurred,nx,ny,i,j; double *v; const char *x,*y; Rf_initEmbeddedR(argc, argv); // loading fPortfolio PROTECT(e = lang2(in...
2006 Apr 03
2
Build failure with this morning's R-alpha
...ing directive: [...] gcc -I. -I../../src/include -I../../src/include -DHAVE_CONFIG_H -fpic -O2 -c version.c -o version.o gcc -I. -I../../src/include -I../../src/include -DHAVE_CONFIG_H -fpic -O2 -c vfonts.c -o vfonts.o g77 -fpic -O2 -c xxxpr.f -o xxxpr.o gcc -shared -o libR.so Rembedded.o CConverters.o CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o apse.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate.o engine....