R library for interfacing with S3