Closed sckott closed 6 months ago
Typically - at least what I'm familiar with - required parameters go first, with optional parameters (including those with default values) last.
e.g., in demo_crowding you have
demo_crowding
function(area, areatype, crowding = "household with >1 person per room", race)
whereas i'd want crowding to go last
crowding
function(area, areatype, race, crowding = "household with >1 person per room")
do other folks have other ideas?
100% agreed. See second/third principles of https://github.com/posit-conf-2023/pkg-dev-masterclass/blob/main/materials/1-api-design.pdf
Typically - at least what I'm familiar with - required parameters go first, with optional parameters (including those with default values) last.
e.g., in
demo_crowding
you havewhereas i'd want
crowding
to go lastdo other folks have other ideas?