Displaying 20 results from an estimated 9000 matches similar to: "include <R.h>"
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
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
2007 Jul 10
1
cleanup and Makevars
Hi
This is a question prompted by the mac version of R, but as I see it,
it should have broader interest.
These days the CRAN Mac binary per default compiles every package for
two architectures. First i386 and then ppc. In between the two
compilation runs, any object files in pkgname/src is removed. This
cleanup is necessary since otherwise Make would not recompile the
object files
2009 Oct 29
2
Makevars, cc files in multiple directories
Hello,
In the src folder of my R package I have
a.cc
b.cc
f/g/x.cc
my Makevars.in has
all: $(SHLIB)
upon installing only, a.o and b.o is build and the final dll is
comprised of a.o and b.o
How can I instruct $(SHLIB) to pick up its source files from all
subdirectories (or maybe a subset, though here it will be all)
in src ?
Much thanks
Saptarshi
2005 Sep 28
3
gfortran Makefile for windows
Hi all,
(Originally posted to r-help)
I'm porting a package that I've worked on for OS X to Windows.
The package is written in F95 so I need to compile it with gfortran
and link it with gcc4.
I've been trying to build an R with gcc4 without luck so far. If there is
a binary of such a thing info would be appreciated.
This package requires a Makefile. My question is, how can I find
2002 Jun 17
1
overzealous help-links.sh script! (PR#1682)
Starting html help in the current version of R has a very annoying
side-effect. It indiscriminantly removes $HOME/.R, and replaces it with a
virgin copy. I discovered that when all of a sudden I got complaints about
my startup "library" not being found.
Below is a modified version of the script that doesn't do this. It is not
perfect yet (it shouldn't try to recreate links
2001 May 02
1
subdirs in package src dir
Sometimes I find it useful to put C or Fortran sources under subdirs of
"mypackage/src", especially to distinguish between my own files and
e.g. lapack or blas sources. To get this working I would need a Makefile
in my package which contains the appropriate dependencies to these sources
in subdirs.
But I don't want to add a complete Makefile, I want only a Makevars file
containing
2015 Mar 09
3
Rstudio R-devel libR.so
Dear All,
I am actually on R-devel using shell consol. When I run RStudio, it can't
find libR.so in the new /lib folder where is libRblas.so libRlapack.so.
At first step I configure R-devel to share library with ./configure
--enable-R-shlib.
when I copied libR.so from /usr/lib/R/lib/libR.so (stable version R 3.1)
to /usr/local/R-devel/lib/libR.so (R-devel version), That doesn't work.
2015 Mar 09
3
Rstudio R-devel libR.so
Dear All,
I am actually on R-devel using shell consol. When I run RStudio, it can't
find libR.so in the new /lib folder where is libRblas.so libRlapack.so.
At first step I configure R-devel to share library with ./configure
--enable-R-shlib.
when I copied libR.so from /usr/lib/R/lib/libR.so (stable version R 3.1)
to /usr/local/R-devel/lib/libR.so (R-devel version), That doesn't work.
2008 Jul 03
1
--enable-BLAS-shlib conflict with --with-lapack in configure?
Dear developeRs,
I'm trying to build R (2.7.1, on an x86_64 running Linux, but I believe
I have observed this on x86 and with earlier versions of R as well)
using external BLAS and LAPACK libraries _and_ generating libR.so,
libRblas.so and libRlapack.so.
Without --enable-BLAS-shlib, configure is able to find and use the
external LAPACK library:
./configure \
2010 Jul 12
2
R-2.11.1 build and 'so' libraries withouth the 'lib' prefix
Greetings,
I have a computer with the following setup:
1)cblfs (pure 64-bit (amd64) linux), kernel2.6.34 gcc4.4.2
2)R-2.11.1
I compiled R with BLAS and lapack using the switched ( --with-blas="-
lpthread -latlas -lfptf77blas"
--with-lapack="-llapack -lcblas" ).
(( http://cran.r-project.org/doc/manuals/R-admin.html#Linear-algebra) )
Prior to compiling R-2.11.1
sh
2006 Mar 14
1
Fwd: makeconf issue on R-devel 2006-03-12 r37524
I sent the message below to r-sig-mac yesterday, but having no reply
I decided to explore a bit myself and found that editing:
/Library/Frameworks/R.framework/Versions/2.3/Resources/share/make/
shlib.mk
yzzy: diff shlib.mk shlib.mk~
3c3
< include $(R_HOME)/etc/Makeconf
---
> include $(R_HOME)/etc${R_ARCH}/Makeconf
restored the functionality of R CMD INSTALL.
Is this a known issue?
2001 Mar 13
1
passing arguments to R CMD SHLIB
Dear People,
I want to run gcc with optimisation turned on (-O2), and with -Wall (all
warnings) enabled, when using R CMD SHLIB. When I do make, which is
R CMD SHLIB -Wall -O2 cftp.c mcmc.c latticefn.c -lm
in this case, I get
faheem ~/research/cftp>make
R CMD SHLIB -Wall -O2 cftp.c mcmc.c latticefn.c -lm
make[1]: Entering directory `/home/faheem/research/cftp'
gcc -I/usr/lib/R/include
2003 Nov 30
2
R as OS X Framework
After the recent discussion about future direction of the Mac OS X
port, I was toying with the idea to make R a proper Mac OS X framework.
There are several advantages: OS X locates frameworks automatically,
therefore any program wishing to link against R has only to specify
"-framework R" at link time. Furthermore versioning is supported, i.e.
if a program is linked against R 1.7.1
2004 Jan 19
1
Compiling R, cannot open vars.mk
Hi!
I am trying to compile R-1.8.1 on an alphaserver running Tru64 Unix.
I use the compilers cc,cxx and f77. After the compilation
I try: make check
and get the following message:
Make: Cannot open /share/make/vars.mk. Stop.
Does anyone have any suggestions on why?
Regards
Arne Gjuvsland
2010 Sep 16
1
Lack of consistent cross-platform behaviour of tools:::buildVignettes()
Hi,
On both Unix and Windows there is a mechanism to add variables
to the environment when R is started. I noticed that, on Unix,
this mechanism is not used when R is started normally at the
command line but only when it's started using the 'R CMD' syntax.
One problem with this is some lack of consistent cross-platform
behaviour. For example:
On Linux:
$ echo $TEXINPUTS
$
2011 May 20
2
Calling Rscript from Makevars
Hi,
I am trying to package some code to use with R and wanted to call
Rscript from within the Makevars file (I am trying to automate the
setting of the location of a third party library depending on what is
available / the system the package is being installed on).
If I just have a simple Makevars containing
PKG_LIBS= -lnag_nag -L/fserver/nagprod/FL22/fll6a22df/lib
the package is built
2001 Jun 19
3
RJava lib error
Hello all!
I recently install R-1.2.3 and Omegahat SJava pkg
(formely Java pkg) 0.62 and tried running the examples
by issuing "scripts/RJava --example --gui=none" and I
got the following:
Error in dyn.load(x, as.logical(local),
as.logical(now)) :
unable to load shared library
"/usr/lib/R/library/ctest/libs/ctest.so":
ld.so.1:
2001 Dec 11
2
Rcmd SHLIB problem
Dear R-help,
I'm having problem creating a dll using Rcmd SHLIB with R-1.3.1 on WinNT4:
C:\TEMP>Rcmd SHLIB tryf.o
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
C:\TEMP>Rcmd SHLIB tryf.f
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
I
2001 Dec 11
2
Rcmd SHLIB problem
Dear R-help,
I'm having problem creating a dll using Rcmd SHLIB with R-1.3.1 on WinNT4:
C:\TEMP>Rcmd SHLIB tryf.o
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
C:\TEMP>Rcmd SHLIB tryf.f
make[1]: `libR.a' is up to date.
make: *** No rule to make target `'tryf.o', needed by `tryf.a'. Stop.
I