Generates rv_export files from a v source file, that is located in the src directory of a pkg.

rv_export_c(pkg = ".", prefix = NULL)

Arguments

pkg

character location of package.

prefix

character optional prefix that is used in the wrapper generation. If NULL the package name is used.

Value

(invisibly) the list of parsed v functions.

Details

The following files are generated:

  • "./R/rv_export.R": R functions that wrap the v functions

  • "./src/rv_export.v": v wrappers, that interface v with R.

  • "./src/init.c" : registration code, needed for the shared library.

  • "./src/Makevars" : settings that suppress compiler warnings.

  • "./src/<pkg_name>.c" : generated c code from the v source code.