Setting LD_LIBRARY_PATH from inside R Setting LD_LIBRARY_PATH from inside R r r

Setting LD_LIBRARY_PATH from inside R


With help from Hans Lub, the way to solve the problem is by using the dyn.load() function and supplying the full path to the library:

dyn.load('path_to_library')

and then, loading via library should work.