Skip to content
Prev 324582 / 398503 Next

Official way to set/retrieve options in packages?

On 01/06/2013 22:44, Anthony Damico wrote:
But a nicer convention is that used by most packages in R itself: if the 
option is not set, the function using it assumes a suitable default. 
That would make sense for all the FALSE defaults below.

Note though that this is not 'persistent': users have to set options in 
their startup files (see ?Startup).   There is no official location to 
store package configurations.  Users generally dislike software saving 
settings in their own file space so it seems very much preferable to use 
the standard R mechanisms (.Rprofile etc).