ID EN
Environment & Scope

getDLLRegisteredRoutines

R Base 3.6.2 🇮🇩 Bahasa Indonesia

Fungsi ini memungkinkan kita untuk menanyakan kumpulan rutinitas dalam DLL yang terdaftar dengan R untuk meningkatkan pencarian dinamis, penanganan kesalahan saat memanggil rutinitas asli, dan kemungkinan keamanan di masa depan. Fungsi ini memberikan deskripsi setiap rutinitas yang terdaftar di DLL untuk antarmuka yang berbeda, yaitu C, .Call, .Fortran dan .External.

Syntax

R
getDLLRegisteredRoutines(dll, addNames = TRUE)

Arguments

Parameter Deskripsi
dll a character string or DLLInfo object. The character string specifies the file name of the DLL of interest, and is given without the file name extension (e.g., the .dll or .so) and with no directory/path information. So a file MyPackage/libs/MyPackage.so would be specified as MyPackage. The DLLInfo objects can be obtained directly in calls to dyn.load and library.dynam, or can be found after the DLL has been loaded using getLoadedDLLs, which returns a list of DLLInfo objects (index-able by DLL file name). The DLLInfo approach avoids any ambiguities related to two DLLs having the same name but corresponding to files in different directories.
addNames a logical value. If this is TRUE, the elements of the returned lists are named using the names of the routines (as seen by R via registration or raw name). If FALSE, these names are not computed and assigned to the lists. As a result, the call should be quicker. The name information is also available in the NativeSymbolInfo objects in the lists.

Return Value

Daftar kelas "DLLRegisteredRoutines" dengan empat elemen yang sesuai dengan rutinitas yang terdaftar untuk antarmuka .C, .Call, .Fortran, dan .External. Masing-masing adalah daftar (dari kelas "NativeRoutineList") dengan elemen sebanyak rutinitas yang didaftarkan untuk antarmuka tersebut. Setiap elemen mengidentifikasi rutinitas dan merupakan objek kelas "NativeSymbolInfo". Objek kelas ini mempunyai field berikut: namanama rutin yang didaftarkan (tidak harus nama dalam kode C). alamat aku

Details

Ini mengambil informasi pendaftaran setelah didaftarkan dan diproses oleh internal R. Dengan kata lain, ia menggunakan informasi yang diperluas. Ada metode cetak untuk kelas tersebut, yang hanya mencetak tipe yang telah mendaftarkan rutinitas.

Contoh

Example
R
# NOT RUN {
dlls <- getLoadedDLLs()
getDLLRegisteredRoutines(dlls[["base"]])

getDLLRegisteredRoutines("stats")
# }

See Also

getLoadedDLLs getNativeSymbolInfo for information on the entry points listed.