Muat atau keluarkan DLL (juga dikenal sebagai objek bersama), dan uji apakah fungsi C atau subrutin Fortran tersedia.
dyn.load(x, local = TRUE, now = TRUE, ...)
dyn.unload(x)<p></p><p>is.loaded(symbol, PACKAGE = "", type = "")</p>
| Parameter | Deskripsi |
|---|---|
x |
a character string giving the pathname to a DLL, also known as a dynamic shared object. (See ‘Details’ for what these terms mean.) |
local |
a logical value controlling whether the symbols in the DLL are stored in their own local table and not shared across DLLs, or added to the global symbol table. Whether this has any effect is system-dependent. It is ignored on Windows. |
now |
a logical controlling whether all symbols are resolved (and relocated) immediately the library is loaded or deferred until they are used. This control is useful for developers testing whether a library is complete and has all the necessary symbols, and for users to ignore missing symbols. Whether this has any effect is system-dependent. It is ignored on Windows. |
… |
other arguments for future expansion. See section ‘Windows’ below. |
symbol |
a character string giving a symbol name. |
PACKAGE |
if supplied, confine the search for the name to the DLL given by this argument (plus the conventional extension, .so, .sl, .dll, …). This is intended to add safety for packages, which can ensure by using this argument that no other package can override their external symbols. This is used in the same way as in .C, .Call, .Fortran and .External functions. |
type |
The type of symbol to look for: can be any ("", the default), "Fortran", "Call" or "External". |
# NOT RUN {
## expect all of these to be false in R >= 3.0.0.
is.loaded("supsmu") # Fortran entry point in stats
is.loaded("supsmu", "stats", "Fortran")
is.loaded("PDF", type = "External") # pdf() device in grDevices
# }