checkFF                package:tools                R Documentation

_C_h_e_c_k _F_o_r_e_i_g_n _F_u_n_c_t_i_o_n _C_a_l_l_s

_D_e_s_c_r_i_p_t_i_o_n:

     Performs checks on calls to compiled code from R code.  Currently
     only checks whether the interface functions such as '.C' and
     '.Fortran' are called with a '"NativeSymbolInfo"' first argument
     or with argument 'PACKAGE' specified, which is highly recommended
     to avoid name clashes in foreign function calls.

_U_s_a_g_e:

     checkFF(package, dir, file, lib.loc = NULL,
             verbose = getOption("verbose"))

_A_r_g_u_m_e_n_t_s:

 package: a character string naming an installed package.  If given,
          the installed R code of the package is checked.

     dir: a character string specifying the path to a package's root
          source directory.  This should contain the subdirectory 'R'
          (for R code).  Only used if 'package' is not given.

    file: the name of a file containing R code to be checked.  Used if
          neither 'package' nor 'dir' are given.

 lib.loc: a character vector of directory names of R libraries, or
          'NULL'.  The default value of 'NULL' corresponds to all
          libraries currently known.  The specified library trees are
          used to search for 'package'.

 verbose: a logical.  If 'TRUE', additional diagnostics are printed
          (and the result is returned invisibly).

_D_e_t_a_i_l_s:

     Note that we can only check if the 'name' argument is a symbol or
     a character string, not what class of object the symbol resolves
     to at run-time.

     _If_ the package has a name space and _if_ that contains a
     'useDynLib' directive, calls in top-level functions in the package
     are not reported as their symbols will be preferentially looked up
     in the DLL named in the first 'useDynLib' directive.

_V_a_l_u_e:

     An object of class '"checkFF"', which currently is a list of the
     (parsed) foreign function calls with a character first argument
     and no 'PACKAGE' argument.

     There is a 'print' method to display the information contained in
     such objects.

_W_a_r_n_i_n_g:

     This function is still experimental.  Both name and interface
     might change in future versions.

_S_e_e _A_l_s_o:

     '.C', '.Fortran'; 'Foreign'.

_E_x_a_m_p_l_e_s:

     checkFF(package = "stats", verbose = TRUE)

