Notes:
This function currently only works on Windows.
On Windows, a 32 bit R process can only list other 32 bit processes.
Similarly, a 64 bit R process can only list other 64 bit processes.
This is a limitation of the Windows API.
Even though Windows file systems are (almost always) case
insensitive, the matching of paths
, user
and also filter
are case sensitive. This might change in the future.
This function can be very slow on Windows, because it needs to
enumerate all shared libraries of all processes in the system,
unless the filter
argument is set. Make sure you set filter
if you can.
If you want to look up multiple shared libraries, list all of them
in paths
, instead of calling ps_shared_lib_users
for each
individually.
If you are after libraries loaded by R processes, you might want to
set filter
to c("Rgui.exe", "Rterm.exe", "rsession.exe")
The
last one is for RStudio.