Skip to content

Commit 39ea70c

Browse files
committed
v1.0.1: reduce complexity, remove viridis, fix notes
1 parent 64134dd commit 39ea70c

File tree

8 files changed

+29
-7
lines changed

8 files changed

+29
-7
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,5 @@
146146
^lib$
147147
^strava_data$
148148

149+
^data-raw$
150+
^generate_plot_examples\.R$

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Athlytics
22
Title: Academic R Package for Sports Physiology Analysis from Local 'Strava' Data
3-
Version: 1.0.0
3+
Version: 1.0.1
44
Author: Zhiang He [aut, cre]
55
Maintainer: Zhiang He <ang@hezhiang.com>
66
Authors@R:

NEWS.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# Athlytics 1.0.0
1+
# Athlytics 1.0.1
2+
3+
## Code Quality Improvements
4+
5+
* **Reduced Cyclomatic Complexity**: Refactored `calculate_acwr()` and `calculate_exposure()` by extracting shared load calculation logic into internal helper functions (`calculate_daily_load_internal()`, `compute_single_load()`, `validate_load_metric_params()`). This improves code maintainability and testability without changing the public API.
6+
7+
* **Dependency Cleanup**: Removed unused `viridis` package from Imports. The package was declared as a dependency but never actually called (ggplot2's built-in `scale_color_viridis_d()` was used instead).
8+
9+
* **Documentation Fixes**: Fixed Rd line width issues in `plot_with_reference()` examples.
10+
11+
* **Build Configuration**: Updated `.Rbuildignore` to properly exclude development files.
12+
13+
---
14+
15+
# Athlytics 1.0.0
216

317
This major release transitions from Strava API to **local data export processing**, prioritizing user privacy and data ownership while eliminating API rate limits and authentication requirements.
418

R/cohort_reference.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,10 @@ add_reference_bands <- function(p,
278278
#' reference_data <- data.frame(
279279
#' date = as.Date(c("2023-01-01", "2023-04-01", "2023-07-01", "2023-10-01")),
280280
#' percentile = rep(c("p05", "p25", "p50", "p75", "p95"), 4),
281-
#' value = c(0.7, 0.9, 1.1, 1.3, 1.5, 0.7, 0.9, 1.1, 1.3, 1.5, 0.7, 0.9, 1.1, 1.3, 1.5, 0.7, 0.9, 1.1, 1.3, 1.5)
281+
#' value = c(0.7, 0.9, 1.1, 1.3, 1.5,
282+
#' 0.7, 0.9, 1.1, 1.3, 1.5,
283+
#' 0.7, 0.9, 1.1, 1.3, 1.5,
284+
#' 0.7, 0.9, 1.1, 1.3, 1.5)
282285
#' )
283286
#'
284287
#' p <- plot_with_reference(

R/zzz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"\nLoading Athlytics version ", pkg_version, ".\n",
1010
"Analyze your Strava data locally with ease!\n",
1111
"Use load_local_activities() to get started.\n",
12-
"For documentation, see: https://hzacode.github.io/athlytics/"
12+
"For documentation, see: https://hzacode.github.io/Athlytics/"
1313
)
1414

1515

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
url: https://hezhiang.com/Athlytics/
1+
url: https://hzacode.github.io/Athlytics/
22

33
template:
44
bootstrap: 5

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"codeRepository": "https://github.com/HzaCode/Athlytics",
88
"issueTracker": "https://github.com/HzaCode/Athlytics/issues",
99
"license": "https://spdx.org/licenses/MIT",
10-
"version": "1.0.0",
10+
"version": "1.0.1",
1111
"programmingLanguage": {
1212
"@type": "ComputerLanguage",
1313
"name": "R",

man/plot_with_reference.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)