Standard mechanism to have package-specific options in R? Standard mechanism to have package-specific options in R? r r

Standard mechanism to have package-specific options in R?


You could create something similar to xcms: in zzz.R we call .setXCMSOptions (from init.R upon package loading, where xcms specific options are inserted into the generic BioC options:

getOption("BioC")$xcms

You could provide getter and setter methods for your options.