Displaying 20 results from an estimated 1500 matches similar to: "Problems embedding R in a C application"
2006 Aug 22
4
Native Extensions on Windows 0.10 series
Hi all,
I''ve just noticed that 0.10 is out and wanted to give it a try on windows.
I''m not at all an VS C++ Developer so I might do something very stupid here.
My env: Windows Server 2003
VS .NET 2003
On the command line with nmake from VC7 in the path this is what I get:
Attempting remote update of ferret
Building native extensions. This could take a while...
Microsoft
2005 Mar 17
1
Compiling "embedding R" examples
Hi,
I am working at a major financial institution and we would like to embed R in one of our front office application.
The application is written in C/C++ so I started by trying to compile the examples in "tests/Embedding" of R 2.0.1.
I have modified "tests/Embedding/Makefile" according https://stat.ethz.ch/pipermail/r-help/2005-February/064341.html
and set
2006 May 25
1
compiling tests/Embedding
I am compiling the Embedding examples in the tests directory and get an
undefined reference. I include the make output as well as grep'd output
of nm on libR.so 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
1999 Oct 27
1
Rdefines.h
Hi all,
may I request the following two changes to Rdefines.h (R 0.65.1)?
1.) Change line 106 from
#define Free(p) R_chk_free( (void *)(p) )
to
#define Free(p) R_chk_free( (void *)(p) ) , p=NULL
2.) Add after line 79:
#define PROBLEM {char R_problem_buf[R_PROBLEM_BUFSIZE];sprintf(R_problem_buf,
a new line 80:
#define PROBLEM {char
1999 Jun 14
4
definition of R_problem_buf in S.h (PR#210)
Full_Name: Thomas Vogels
Version: 0.64.1
OS: AIX 4.2
Submission from: (NULL) (198.133.22.70)
R_problem_buf is defined, not just declared, in S.h:
#define R_PROBLEM_BUFSIZE 4096
char R_problem_buf[R_PROBLEM_BUFSIZE];
This is bad since every time S.h is included this buffer is defined. The
linker
will eventually complain about multiple definitions of this symbol.
Solution: declare
2005 Sep 22
1
Rf_initEmbeddedR in Windows
Hi All
My C++/linux program uses Rf_initEmbeddedR to start R and then calls some
R functions. Now I try to port it to Windows. Give the fact that
Rf_initEmbeddedR is missing in Windows, I try to use the implmentation in
Rserve by Simon Urbanek. When I build in MS Visual Studio, I get the
following linking error
error LNK2019: unresolved external symbol __imp__putenv referenced in
function
2011 May 25
1
[LLVMdev] ms vc 10 warnings
Hi!
when compiling projects using llvm 2.9 and ms vc 10 I get these warnings:
1>e:\Jochen\Lib\lib\include\llvm/Use.h(218): warning C4624:
'llvm::AugmentedUse' : destructor could not be generated because a base
class destructor is inaccessible
1>C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\stdint.h(72): warning C4005: 'INT8_MIN' : macro redefinition
2009 May 12
1
[LLVMdev] MSVC cstdint
In the llvm file include/llvm/Support/DataTypes.h (.in/.cmake), for
MSVCit defines some macros that are defined in the cstdint.hpp file in
boost (and boost does it better, detailed below):
The basic error is:
R:\SDKs\boost\built_head\include\boost-1_38\boost/cstdint.hpp(347) :
warning C4005: 'INT8_C' : macro redefinition
2008 Aug 30
0
R embedded reinitialization error (PR#12644)
Full_Name: R Embedder
Version: 2.7.2
OS: win XP SP 2
Submission from: (NULL) (83.25.35.249)
I'm having problems using embedded R. I try to adapt examples from
"tests/Embedding/".
Everything works fine except when I try to reinitialize R for the second time
in the same program. I need to reinitialize correctly because my code
is some kind of .dll plugin to an external application.
2007 Oct 13
1
R API - optim
I am trying to use the R API to call optim functions (nmmin, vmmin, lbfgsb,
etc.) through a C program but I couldn't find the shared library to link
under the R-2.6.0 build which is compiled under Linux (REL5).
main.cpp:35: undefined reference to `Rf_initEmbeddedR(int, char**)'
main.cpp:41: undefined reference to `nmmin'
Thanks in advance for any help.
------------------------
2019 Apr 05
2
Parsing code with newlines
Hello!
This is my first post here. I came across the very same problem.
It can be reproduced within modified tests/Embedding/RParseEval.c
Actually this example has another issue, namely it doesn't wrap
everything in R_ToplevelExec . This is a major show stopper for
newcomers as that function is barely mentioned anywhere and longjmp into
terminated setuploop function followed by R_suicide
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:
2005 Mar 17
3
Compiling "R Embedded" examples
Hi,
This question was first posted wrongly on R-help. Apologize for the inconvenience.
I am working at a major financial institution and we would like to embed R in one of our front office application.
The application is written in C/C++ so I started by trying to compile the examples in "tests/Embedding" of R 2.0.1.
I have modified "tests/Embedding/Makefile" according to
2014 Sep 23
1
embedding video into the wiki pages
hi guys
Ive got the videos from Paris Dojo now processed up and ready to go -
the plan is to get them into the CentOSProject youtube channel.
however, i was wondering if there is a way to embedd the video into the
wiki pages as well. We can then have the videos for all the sessions (
or the ones we managed to record proper ) ready to view right in place
that also means we end up promoting the
2005 Sep 20
1
Embedding a "Domain Group" in "Domain Administrators" ???
hi list,
is it possible with samba v3 and ldap backend to embedd a normal group
like "normalgroup" in the group "Domain Administrators" to give members
of the group "normalgroup" full administrative rights on workstations?
i tried with "net groupmap addmem sid-of-normalgroup
sid-of-domain-admins" and "net groupmap addmem sid-of-domain-admins
2006 Aug 24
8
installing ferret
I am trying to test drive ferret on a ubuntu dapper installation.
I have a ferret-test.rb file like:
----begin---------
require ''ferret''
include Ferret
index = Index::Index.new(:path => ''/opt/search-index'')
----end-----------
When i issue: ruby ferret-test.rb, I get:
ferret-test.rb:1:in `require'': no such file to load -- ferret
(LoadError)
1999 Oct 07
1
Bug list summary (automatic post)
=================================================
This is an automated summary of the status of the R-bugs
repository.
Note that this may be neither complete nor perfectly
correct at any given instance: Not all bugs are reported,
and some reported bugs may have been fixed, but the
repository not yet updated.
Some bug fixes are difficult to verify because they pertain
to specific hardware or
2008 Sep 03
8
suggestion of new API function for embedded programming.
While doing some embedded programming and trying to figure out how to generate
a hand coded SEXP equivalent of the line
"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
1999 May 04
0
R_problem_buf in the S.h files & lists in .C
I didn't see any mention of this in the material on CRAN. The two S.h
files define R_problem_buf as a real symbol rather than simply
declaring its existence. As a result, a shared library that links two
or more files that include this will get duplicate symbol complaints.
Since it is not defined elsewhere in the code, someone has to define it.
A secondly thing is the documentation for .C()
1999 May 04
0
[R] R_problem_buf in the S.h files & lists in .C (PR#185)
Duncan Temple Lang <duncan@rice.research.bell-labs.com> writes:
> I didn't see any mention of this in the material on CRAN. The two S.h
> files define R_problem_buf as a real symbol rather than simply
> declaring its existence. As a result, a shared library that links two
> or more files that include this will get duplicate symbol complaints.
> Since it is not defined