joshuaulrich / TTR

Technical analysis and other functions to construct technical trading rules with R
GNU General Public License v2.0
325 stars 102 forks source link

Use R_forceSymbols(dll, TRUE) for native routines #123

Closed joshuaulrich closed 1 year ago

joshuaulrich commented 1 year ago

The src/init.c file doesn't use R_forceSymbols(info, TRUE), which means we still find entry points via strings. There is a safety component to using symbols: entry points are more explicit and therefore can't be found accidentally.

See the Registering native routines section of WRE.