routine_registration_linter | R Documentation |
It is preferable to register routines for efficiency and safety.
routine_registration_linter()
best_practices, efficiency, robustness
linters for a complete list of linters available in lintr.
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-native-routines
# will produce lints
lint(
text = '.Call("cpp_routine", PACKAGE = "mypkg")',
linters = routine_registration_linter()
)
lint(
text = '.Fortran("f_routine", PACKAGE = "mypkg")',
linters = routine_registration_linter()
)
# okay
lint(
text = ".Call(cpp_routine)",
linters = routine_registration_linter()
)
lint(
text = ".Fortran(f_routine)",
linters = routine_registration_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.