Ini menemukan dan mengembalikan deskripsi satu atau lebih simbol asli bawaan yang dimuat secara dinamis atau 'diekspor'. Untuk setiap nama, ia mengembalikan informasi tentang nama simbol, perpustakaan di mana ia berada dan, jika tersedia, jumlah argumen yang diharapkan dan antarmuka mana yang harus dipanggil (yaitu .Call, .C, .Fortran, atau .External). Selain itu, ia mengembalikan alamat simbol dan ini dapat diteruskan ke rutinitas C lainnya. Secara khusus, ini menyediakan cara untuk secara eksplisit berbagi simbol antara berbagai pustaka paket yang dimuat secara dinamis. Selain itu, ini menyediakan cara untuk menanyakan di mana simbol diselesaikan, dan membantu mendiagnosis perilaku aneh yang terkait dengan resolusi dinamis.
getNativeSymbolInfo(name, PACKAGE, unlist = TRUE,
withRegistrationInfo = FALSE)
| Parameter | Deskripsi |
|---|---|
name |
the name(s) of the native symbol(s). |
PACKAGE |
an optional argument that specifies to which DLL to restrict the search for this symbol. If this is "base", we search in the R executable itself. |
unlist |
a logical value which controls how the result is returned if the function is called with the name of a single symbol. If unlist is TRUE and the number of symbol names in name is one, then the NativeSymbolInfo object is returned. If it is FALSE, then a list of NativeSymbolInfo objects is returned. This is ignored if the number of symbols passed in name is more than one. To be compatible with earlier versions of this function, this defaults to TRUE. |
withRegistrationInfo |
a logical value indicating whether, if TRUE, to return information that was registered with R about the symbol and its parameter types if such information is available, or if FALSE to return just the address of the symbol. |