R package development Key commands Coding Always run after generating code. Use the base pipe operator ( ) not the magrittr pipe ( ). Use for single-line anonymous functions. For all other cases, use . Testing - Tests for go in . - All new code should have an accompanying test. - If there are existing tests, place new tests next to similar existing tests. - Strive to keep tests minimal with few comments. - Avoid and in favour of a specific expectation which will give a better failure message. - When testing errors and warnings, don't use or . Instead, use for errors and for warnings because t…