Removing R package dependecy