Displaying 20 results from an estimated 354 matches for "r_ext".
Did you mean:
_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>
<R_ext/R-ftp-http.h>
<R_ext/libextern.h>
Illegal Guards (leading underscore):
<Rinterna...
2024 Jul 29
1
Minor inconsistencies in tools:::funAPI()
...39;s currently caught by checks in
> sotools.R?
>
> - Should R_FindSymbol be commented /* Not API */ if it's marked as
> @apifun in WRE and not caught by sotools.R? It is currently used by 8
> CRAN packages.
>
> - The names 'select', 'delztg' from R_ext/Lapack.h are function
> pointer arguments, not functions or type declarations. They are
> being found because funcRegexp is written to match incomplete
> function declarations (e.g. when they end up being split over
> multiple lines, like in R_ext/Lapack.h), and function poi...
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 /usr/include/R_ext/Utils.h:27,
from gibbs.c:7:
/usr/include/R_ext/Boolean...
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...
2008 Apr 18
1
R-extension in unix system -- help to locate header files
...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 because I set the path for Rtools
and R etc.
But in unix system, these header files call other header files and
they call other
header files... And some files are not in R folders so I have to
manually find them
and...
2003 Sep 24
1
SJava help
...inst/scripts/RJava
Copying the cleanup script to the scripts/ directory
Building libRSNativeJava.so in /tmp/R.INSTALL.30363/SJava/src/RSJava
if test ! -d /usr/lib/R/library/SJava/libs ; then \
mkdir /usr/lib/R/library/SJava/libs ; \
fi
gcc -g -O2 -D_R_ -I/usr/lib/R/include -I/usr/lib/R/include/R_ext
-I/tmp/R.INSTALL.30363/SJava/src/RSJava -I.
-I/tmp/R.INSTALL.30363/SJava/inst/include
-I/opt/lang/java/j2sdk1.4.2_01/include
-I/opt/lang/java/j2sdk1.4.2_01/include/linux -c CtoJava.c
gcc -g -O2 -D_R_ -I/usr/lib/R/include -I/usr/lib/R/include/R_ext
-I/tmp/R.INSTALL.30363/SJava/src/RSJava -I.
-I/...
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 Sannella via R-devel <
r-devel at r-project.org> wrote:
> I am not able to #include &quo...
2000 Apr 26
2
Cross compiling a package for Windows on Linux
...at bin/fwf2table bin/helpPRINT.bat ../../../bin
echo done > fixbin
cp -p etc/Rconsole etc/Rdevga etc/Rprofile etc/rgb.txt ../../../etc
echo done > fixetc
... (many lines deleted)
i386-mingw32-gcc -isystem /packages/R-X/i386-mingw32/include -O2 -Wall -pedantic -I../include -I../include/R_ext -DHAVE_CONFIG_H -c zeroin.c -o zeroin.o
i386-mingw32-g77 -O2 -Wall -pedantic -c blas.f -o blas.o
make[1]: i386-mingw32-g77: Command not found
make[1]: *** [blas.o] Error 127
make[1]: Leaving directory `/usr/src/r-release/src/appl'
make: *** [rlibs] Error 2
$ make libR.a
i386-mingw32-gc...
2010 Jan 12
1
trouble with installing SJava
.../ directory
Building libRSNativeJava.so in
/tmp/RtmpdcTvTv/R.INSTALL327b23c6/SJava/src/RSJava
if test ! -d /usr/local/lib/R/site-library/SJava/libs ; then \
mkdir /usr/local/lib/R/site-library/SJava/libs ; \
fi
gcc -std=gnu99 -g -O2 -D_R_ -I/usr/local/lib/R/include
-I/usr/local/lib/R/include/R_ext
-I/tmp/RtmpdcTvTv/R.INSTALL327b23c6/SJava/src/RSJava -I.
-I/tmp/RtmpdcTvTv/R.INSTALL327b23c6/SJava/inst/include
-I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux
-c CtoJava.c
CtoJava.cweb:148: error: expected '=', ',', ';', 'asm' or '__...
2005 Jul 20
0
Question about Installing SJava package
...opying the cleanup script to the scripts/ directory
Building libRSNativeJava.so in /tmp/R.INSTALL.tf2988/SJava/src/RSJava
if test ! -d /usr/local/lib/R/library/SJava/libs ; then \
mkdir /usr/local/lib/R/library/SJava/libs ; \
fi
gcc -g -O2 -D_R_ -I/usr/local/lib/R/include
-I/usr/local/lib/R/include/R_ext
-I/tmp/R.INSTALL.tf2988/SJava/src/RSJava -I.
-I/tmp/R.INSTALL.tf2988/SJava/inst/include
-I/usr/java/jdk1.5.0_04//include -I/usr/java/jdk1.5.0_04//include/linux
-c CtoJava.c
CtoJava.cweb:215: error: static declaration of 'std_env' follows
non-static declaration
CtoJava.cweb:195: error: previ...
2005 Dec 21
1
linking C and R
...e 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 into the folder where the code is and using" #include "Rdefines.h" instead of #include <Rdefines.h>. I now get a different error R_ext/Memory.h: no such file or directory even though r_ext is in the folder.
Any suggestions?
Thanks,
Elizabeth Lawson
_...
2010 Jun 02
1
Help - C Compiler
...9;Rconfig.h'.
Then i downloaded the Binary for Windows, and in the installation folder i
found those missing files like 'Rconfig.h'.
The problem is that i still need some other files to compile the pnorm.c
that are not neither in R-2.11.0 or in installed binary folder. Files like
'R_ext/RS.h', 'R_ext/Print.h',
'R_ext/Error.h' and etc.
I will appreciate it if you can instruct me how do i compile the pnorm.c in
visual studio C++ 6.0.
--
Thank you,
Best regards.
[[alternative HTML version deleted]]
2008 May 13
1
OS X / R.h
...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
/Library/Frameworks/R.framework/Headers/R.h:42:50: error: R_ext/
Boolean.h: No such file or directory
/Library/Frameworks/R.framework/Headers/R.h:43:50: error: R_ext/
Complex.h: No such file or directory
What am I doing wrong?
Thanks!
Adam
[[alternative HTM...
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)
...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
2003 May 16
1
Reloading a shared library with dyn.load
...of R_alloc? Do I need something
like R_cleanup? Or is it a problem with dyn.load?
I'll demonstrate how I compile a C file, HelloFromC.C into a
shared library, HelloFromC.dll and then load it into R.
HelloFromC.c
------------
#include <R.h>
#include <Rinternals.h>
#include <R_ext/Rdynload.h>
#include <R_ext/Memory.h>
#include <R_ext/Applic.h>
#include <stdio.h>
void HelloFromC(char **result)
{
*result = (char *) R_alloc(20,sizeof(char));
sprintf(*result,"Hello from C!");
}
static const
R_CMethodDef CEntries[] = {
{"HelloFromC&quo...
2013 Jul 04
1
R-devel Digest, Vol 125, Issue 2
...such file or directory
util.h:18: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?namespace?
util.h:20:15: error: R.h: No such file or directory
util.h:21:19: error: Rmath.h: No such file or directory
util.h:22:24: error: Rinternals.h: No such file or directory
util.h:23:26: error: R_ext/Lapack.h: No such file or directory
util.h:24:24: error: R_ext/BLAS.h: No such file or directory
util.h:25:25: error: R_ext/Utils.h: No such file or directory
util.h:29: error: expected declaration specifiers or ?...? before ?bool?
I also tried to reinstall R.
Thanks
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 told Gnumeric is a better gui library for working with R however,
before I rewrite my entire program, is there an obvious solution to calling
R functions in C++/qt? Thanks.
Nancy
-------...
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 told Gnumeric is a better gui library for working with R however,
before I rewrite my entire program, is there an obvious solution to calling
R functions in C++/qt? Thanks.
Nancy
-------...
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