similar to: defines in Rmath.h and R_NO_REMAP

Displaying 20 results from an estimated 100 matches similar to: "defines in Rmath.h and R_NO_REMAP"

2007 Apr 18
1
undefined symbol: Rf_rownamesgets
I get the error undefined symbol: Rf_rownamesgets when I try to load my package, which include C++ code that calls that function. This is particularly strange since the code also calls Rf_classgets, and it loaded OK with just that. Can anyone tell me what's going on? For the record, I worked around this with the general purpose attribute setting commands and R_RowNamesSymbol. I
2000 Jun 26
2
Looking for protect()
Hello: This is a simple, I hope, question about the first example in section 3.6.4 of the manual, "Writing R extensions." I'm using R 1.1.0, and below I list some easy code that I got from section 3.6.4. When I try to compile the file out.c under NT 4, using VC++ 6.0, I get the following error messages: Compiling... out.c Linking... out.obj : error LNK2001: unresolved external
2009 Dec 26
1
Problem compiling R library on FC4 ( conflicting declaration in Rinterface.h and stdint.h)
Hello, The package builds successfully on RHEL5 and OS X( 64 bit,32/64 respectively) but on FC4(32 bit) it fails with this error g++ -m32 -I/usr/include/R -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -I. -g `pkg-config --cflags protobuf` -Wall -c
2013 Sep 27
1
LENGTH function causing name conflict
I am attempting to bring R-3.0.2 functionality into a project with a very large C++ codebase. The existing codebase already has a LENGTH function defined. R also defines a LENGTH function. I first compiled R as a shared library and linked it into this existing codebase, along with RInside. When I run a parseEvalQ with a linear model command it will stack dump. Looking at the backtrace, what is
2009 Sep 03
1
Running an expression 1MN times using embedded R
Hello, I'm evaluating this expression expression({ for(x in 1:5){ .Call('rh_status','x') }}) a million times from a program with R embedded in it. I have attached reproducible code that crashes with Program received signal SIGSEGV, Segmentation fault. 0x00002b499ca40a6e in R_gc_internal (size_needed=0) at memory.c:1309 1309 FORWARD_NODE(R_PPStack[i]); Current language:
2007 Feb 25
3
R/C++/memory leaks
Dear all, I have wrapped a C++ function in an R package. I allocate/deallocate memory using C++ 'new' and 'delete'. In order to allow user interrupts without memory leaks I've moved all the delete statements required after an interrupt to a separate C++ function freeMemory(), which is called using on.exit() just before the .C() call. I am concerned about the
2006 Nov 15
1
Feature request: put NewEnvironment and R_NewhashedEnv into API
Hi, I would like to be able to create new environments from package C code. AFAICT, this isn't allowed since both NewEnvironment and R_NewHashedEnv are declared in Defn.R. If exposing this isn't controvertial, I would submit a patch. However, I'm not sure where the declarations should go (Rdefines.h?) and whether they need to change to Rf_*. + seth
2012 Feb 19
2
include <R.h>
I am trying to add #include <R.h> to a .c file in one of my package, so I can call error() without a complaint about implicit defined function. The src/ has a Makefile, to build some exec/ files that are needed. Without the include, my Makefile target OBJS = $(SRC:.c=.o) $(PKGNAME).so: $(OBJS) rpcx.h $(R_HOME)/bin/R CMD SHLIB $(OBJS) seems to work fine, and I do not need a target
2005 Jul 01
1
C/C++ namespaces
Dear community, this is just a suggestion, but might be useful for the following R releases. I was programming some C code for R and my compiler constantly showed me some crazy messages that a stdc++ macro length() was supplied with 4 arguments whereas only one was required. The problem could be partially resolved by changing the order of includes. However as soon as the file was used from
2005 Nov 28
1
No Rmath.h when making just standalone library
When making only the standalone math library, include/Rmath.h is not there, so compilation fails. A solution is to go to src/include/ and just say `make Rmath.h' there first. This is with R-2.2.0 on GNU/Linux on i686. The failing steps are: tar xzf ../R-2.2.0.tar.gz ./configure cd src/nmath/standalone make Would be nice if this worked, or if the issue were just mentioned in
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
2003 Apr 01
1
using Rmath standalone
Hi, I am a c/c++ programmer attempting to utilise the Rmath library (looks VERY useful). I have downloaded the Rsource and compiled the library as recommened (compiled on windows 98 using the cygwin environment). But whenever i try to use functions from the library i get similar error messages - eg. using the function dnorm(double, double...... etc ) i get the message : "undefined
2007 Aug 31
0
Studio 11 compiling of Rmath standalone versus compiling R
Hi, I have a UNIX-Solaris-Sparc-Studio 11 compilers question. Since it's not exactly a programming question, I'm posting it here instead of to the developers list. Here's the relevant info: 1) I'm using SunOS 5.9 on a 32 bit machine without parallel processing. The chip is Sparc. 2) I've installed the Sun Studio 11 compilers. 3) I've successfully built and tested R 2.5.1
2004 Apr 16
0
Rmath
Dear all, I have been trying to build standalone Rmath library for irix 6.5, but, could not get it due to some reasons, if anyone would like to share already built ones, please let me know, I appreciate all of your help. Sincerely; Scott
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 Dec 18
1
Rmath: R libraries from C on Mac OS X
Dear R-experts, I have been having trouble using R's standalone random number generators from C on my Mac OS X 10.4.8 system. I try to compile my C program in the following way: gcc -Wall -o helloMac helloMac.c -lm -lRmath I get the following error: /usr/bin/ld: can't locate file for: -lRmath I am unable to locate Rmath on my machine. The problem appears to be that no libRmath.a was
2011 Aug 08
1
Making rmath.dll (or equivalent)
I currently have R 2.12.1 installed, both 32 and 64 bit. I also have a file that was passed to me named rmath.dll. I do not know what version of R it was created from, but I do know it is 32-bit only. I am developing an application in C# that uses this library as a reference but I have to downgrade it to 32-bit in order to use the DLL file. I wish to make a rmath.dll from the version of R I have
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
2010 Jun 10
1
Rmath.dll importing in VB6 problem
Hi, I am facing a problem which i think i need to explain it to you with some background. I need to use the Project R pnorm function in Visual Basic 6.0. I have already installed R and this is how i perform and get back the result: > pnorm(2, 15) [1] 6.117164e-39 which is what i need. I have already installed R, i generated the Rmath.DLL file out so i can import it into my VB6 and use it.
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) :