Lists binary library files in a directory
list.libs(dir, ..., all.platforms = FALSE) libname(x)
dir | directory |
---|---|
... | extra arguments passed to |
all.platforms | a logical that indicates whether to list library files for the current platform only (default) or all platforms (Unix, Windows, Mac). |
x | a filename |
a character vector
libname
: extracts library names from a path, removing the
directory part of the path, as well as the platform
specific library extension.
libname('mylib.so')#> [1] "mylib"libname('/some/path/somewhere/mylib.dll')#> [1] "mylib.dll"