Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides R package development decisions on dependencies, API design, testing, and documentation, with tidyverse dependency guidance.
95% 100%+5 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
When writing roxygen2 documentation for an R package function parameter `vars` that accepts tidy-select expressions, what special parameter documentation syntax tag should be included?
Uses the tidy-select bracket syntax tag referencing dplyr::dplyr_tidy_select
3 of 3 safety checks passed
Dependencies, API design, testing, documentation, and best practices for R packages
# Add dependency when:
# - Significant functionality gain
# - Maintenance burden reduction
# - User experience improvement
# - Complex implementation (regex, dates, web)
# Use base R when:
# - Simple utility functions
# - Package will be widely used (minimize deps)
# - Dependency is large for small benefit
# - Base R solution is straightforward
# Example decisions:
str_detect(x, "pattern") # Worth stringr dependency
length(x) > 0 # Don't need purrr for this
parse_dates(x) # Worth lubridate dependency
x + 1 # Don't need dplyr for this
# Core tidyverse (usually worth it):
dplyr # Complex data manipulation
purrr # Functional programming, parallel
stringr # String manipulation
tidyr # Data reshaping
# Specialized tidyverse (evaluate carefully):
lubridate # If heavy date manipulation
forcats # If many categorical operations
Next to this one in the catalogue, plus more from the same author.