Skip to content

Commit

Permalink
Merge pull request #9 from mrkaye97/fitbitr-0.3.0
Browse files Browse the repository at this point in the history
v0.3.0
  • Loading branch information
mrkaye97 authored Mar 23, 2023
2 parents f6c9342 + 2a6c616 commit 31602fd
Show file tree
Hide file tree
Showing 68 changed files with 3,041 additions and 1,220 deletions.
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
^renv$
^renv\.lock$
^.*\.Rproj$
^\.Rproj\.user$
^\.github$
Expand All @@ -9,3 +11,5 @@
^CRAN-RELEASE$
^\.httr-oauth$
^codecov\.yml$
.httr-oauth
^cran-comments\.md$
1 change: 0 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
FITBITR_ENVIRONMENT: ${{ secrets.FITBITR_ENVIRONMENT }}

steps:
- uses: actions/checkout@v2
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/test-coverage.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ vignettes/*.pdf
.Renviron
docs
.DS_Store
fitbitr-config.dcf
.Rprofile
.fitbitr-token.rds
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: fitbitr
Title: Interface with the 'Fitbit' API
Version: 0.2.0
Version: 0.3.0
Authors@R:
person(given = "Matt",
family = "Kaye",
Expand Down Expand Up @@ -38,10 +38,12 @@ Imports:
Suggests:
covr,
checkmate (>= 2.0.0),
devtools,
rprojroot,
spelling,
testthat (>= 3.0.0)
Config/testthat/edition: 3
Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.1
RoxygenNote: 7.2.3
61 changes: 32 additions & 29 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
# Generated by roxygen2: do not edit by hand

export("%>%")
export(activity_calories)
export(activity_summary)
export(calories)
export(calories_bmr)
export(distance)
export(elevation)
export(floors)
export(generate_token)
export(heart_rate_intraday)
export(heart_rate_zones)
export(lifetime_bests)
export(lifetime_totals)
export(load_cached_token)
export(minutes_fairly_active)
export(minutes_lightly_active)
export(minutes_sedentary)
export(minutes_very_active)
export(sleep_stage_granular)
export(sleep_stage_summary)
export(sleep_summary)
export(steps)
export(tracker_bests)
export(tracker_totals)
export(generate_fitbitr_token)
export(get_active_zone_minutes_intraday)
export(get_activity_calories)
export(get_activity_summary)
export(get_calories)
export(get_calories_bmr)
export(get_calories_intraday)
export(get_distance)
export(get_distance_intraday)
export(get_elevation)
export(get_elevation_intraday)
export(get_floors)
export(get_floors_intraday)
export(get_heart_rate_intraday)
export(get_heart_rate_zones)
export(get_lifetime_bests)
export(get_lifetime_totals)
export(get_minutes_fairly_active)
export(get_minutes_lightly_active)
export(get_minutes_sedentary)
export(get_minutes_very_active)
export(get_sleep_stage_granular)
export(get_sleep_stage_summary)
export(get_sleep_summary)
export(get_steps)
export(get_steps_intraday)
export(get_tracker_bests)
export(get_tracker_totals)
export(perform_get)
importFrom(dplyr,across)
importFrom(dplyr,arrange)
importFrom(dplyr,bind_rows)
Expand All @@ -36,14 +42,14 @@ importFrom(httr,add_headers)
importFrom(httr,content)
importFrom(httr,oauth2.0_token)
importFrom(httr,oauth_app)
importFrom(httr,stop_for_status)
importFrom(janitor,clean_names)
importFrom(jsonlite,fromJSON)
importFrom(jsonlite,toJSON)
importFrom(jsonlite,validate)
importFrom(lubridate,as_datetime)
importFrom(lubridate,today)
importFrom(magrittr,"%>%")
importFrom(purrr,flatten)
importFrom(purrr,flatten_dfr)
importFrom(purrr,keep)
importFrom(purrr,list_modify)
importFrom(purrr,map)
importFrom(purrr,map_chr)
Expand All @@ -52,9 +58,6 @@ importFrom(purrr,pluck)
importFrom(rlang,":=")
importFrom(rlang,.data)
importFrom(rlang,abort)
importFrom(rlang,inform)
importFrom(rlang,warn)
importFrom(tibble,enframe)
importFrom(tidyr,pivot_wider)
importFrom(tidyr,unnest_wider)
importFrom(utils,askYesNo)
16 changes: 16 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# fitbitr 0.3.0

`v0.3.0` is a significant overhaul of `fitbitr`

### Breaking changes:

* Functions are now verb-prefixed, so `steps` has become `get_steps()`

### Other changes

* Significantly more validation exists for function arguments before sending requests to the API
* More information is returned to the user on API errors
* Adds new intraday time series
* Many more updates to internals
* Significant additional test coverage and overhauls how tests are run.

# fitbitr 0.2.0

* Added a `NEWS.md` file to track changes to the package.
Expand Down
1 change: 1 addition & 0 deletions R/aaa.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
invisible()
}


## package constants
base_url <- "https://api.fitbit.com"

Expand Down
Loading

0 comments on commit 31602fd

Please sign in to comment.