Building R package using RStudio & roxygen2: Include a C function

129 views Asked by At

I built a R package using R and roxygen2. Eventually, everything worked out and I can build the package without any warnings and notes. However, I have some problems understanding why the integration of my C-function works.

The C-function is stored in the subfolder /src and, additionally, I included

# @useDynLib MyPackageName

into one of my R files. However, I actually do not really understand why this is working. Unfortunately, reading the R help 'Writing R extensions' didn't really help.

0

There are 0 answers