setting R_LIBS for tests based on .libPaths()

with another tip-of-the-hat to Hadley