Re: [Rd] include <R.h>

From: Paul Gilbert <pgilbert902_at_gmail.com>
Date: Sun, 19 Feb 2012 15:08:38 -0500

On 12-02-19 02:59 PM, Dirk Eddelbuettel wrote:
>
> On 19 February 2012 at 14:45, Paul Gilbert wrote:
> | I am trying to add
> |
> | #include<R.h>
> |
> | to a .c file in one of my package, so I can call error() without a
>
> You may want to turn 'remapping' on which hides all R functions behind a
> prefix of Rf_ so that error() becomes Rf_error(). Define R_NO_REMAP before
> including R.h and you should be fine.

I'm confused about why this will help the compiler find the R.h file?

Paul

>
> Hth, Dirk
>
> | 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 for the .o's, the default
> | works. But when I add the include, the location of R.h does not get
> | passed along. How am I suppose to specify $(R_HOME)lib/R/include so that
> | it gets passed along by R CMD SHLIB ?
> |
> | Paul
> |
> | ______________________________________________
> | R-devel_at_r-project.org mailing list
> | https://stat.ethz.ch/mailman/listinfo/r-devel
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun 19 Feb 2012 - 20:10:40 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 19 Feb 2012 - 22:00:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive