Skip to content
Prev 4105 / 12125 Next

[R-pkg-devel] Link compiled C object to internal package file

On Wed, 19 Jun 2019 at 16:47, mark padgham <mark.padgham at email.com> wrote:
I assume you have something like

#define MYMACRO "path/to/file"

and this MYMACRO is used here and there in the internal library.
Instead, you can set

#define MYMACRO getPath()

and this getPath function is defined somewhere and uses R's C API to
find that file and return the path (does someone know whether the
functionality of system.file() is directly accessible from C?).

I?aki