- Improve duplicate detection within the SQL Lite databases
- Reduced repetitive code within
get_fitbit_exercise_log
function - Edit the
.adjustDates
function to handle instances where a device table is missing from the SQL Lite database or the Fitbit API
- Added
.adjustDates
and an overwrite argument to make continuous data collection easier and less memory intensive - Added a database command within
DBI::dbExecute
to remove duplicate entries when writing to SQL database - Updated
.readTables
to only include first 12 columns of sleep data as everyone in a study may not have sleep stages - Updated
get_fitbit_device
to append last synced information to SQL database to provide a sync history - Updated
get_fitbit_report
to include sleep data when exporting to the .xlsx format
- Add
.readTables
database function. - Add parallel processing to the
fitbit_heart_intraday
function. - Changed
get_fitbit_exercise_log
to extend the limit and replacebefore.date
withafter.date
- Added the
.extract_token
function to reduce repetitive text inside the main functions - Added
.checkDatabase
to create SQL database if one does not exist andtoSQL
is set to true - Removed cases where
get_fitbit_device
returns a MobileTrack device
- Improve sleep classification during an intraday heart rate request
- Add a
returnData
argument for theget_fitbit_exercise_log
function. - Allow a before date to be specified in the
get_fitbit_exercise_log
function.
- Significant improvements to the
fitbit_heart_intraday
function to make it more flexible for the end user. - Add helper functions that display max heart rate equations or default ACSM intensities
- Add database functions that make it easier to manage the SQL Fitbit databases
- Update license to include University of Kansas copyright information.
- Update
get_fitbit_exercise_log
function to check for NULL values. - Change toCSV to toXLSX in the
get_fitbit_report
so that the tables in the SQL database can be written to separate Excel sheets. - Provide an option to return device information to the users R environment
- Add a method to
get_fitbit_activities
that separates Fitbit API calls for time periods greater than 100 days. - Removed a merge call in
get_fitbit_heart_intraday
that didn't work for an incomplete day of heart rate data. - Add a start and end date argument to
get_fitbit_report
to allow filtering of the data whentoCSV
orreturnData
is TRUE
- Added distance, log type, activity level, and heart zones to exercise log
- Added a vignette for setting up a Fitbit application
- Added GitHub actions for R-CMD-Check
- Added a sample SQL database containing Fitbit data
- Updated the README with detailed text and examples
- Added toCSV and returnData arguments to
get_fitbit_report
- Added the license information
- Made the arguments for all of the iFitbit functions more consistent
- Added documentation and updated the namespace files
- Added global variables
- iFitbit initial commit