Displaying 20 results from an estimated 354 matches for "r_exts".
Did you mean:
r_ext
2005 May 18
2
R Include File Guards
R 2.1.0/src/include from 2005/04/18 download
Naming inconsistent for guards as well but that's pedantic.
Simple convention:
file <foo.h>
#ifndef R_FOO_H
file <R_ext/bar.h>
#ifndef R_EXT_BAR_H
Missing guards:
<IOStuff.h>
<Internal.h>
<Parse.h>
<R_ext/GraphicsBase.h>
<R_ext/GraphicsDevice.h>
<R_ext/GraphicsEngine.h>
2024 Jul 29
1
Minor inconsistencies in tools:::funAPI()
Hi Ivan
Can you please clarify what input files should be used with your
proposed function? I tried a few files in r-svn/src/include and one of
them gave me an error.
> getdecl("~/R/r-svn/src/include/R.h")
[1] "R_FlushConsole" "R_ProcessEvents" "R_WaitEvent"
> getdecl("~/R/r-svn/src/include/Rdefines.h")
Error in regmatches(lines,
2004 Mar 19
1
R_qsort_int_I() error
Hi,
I want to use R_qsort_int_I() in my C function, but getting the
following error. It looks like there is a conflict between Rmath.h,
which I use to generate random numbers, and R_ext/Boolean.h I would
appreciate any help to fix this problem.
gcc -ansi -g -o Gibbs gibbs.c subroutines.o rand.o vector.o -lm -lRmath
-llapack -lblas -lfrtbegin -lg2c -lm -shared-libgcc
In file included from
2018 Oct 08
4
R_ext/Altrep.h should be more C++-friendly
I am not able to #include "R_ext/Altrep.h" from a C++ file. I think
it needs two changes:
1. add the same __cplusplus check as most of the other header files:
#ifdef __cplusplus
extern "C" {
#endif
...
#ifdef __cplusplus
}
#endif
2. change the line
R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
to
2008 Apr 18
1
R-extension in unix system -- help to locate header files
Hi list,
To call C, I used to use R-extension in windows but I'm moving to unix system
because my PC doesn't have enough memory. My C codes requires to include the
following header files:
#include <stdlib.h>
#include <R.h>
#include <Rdefines.h>
#include <Rmath.h>
#include <R_ext/Applic.h>
#include <R_ext/PrtUtil.h>
In windows, I had no problem with it
2003 Sep 24
1
SJava help
Hi,
I installed SJava 0.66-1 on my linux RH 7.2 machine. I am using R-1.7.1.
I set LD_LIBRARY_PATH up then called library(SJava) and it was fine. But
when I called .JavaInit(), I got weird error that states it could not
find java/lang/Hashtable. The session is below and shows my java
configuration. I am using j2sdk1.4.2_01 from Sun.
Thank you very much.
Weiming Zhang
> .javaConfig
2018 Oct 09
0
R_ext/Altrep.h should be more C++-friendly
Michael,
Thanks for reaching out. This was brought up by Romaine Francois offline to
me as well. What he does as a workaround is
#define class klass
extern "C" {
#include <R_ext/Altrep.h>
}
#undef class
While we consider changing Altrep.h, the above should work for you in the
immediate term.
Let me know if it doesn't.
~G
On Mon, Oct 8, 2018 at 4:17 PM, Michael
2000 Apr 26
2
Cross compiling a package for Windows on Linux
I would like to compile for Windows a rather simple R package that
contains some C code. It does not contain any Fortran code.
I tried the cross-compilation route using the pre-built set of tools
from http://www.devolution.com/~slouken/SDL/Xmingw32/, as described in
$R_SRC/src/gnuwin32/INSTALL
Using the sources in r-devel from the rsync site I am able to build
libR.a in src/gnuwin32 but I
2010 Jan 12
1
trouble with installing SJava
Colleagues,
How i can solve this error when i install SJava package
Thanks
----------------
R CMD INSTALL -c /usr/local/lib/R/SJava_0.69-0.tar.gz
* installing to library ?/usr/local/lib/R/site-library?
* installing *source* package ?SJava? ...
checking for java... /usr/lib/jvm/java-6-sun/bin/java
Java VM /usr/lib/jvm/java-6-sun/bin/java
checking for javah... /usr/lib/jvm/java-6-sun/bin/javah
2005 Jul 20
0
Question about Installing SJava package
Dear all,
I have an error message installing SJava package.
So I searched web site(google) and R-mailing list to find a similar error message.
But I couldn't find it.
I installed R-2.1.1 like this on Fedora Core4
1) /configure --enable-R-shlib --with-libpng --with-jpeglib
2) make -> make check -> make install
and then issuing on shell prompt (red lines are error messages)
R CMD
2005 Dec 21
1
linking C and R
hey,
I am running R 2.0.1 on a the terminal of my MAC OS X and I have written some C code that I would like to use dynload to bring into R. When I try to compile the code i get the error R.defines.h no such file or directory. I know that the file is in resources/include but where do I have to move the file to so that the compiler can access it? I tried copying Rdefines.h and R_ext folders
2010 Jun 02
1
Help - C Compiler
Dear Group Members,
First of all thanks for all the great work and effort.
I am trying to compile a part of the Project R, 'pnorm.c' in visual studio
6.0 c++ language.
First i downloaded the standalone R-2.11.0 and tried to compile it. Some
files were missing here such as 'Rconfig.h'.
Then i downloaded the Binary for Windows, and in the installation folder i
found those missing
2008 May 13
1
OS X / R.h
Hey, I have a question about including the R framework in a file. I'm
running OS X 10.5.2. When I attempt to use:
#include <R/R.h>
And compile I get the following error:
/Library/Frameworks/R.framework/Headers/R.h:40:21: error: Rconfig.h:
No such file or directory
/Library/Frameworks/R.framework/Headers/R.h:41:57: error: R_ext/
Arith.h: No such file or directory
2007 Sep 17
3
Call C code from R
Hello, All!
I'm new for R-devel list. And I'd like to ask some questions,
maybe they will be stuped for the most part of members of the
list.
I need to call function which is written in C++ from R.
My questions are:
1. How should I include libraries (for example, iomanip,
sstream, iostream)?
2. Can I use namespace?
Thanks All :)
Olga
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
2003 May 16
1
Reloading a shared library with dyn.load
Hi,
I'm using dyn.load to load a shared library (compiled from C
code) into R. If I dyn.unload it and then dyn.load it again, I
get an hourglass icon in Rgui (R 1.7.0, Win 2000), and it
just sits there forever. I can't press Escape to stop the
current computation, but I can close Rgui without resorting to
using the Task Manager.
Is it a problem with my use of R_alloc? Do I need
2013 Jul 04
1
R-devel Digest, Vol 125, Issue 2
Hi all,
I have a problem but i am not sure that this is the right mailing list.
I'm writing a R program which call a C++ program, through the function .Call. I use to compile the c++ script with the command
R CMD SHLIB SpTempWrapC.cpp -Wall -l covmodel.h -l util.h
Everything works fine since, for mistake, i paste in the terminal the content of the r-script. Now, when i try to compile,
2002 Jul 02
3
interfacing R and c++
Hi,
I'm trying to write a gui program that accesses some R code I've written.
The gui is written in c++ and includes qt libraries and vigra libraries (for
image manipulation). Unfortunately I've been getting dependencies due to
constants getting redefined within the R.h/R_ext library and Rinternals.h.
I tried rewriting the R interface but the problem keeps propagating. I've
been
2002 Jul 02
3
interfacing R and c++
Hi,
I'm trying to write a gui program that accesses some R code I've written.
The gui is written in c++ and includes qt libraries and vigra libraries (for
image manipulation). Unfortunately I've been getting dependencies due to
constants getting redefined within the R.h/R_ext library and Rinternals.h.
I tried rewriting the R interface but the problem keeps propagating. I've
been
2012 Feb 26
0
Comments on R_exts section 1.6.6, Namespaces with S4 classes and methods
> R.version.string
[1] "R Under development (unstable) (2012-02-26 r58493)"
In the recent addition "It is important if you export S4 methods that
the corresponding generics are available: the requirementa on this are
stricter as from R 2.15.0. You may for example need to import plot from
graphics to make visible a function to be converted into its implicit
generic. But it is