Skip to content

Commit

Permalink
Update heart.R
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelsel committed Dec 15, 2023
1 parent 65c18b6 commit 56e4835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/heart.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ get_fitbit_heart_intraday <- function(token.pathname, start.date = Sys.Date(),
intensity_labels, heart_rate_method, rest.hr, verbose)

if(toSQL){
database <- grep(user, list.files(paste0(directory, "/data"), full.names = TRUE), value = TRUE)
database <- grep(tkn$user, list.files(paste0(directory, "/data"), full.names = TRUE), value = TRUE)
con <- DBI::dbConnect(RSQLite::SQLite(), database)
DBI::dbWriteTable(con, "heart", heart_data, overwrite = TRUE)
DBI::dbDisconnect(con)
Expand Down

0 comments on commit 56e4835

Please sign in to comment.