Re: [R-pkg-devel] R_registerRoutines, R_useDynamicSymbols

2018-08-13 Thread Kevin Ushey
Note that your attachment was lost, so we don't know what your package code
looks like. It's helpful to host your package sources somewhere publicly
accessible (e.g. GitHub) to make it easier for others to access sources
quickly from a web browser.

My best guess is that your 'init.c' is missing the recommended calls to
R_registerRoutines() and R_useDynamicSymbols(). tools:::
package_native_routine_registration_skeleton() (new in R 3.5.0, if I recall
correctly) is very useful for auto-generating 'init.c' for you. See its
associated help file for usage.

See also:
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-native-routines

Best,
Kevin

On Mon, Aug 13, 2018 at 7:32 AM Charles Geyer  wrote:

> There are several other things to do.  You might find the toy package
> fooRegister I use for teaching helpful.
> https://github.com/cjgeyer/foo/tree/master/package/fooRegister
>
> --
> Charles Geyer
> Professor, School of Statistics
> Resident Fellow, Minnesota Center for Philosophy of Science
> University of Minnesota
> char...@stat.umn.edu
>
> [[alternative HTML version deleted]]
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] R_registerRoutines, R_useDynamicSymbols

2018-08-13 Thread Charles Geyer
There are several other things to do.  You might find the toy package
fooRegister I use for teaching helpful.
https://github.com/cjgeyer/foo/tree/master/package/fooRegister

-- 
Charles Geyer
Professor, School of Statistics
Resident Fellow, Minnesota Center for Philosophy of Science
University of Minnesota
char...@stat.umn.edu

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel