Skip to content

Telling Windows how to find DLL's from R?

1 message · Thomas Baier

#
Dominick,
Dominick Samperi wrote:
there is another Windows "feature" which will do the trick for you without
modifying the search path. Windows normally only loads DLLs once, so this
means if you first load the dependent DLL (manually, e.g. using dyn.load())
then the already loaded DLL will be used instead of trying to load one from
path.

E.g. in your example:

	dyn.load("mypath/bar.dll")
	dyn.load("foo.dll")

will work, as bar.dll (a dependency of foo.dll) is already loaded.

Thomas