From the posit::conf 2023 'Package Development Masterclass' and tidy design principles for package development, the following 7 principles were presented:
Make arguments explicit
Put the most important arguments first
Required arguments shouldn't have defaults
Put ... after required arguments
Keep defaults short and sweet
Enumerate possible options
Reduce clutter with an options object
1 thru 5 should be pretty straightforward to adopt; 6 & 7 will take some thought and effort.
From the posit::conf 2023 'Package Development Masterclass' and tidy design principles for package development, the following 7 principles were presented:
1 thru 5 should be pretty straightforward to adopt; 6 & 7 will take some thought and effort.