R: import methods package, instead of depending on it.