Closed martintoreilly closed 6 years ago
Should be fixed by commit 774d8e6. However, a different issue with C++11 support on Travis is causing the CI build to fail. Will close this issue once Travis CI build is passing.
PR #99 successfully builds and runs tests, so closing issue.
Description
When adding our first C++ function, we get an error while trying to call it. While the package build passes, the following error is encountered when running tests that rely on the new C++ code.
Solution
Our
NAMESPACE
file needs to containuseDynLib(netdist)
andimportFrom(Rcpp, sourceCpp)
. However, we rely on Roxygen to build ourNAMESPACE
file so need to add the corresponding Roxygen tags somewhere in our comments (see Hadley Wickham's R Packages guide). By convention, these are placed inR/<packageName>.R
,R/<packageName>-package.R
or similar (source: https://cwcode.wordpress.com/2013/01/28/developing-r-packages-using-roxygen-and-devtools/).