Skip to content

Cmdstanr option

Cmdstanr option #419

Triggered via pull request February 2, 2024 13:18
@sbfnksbfnk
synchronize #537
cmdstanr-option
Status Failure
Total duration 20m 34s
Artifacts

lint-only-changed-files.yaml

on: pull_request
lint-changed-files
20m 25s
lint-changed-files
Fit to window
Zoom out
Zoom in

Annotations

1 error and 8 warnings
lint-changed-files
Process completed with exit code 31.
lint-changed-files: R/estimate_infections.R#L336
file=R/estimate_infections.R,line=336,col=39,[missing_argument_linter] Missing argument in function call.
lint-changed-files: R/estimate_infections.R#L453
file=R/estimate_infections.R,line=453,col=9,[if_not_else_linter] In a simple if/else statement, prefer `if (A) x else y` to the less-readable `if (!A) y else x`.
lint-changed-files: R/extract.R#L105
file=R/extract.R,line=105,col=56,[fixed_regex_linter] This regular expression is static, i.e., its matches can be expressed as a fixed substring expression, which is faster to compute. Here, you can use "," with fixed = TRUE.
lint-changed-files: R/opts.R#L795
file=R/opts.R,line=795,col=5,[unnecessary_nested_if_linter] Don't use nested `if` statements, where a single `if` with the combined conditional expression will do. For example, instead of `if (x) { if (y) { ... }}`, use `if (x && y) { ... }`.
lint-changed-files: R/opts.R#L795
file=R/opts.R,line=795,col=10,[missing_package_linter] Package 'cmdstanr' is not installed.
lint-changed-files: R/opts.R#L796
file=R/opts.R,line=796,col=7,[condition_message_linter] Don't use paste0 to build stop strings. Instead use the fact that these functions build condition message strings from their input (using "" as a separator). For translatable strings, prefer using gettextf().
lint-changed-files: R/stan.R#L38
file=R/stan.R,line=38,col=39,[paste_linter] toString(.) is more expressive than paste(., collapse = ", "). Note also glue::glue_collapse() and and::and() for constructing human-readable / translation-friendly lists
lint-changed-files: R/stan.R#L47
file=R/stan.R,line=47,col=20,[namespace_linter] Package 'cmdstanr' is not installed.