[prev in list] [next in list] [prev in thread] [next in thread]
List: r-devel
Subject: Re: [Rd] xxx not available for .C in package yyy
From: Dirk Eddelbuettel <edd () debian ! org>
Date: 2016-06-21 0:46:22
Message-ID: 22376.36446.886154.980097 () max ! nulle ! part
[Download RAW message or body]
Grant,
On 20 June 2016 at 21:47, Izmirlian, Grant (NIH/NCI) [E] wrote:
| Hi R package developers. This is literally the strangest thing I've ever seen.
| Latest (as of a month ago) R under cygwin64. I'm teaching an intern package
| building and using the .C interface. The package compiles, but when it gets
| to "setting up lazy load" or some such it throws the error "triang" not available for .C()
| in package "randpkg". Upon checking, after removing the current version of the package
| incrementing the package number just to make sure, commenting out the portion of the
| R code that calls .C(), then building, INSTALLING again, this time works. We are able
| to call .C("trian", ...) by hand inside of R, but then when we uncomment out the call
| in the .R file, it throws the error again. We've even retyped that portion of code, we've
| even dos2unix 'd everything. Any thoughts?
In the top-level file NAMESPACE, do you have
useDynLib("randpkg")
to ensure the dynamic library is loaded?
Dirk
PS Please consider using .Call() instead of .C().
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd@debian.org
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic