Repository navigation
Backlog
Description
These come from the same review of development at 1109f11, comparing the package with the r-lib package development practices. None of them affects results. They are cheapest to fix now, while the package is small.
- Formatting.
- There is no
air.toml, andair format --checkwould change all 13 R files. - 148 roxygen and comment lines in
R/are longer than 80 characters. - Formatting once now keeps later diffs readable. In LandR the same step would bury every other change in the diff.
- There is no
- Tests.
- Errors are tested with
expect_error()(test-disturbanceYear.R:91, 209, 218; test-inputs.R:38-40; test-scanfi-access.R:67, 83).expect_snapshot(error = TRUE)records the whole message so it can be reviewed. There are no snapshot tests yet. expect_true()andexpect_false()are used widely: 14 times in test-scanfi-access.R and 9 in test-scanfiMirror.R. A specific expectation gives a more useful failure message.- Test files are named by function rather than by R file: test-prepInputsFireYear.R, test-prepInputsFireYear-grid.R and test-prepInputsStandAgeMap.R all test
R/standAge.R. replaceAgeInFires(): use a startTime after 2023 #3 addstest-standAge.R. - test-prepInputsStandAgeMap.R:8 has
skip_if_not(interactive()), so that test never runs in CI or inR CMD check.
- Errors are tested with
- Examples.
prepInputsStandAgeMap()andreplaceAgeInFires()use\dontrun{}(standAge.R:51, 516).disturbancesByYear(),lastDisturbanceYear()andscanfiUrlRemap()have no examples.
- Documentation.
disturbancesByYear()andlastDisturbanceYear()have no@return.- There is no pkgdown site.
- Arguments.
prepInputsDisturbanceYear(),lastDisturbanceYear()andreplaceAgeInFires()barely check their arguments. For example, anNAstartTimestops atif ()with "missing value where TRUE/FALSE needed". - CI runs R-CMD-check only; LandR also runs test-coverage.
- README has installation only, with no example or badges. There is no CITATION file.
- NEWS.
- No item gives a
(#N)reference. - The 0.0.1 items are not ordered by function name.
- One version bump (0.0.1.9000) covers several merged PRs; running
usethis::use_version("dev")for each change keeps them apart.
- No item gives a
- Minor.
asInteger()lacks the leading dot the other internal functions use (standAge.R:561).- Multi-line
function(y)bodies have no braces (disturbanceYear.R:135, 364). - terra and data.table have no minimum versions.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
No labels
Activity